1 11 package org.eclipse.jdt.core.search; 12 13 import org.eclipse.core.resources.IResource; 14 import org.eclipse.jdt.core.IJavaElement; 15 16 25 public class FieldReferenceMatch extends SearchMatch { 26 27 private boolean isReadAccess; 28 private boolean isWriteAccess; 29 30 44 public FieldReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean isReadAccess, boolean isWriteAccess, boolean insideDocComment, SearchParticipant participant, IResource resource) { 45 super(enclosingElement, accuracy, offset, length, participant, resource); 46 this.isReadAccess = isReadAccess; 47 this.isWriteAccess = isWriteAccess; 48 setInsideDocComment(insideDocComment); 49 } 50 51 57 public final boolean isReadAccess() { 58 return this.isReadAccess; 59 } 60 61 67 public final boolean isWriteAccess() { 68 return this.isWriteAccess; 69 } 70 71 } 72 | Popular Tags |