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 MethodReferenceMatch extends SearchMatch { 26 private boolean constructor; 27 private boolean synthetic; 28 private boolean superInvocation; 29 30 42 public MethodReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, IResource resource) { 43 super(enclosingElement, accuracy, offset, length, participant, resource); 44 setInsideDocComment(insideDocComment); 45 } 46 47 64 public MethodReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean constructor, boolean synthetic, boolean insideDocComment, SearchParticipant participant, IResource resource) { 65 this(enclosingElement, accuracy, offset, length, insideDocComment, participant, resource); 66 this.constructor = constructor; 67 this.synthetic = synthetic; 68 } 69 70 89 public MethodReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean constructor, boolean synthetic, boolean superInvocation, boolean insideDocComment, SearchParticipant participant, IResource resource) { 90 this(enclosingElement, accuracy, offset, length, constructor, synthetic, insideDocComment, participant, resource); 91 this.superInvocation = superInvocation; 92 } 93 94 100 public final boolean isConstructor() { 101 return this.constructor; 102 } 103 104 112 public final boolean isSynthetic() { 113 return this.synthetic; 114 } 115 116 126 public boolean isSuperInvocation() { 127 return this.superInvocation; 128 } 129 } 130 | Popular Tags |