Package org.aspectj.weaver.patterns
Class ExactTypePattern
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.TypePattern
org.aspectj.weaver.patterns.ExactTypePattern
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
- Direct Known Subclasses:
BindingTypePattern
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aspectj.weaver.patterns.TypePattern
TypePattern.MatchKind -
Field Summary
FieldsFields 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, WILDFields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start -
Constructor Summary
ConstructorsConstructorDescriptionExactTypePattern(UnresolvedType type, boolean includeSubtypes, boolean isVarArgs) -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data) protected booleanbooleangetResolvedExactType(World world) getType()inthashCode()booleanisArray()booleanisVoid()for quickly recognizing the pattern 'void'protected booleanmatchesExactly(ResolvedType matchType) protected booleanmatchesExactly(ResolvedType matchType, ResolvedType annotatedType) matchesInstanceof(ResolvedType matchType) protected booleanmatchesSubtypes(ResolvedType type) parameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) return a version of this type pattern with all type variables references replaced by the corresponding entry in the map.static TypePatternread(VersionedDataInputStream s, ISourceContext context) static TypePatternreadTypePattern150(VersionedDataInputStream s, ISourceContext context) static TypePatternreadTypePatternOldStyle(DataInputStream s, ISourceContext context) resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) This can modify in place, or return a new TypePattern if the type changes.toString()voidMethods inherited from class org.aspectj.weaver.patterns.TypePattern
getAnnotationPattern, getExactType, getTypeParameters, hasFailedResolution, isBangVoid, isEllipsis, isIncludeSubtypes, isStar, isStarAnnotation, isVarArgs, matches, matchesStatically, matchesSubtypes, notExactType, postRead, remapAdviceFormals, resolve, resolveExactType, setAnnotationTypePattern, setIsVarArgs, setTypeParametersMethods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
Field Details
-
type
-
resolvedType
-
checked
public boolean checked -
isVoid
public boolean isVoid -
primitiveTypesMap
-
boxedPrimitivesMap
-
-
Constructor Details
-
ExactTypePattern
-
-
Method Details
-
matchesSubtypes
- Overrides:
matchesSubtypesin classTypePattern
-
isArray
public boolean isArray()- Overrides:
isArrayin classTypePattern
-
couldEverMatchSameTypesAs
- Overrides:
couldEverMatchSameTypesAsin classTypePattern
-
matchesExactly
- Specified by:
matchesExactlyin classTypePattern
-
matchesExactly
- Specified by:
matchesExactlyin classTypePattern
-
getType
-
getResolvedExactType
-
isVoid
public boolean isVoid()Description copied from class:TypePatternfor quickly recognizing the pattern 'void'- Overrides:
isVoidin classTypePattern
-
matchesInstanceof
- Specified by:
matchesInstanceofin classTypePattern
-
equals
-
hashCode
public int hashCode() -
write
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static TypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException - Throws:
IOException
-
readTypePattern150
public static TypePattern readTypePattern150(VersionedDataInputStream s, ISourceContext context) throws IOException - Throws:
IOException
-
readTypePatternOldStyle
public static TypePattern readTypePatternOldStyle(DataInputStream s, ISourceContext context) throws IOException - Throws:
IOException
-
toString
-
resolveBindings
public TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) Description copied from class:TypePatternThis can modify in place, or return a new TypePattern if the type changes.- Overrides:
resolveBindingsin classTypePattern
-
parameterizeWith
return a version of this type pattern with all type variables references replaced by the corresponding entry in the map.- Specified by:
parameterizeWithin classTypePattern
-
accept
- Specified by:
acceptin classPatternNode
-