1 11 package org.eclipse.jdt.internal.ui.search; 12 13 import org.eclipse.search.ui.text.Match; 14 15 18 public class JavaElementMatch extends Match { 19 private final int fAccuracy; 20 private final int fMatchRule; 21 private final boolean fIsWriteAccess; 22 private final boolean fIsReadAccess; 23 private final boolean fIsJavadoc; 24 private final boolean fIsSuperInvocation; 25 26 JavaElementMatch(Object element, int matchRule, int offset, int length, int accuracy, boolean isReadAccess, boolean isWriteAccess, boolean isJavadoc, boolean isSuperInvocation) { 27 super(element, offset, length); 28 fAccuracy= accuracy; 29 fMatchRule= matchRule; 30 fIsWriteAccess= isWriteAccess; 31 fIsReadAccess= isReadAccess; 32 fIsJavadoc= isJavadoc; 33 fIsSuperInvocation= isSuperInvocation; 34 } 35 36 public int getAccuracy() { 37 return fAccuracy; 38 } 39 40 public boolean isWriteAccess() { 41 return fIsWriteAccess; 42 } 43 44 public boolean isReadAccess() { 45 return fIsReadAccess; 46 } 47 48 public boolean isJavadoc() { 49 return fIsJavadoc; 50 } 51 52 public boolean isSuperInvocation() { 53 return fIsSuperInvocation; 54 } 55 56 public int getMatchRule() { 57 return fMatchRule; 58 } 59 } 60 | Popular Tags |