| java.lang.Object org.eclipse.jdt.core.search.SearchMatch org.eclipse.jdt.core.search.FieldReferenceMatch
FieldReferenceMatch | public class FieldReferenceMatch extends SearchMatch (Code) | | A Java search match that represents a field reference.
The element is the inner-most enclosing member that references this field.
This class is intended to be instantiated and subclassed by clients.
since: 3.0 |
Constructor Summary | |
public | FieldReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean isReadAccess, boolean isWriteAccess, boolean insideDocComment, SearchParticipant participant, IResource resource) Creates a new field reference match. |
Method Summary | |
final public boolean | isReadAccess() Returns whether the field reference is a read access to the field.
Note that a field reference can be read and written at once in case of compound assignments (e.g. | final public boolean | isWriteAccess() Returns whether the field reference is a write access to the field.
Note that a field reference can be read and written at once in case of compound assignments (e.g. |
FieldReferenceMatch | public FieldReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean isReadAccess, boolean isWriteAccess, boolean insideDocComment, SearchParticipant participant, IResource resource)(Code) | | Creates a new field reference match.
Parameters: enclosingElement - the inner-most enclosing member that references this field Parameters: accuracy - one of FieldReferenceMatch.A_ACCURATE or FieldReferenceMatch.A_INACCURATE Parameters: offset - the offset the match starts at, or -1 if unknown Parameters: length - the length of the match, or -1 if unknown Parameters: isReadAccess - whether the match represents a read access Parameters: isWriteAccess - whethre the match represents a write access Parameters: insideDocComment - true if this search match is inside a doccomment, and false otherwise Parameters: participant - the search participant that created the match Parameters: resource - the resource of the element |
isReadAccess | final public boolean isReadAccess()(Code) | | Returns whether the field reference is a read access to the field.
Note that a field reference can be read and written at once in case of compound assignments (e.g. i += 0;)
whether the field reference is a read access to the field. |
isWriteAccess | final public boolean isWriteAccess()(Code) | | Returns whether the field reference is a write access to the field.
Note that a field reference can be read and written at once in case of compound assignments (e.g. i += 0;)
whether the field reference is a write access to the field. |
Fields inherited from org.eclipse.jdt.core.search.SearchMatch | final public static int A_ACCURATE(Code)(Java Doc) final public static int A_INACCURATE(Code)(Java Doc)
|
|
|