Package org.aspectj.weaver.patterns
Class HasMemberTypePattern
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.TypePattern
-
- org.aspectj.weaver.patterns.HasMemberTypePattern
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
- Direct Known Subclasses:
HasMemberTypePatternForPerThisMatching
public class HasMemberTypePattern extends TypePattern
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.aspectj.weaver.patterns.TypePattern
TypePattern.MatchKind
-
-
Field Summary
-
Fields inherited from class org.aspectj.weaver.patterns.TypePattern
AND, annotationPattern, ANY, ANY_KEY, ANY_WITH_ANNO, BINDING, DYNAMIC, ELLIPSIS, ELLIPSIS_KEY, EXACT, HAS_MEMBER, includeSubtypes, isVarArgs, NO, NO_KEY, NOT, OR, STATIC, TYPE_CATEGORY, typeParameters, WILD
-
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
-
Constructor Summary
Constructors Constructor Description HasMemberTypePattern(SignaturePattern aSignaturePattern)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(PatternNodeVisitor visitor, Object data)booleanequals(Object obj)ISignaturePatterngetSignaturePattern()inthashCode()protected booleanhasMethod(ResolvedType type)protected booleanmatchesExactly(ResolvedType type)protected booleanmatchesExactly(ResolvedType type, ResolvedType annotatedType)FuzzyBooleanmatchesInstanceof(ResolvedType type)TypePatternparameterizeWith(Map typeVariableMap, World w)static TypePatternread(VersionedDataInputStream s, ISourceContext context)TypePatternresolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType)StringtoString()voidwrite(CompressingDataOutputStream s)-
Methods inherited from class org.aspectj.weaver.patterns.TypePattern
couldEverMatchSameTypesAs, getAnnotationPattern, getExactType, getTypeParameters, hasFailedResolution, isArray, isBangVoid, isEllipsis, isIncludeSubtypes, isStar, isStarAnnotation, isVarArgs, isVoid, matches, matchesStatically, matchesSubtypes, matchesSubtypes, notExactType, postRead, remapAdviceFormals, resolve, resolveExactType, setAnnotationTypePattern, setIsVarArgs, setTypeParameters
-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
-
-
-
Constructor Detail
-
HasMemberTypePattern
public HasMemberTypePattern(SignaturePattern aSignaturePattern)
-
-
Method Detail
-
matchesExactly
protected boolean matchesExactly(ResolvedType type)
- Specified by:
matchesExactlyin classTypePattern
-
getSignaturePattern
public ISignaturePattern getSignaturePattern()
-
hasMethod
protected boolean hasMethod(ResolvedType type)
-
matchesExactly
protected boolean matchesExactly(ResolvedType type, ResolvedType annotatedType)
- Specified by:
matchesExactlyin classTypePattern
-
matchesInstanceof
public FuzzyBoolean matchesInstanceof(ResolvedType type)
- Specified by:
matchesInstanceofin classTypePattern
-
parameterizeWith
public TypePattern parameterizeWith(Map typeVariableMap, World w)
- Specified by:
parameterizeWithin classTypePattern
-
resolveBindings
public TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType)
- Overrides:
resolveBindingsin classTypePattern
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static TypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
-