|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.search.matching.PatternLocator
org.aspectj.org.eclipse.jdt.internal.core.search.matching.MethodLocator
public class MethodLocator
| Field Summary | |
|---|---|
char[][][] |
allSuperDeclaringTypeNames
|
protected boolean |
isDeclarationOfReferencedMethodsPattern
|
protected MethodPattern |
pattern
|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.search.matching.PatternLocator |
|---|
ACCURATE_MATCH, ALL_CONTAINER, CAMELCASE_FLAVOR, CLASS_CONTAINER, COMPILATION_UNIT_CONTAINER, ERASURE_MATCH, EXACT_FLAVOR, FIELD_CONTAINER, FLAVORS_MASK, IMPOSSIBLE_MATCH, INACCURATE_MATCH, isCaseSensitive, isEquivalentMatch, isErasureMatch, MATCH_LEVEL_MASK, matchMode, mayBeGeneric, METHOD_CONTAINER, mustResolve, NO_FLAVOR, OVERRIDDEN_METHOD_FLAVOR, PATTERN_FLAVOR, POSSIBLE_MATCH, PREFIX_FLAVOR, RAW_MASK, REGEXP_FLAVOR, RULE_MASK, SUB_INVOCATION_FLAVOR, SUPER_INVOCATION_FLAVOR, SUPERTYPE_REF_FLAVOR |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.core.search.indexing.IIndexConstants |
|---|
AND_PATTERN, ANNOT_REF_PATTERN, ANNOTATION_REF, ANNOTATION_TYPE_SUFFIX, CLASS_AND_ENUM_SUFFIX, CLASS_AND_INTERFACE_SUFFIX, CLASS_SUFFIX, CONSTRUCTOR_DECL, CONSTRUCTOR_PATTERN, CONSTRUCTOR_REF, COUNTS, DEFAULT_CONSTRUCTOR, ENUM_SUFFIX, FIELD_DECL, FIELD_PATTERN, INTERFACE_AND_ANNOTATION_SUFFIX, INTERFACE_SUFFIX, LOCAL_VAR_PATTERN, METHOD_DECL, METHOD_PATTERN, METHOD_REF, OBJECT, ONE_STAR, ONE_STAR_CHAR, ONE_ZERO, ONE_ZERO_CHAR, OR_PATTERN, PARAMETER_SEPARATOR, PKG_DECL_PATTERN, PKG_REF_PATTERN, REF, SECONDARY_SUFFIX, SEPARATOR, SUPER_REF, SUPER_REF_PATTERN, TYPE_DECL, TYPE_DECL_PATTERN, TYPE_PARAM_PATTERN, TYPE_REF_PATTERN, TYPE_SUFFIX, ZERO_CHAR |
| Constructor Summary | |
|---|---|
MethodLocator(MethodPattern pattern)
|
|
| Method Summary | |
|---|---|
protected void |
clear()
|
protected int |
fineGrain()
|
void |
initializePolymorphicSearch(MatchLocator locator)
Initializes this search pattern so that polymorphic search can be performed. |
protected boolean |
isVirtualInvoke(MethodBinding method,
MessageSend messageSend)
Returns whether the code gen will use an invoke virtual for this message send or not. |
int |
match(Annotation node,
MatchingNodeSet nodeSet)
|
int |
match(ASTNode node,
MatchingNodeSet nodeSet)
Check if the given ast node syntactically matches this pattern. |
int |
match(MemberValuePair node,
MatchingNodeSet nodeSet)
|
int |
match(MessageSend node,
MatchingNodeSet nodeSet)
|
int |
match(MethodDeclaration node,
MatchingNodeSet nodeSet)
|
protected int |
matchContainer()
Returns the type(s) of container for this pattern. |
protected void |
matchLevelAndReportImportRef(ImportReference importRef,
Binding binding,
MatchLocator locator)
Reports the match of the given import reference if the resolveLevel is high enough. |
protected int |
matchMethod(MethodBinding method,
boolean skipImpossibleArg)
|
protected void |
matchReportReference(ASTNode reference,
IJavaElement element,
Binding elementBinding,
int accuracy,
MatchLocator locator)
Reports the match of the given reference. |
protected void |
matchReportReference(ASTNode reference,
IJavaElement element,
IJavaElement localElement,
IJavaElement[] otherElements,
Binding elementBinding,
int accuracy,
MatchLocator locator)
Reports the match of the given reference. |
SearchMatch |
newDeclarationMatch(ASTNode reference,
IJavaElement element,
Binding elementBinding,
int accuracy,
int length,
MatchLocator locator)
|
protected int |
referenceType()
|
protected void |
reportDeclaration(MethodBinding methodBinding,
MatchLocator locator,
SimpleSet knownMethods)
|
int |
resolveLevel(ASTNode possibleMatchingNode)
Finds out whether the given ast node matches this search pattern. |
int |
resolveLevel(Binding binding)
Finds out whether the given binding matches this search pattern. |
protected int |
resolveLevel(MessageSend messageSend)
|
protected int |
resolveLevelAsSubtype(char[] simplePattern,
char[] qualifiedPattern,
ReferenceBinding type,
char[] methodName,
TypeBinding[] argumentTypes)
Returns whether the given reference type binding matches or is a subtype of a type that matches the given qualified pattern. |
java.lang.String |
toString()
|
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.search.matching.PatternLocator |
|---|
getQualifiedPattern, getQualifiedSourceName, getTypeNameBinding, match, match, match, match, match, match, match, match, matchesName, matchesTypeReference, matchLevel, matchNameValue, matchReportImportRef, patternLocator, qualifiedPattern, qualifiedSourceName, resolveLevelForType, resolveLevelForType, resolveLevelForType, updateMatch, updateMatch, updateMatch |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected MethodPattern pattern
protected boolean isDeclarationOfReferencedMethodsPattern
public char[][][] allSuperDeclaringTypeNames
| Constructor Detail |
|---|
public MethodLocator(MethodPattern pattern)
| Method Detail |
|---|
protected void clear()
clear in class PatternLocatorprotected int fineGrain()
fineGrain in class PatternLocatorpublic void initializePolymorphicSearch(MatchLocator locator)
PatternLocator
initializePolymorphicSearch in class PatternLocator
protected boolean isVirtualInvoke(MethodBinding method,
MessageSend messageSend)
public int match(ASTNode node,
MatchingNodeSet nodeSet)
PatternLocator
match in class PatternLocator
public int match(MethodDeclaration node,
MatchingNodeSet nodeSet)
match in class PatternLocator
public int match(MemberValuePair node,
MatchingNodeSet nodeSet)
match in class PatternLocator
public int match(MessageSend node,
MatchingNodeSet nodeSet)
match in class PatternLocator
public int match(Annotation node,
MatchingNodeSet nodeSet)
match in class PatternLocatorprotected int matchContainer()
PatternLocator
matchContainer in class PatternLocator
protected void matchLevelAndReportImportRef(ImportReference importRef,
Binding binding,
MatchLocator locator)
throws CoreException
PatternLocator
matchLevelAndReportImportRef in class PatternLocatorCoreException
protected int matchMethod(MethodBinding method,
boolean skipImpossibleArg)
protected void matchReportReference(ASTNode reference,
IJavaElement element,
Binding elementBinding,
int accuracy,
MatchLocator locator)
throws CoreException
PatternLocator
matchReportReference in class PatternLocatorCoreException
protected void matchReportReference(ASTNode reference,
IJavaElement element,
IJavaElement localElement,
IJavaElement[] otherElements,
Binding elementBinding,
int accuracy,
MatchLocator locator)
throws CoreException
PatternLocator
matchReportReference in class PatternLocatorCoreExceptionPatternLocator.matchReportReference(org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode, org.aspectj.org.eclipse.jdt.core.IJavaElement, Binding, int, org.aspectj.org.eclipse.jdt.internal.core.search.matching.MatchLocator)
public SearchMatch newDeclarationMatch(ASTNode reference,
IJavaElement element,
Binding elementBinding,
int accuracy,
int length,
MatchLocator locator)
newDeclarationMatch in class PatternLocatorprotected int referenceType()
referenceType in class PatternLocator
protected void reportDeclaration(MethodBinding methodBinding,
MatchLocator locator,
SimpleSet knownMethods)
throws CoreException
CoreExceptionpublic int resolveLevel(ASTNode possibleMatchingNode)
PatternLocator
resolveLevel in class PatternLocatorpublic int resolveLevel(Binding binding)
PatternLocator
resolveLevel in class PatternLocatorprotected int resolveLevel(MessageSend messageSend)
protected int resolveLevelAsSubtype(char[] simplePattern,
char[] qualifiedPattern,
ReferenceBinding type,
char[] methodName,
TypeBinding[] argumentTypes)
public java.lang.String toString()
toString in class PatternLocator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||