public class FieldUsageEvent extends UsageEvent
FieldUsageEvent describes the information about a field usage that is reported through the FieldUsageListener. It contains the URL, the start/end offsets of the usage, and a usage code describing the location the usage occurred, such as the field declaration.| Modifier and Type | Field and Description | 
|---|---|
static int | 
USAGE_FIELD_ACCESS
Constant indicating that the usage is in a field access. 
 | 
static int | 
USAGE_FIELD_DECLARATION
Constant indicating that the usage is in a field declaration. 
 | 
_endOffset, _source, _startOffset, _url, _usageCode, USAGE_CANCELLED, USAGE_FAILED, USAGE_FINISHED, USAGE_KEYWORD_SKIPPED, USAGE_URL_SKIPPED| Constructor and Description | 
|---|
FieldUsageEvent(UsageQueryTask source, int usageCode, java.net.URL url, int startOffset, int endOffset)
Construct a new usage event. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.lang.String | 
usageCodeToString(int code)
Return a human-readable version of the usage code. 
 | 
getEndOffset, getSource, getStartOffset, getURL, getUsageCode, toStringpublic static final int USAGE_FIELD_DECLARATION
public static final int USAGE_FIELD_ACCESS
public FieldUsageEvent(UsageQueryTask source, int usageCode, java.net.URL url, int startOffset, int endOffset)
source - the query taskusageCode - the usage code describing this eventurl - the URL where the event occurredstartOffset - the starting offsetendOffset - the ending offsetprotected java.lang.String usageCodeToString(int code)
usageCodeToString in class UsageEventcode - the usage code