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 TypePattern
TypePattern.MatchKind -
Field Summary
FieldsFields inherited from class 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, WILDModifier and TypeFieldDescriptionstatic final byteprotected AnnotationTypePatternstatic final TypePatternstatic final bytestatic final bytestatic final bytestatic final TypePattern.MatchKindstatic final TypePatternstatic final bytestatic final bytestatic final byteprotected booleanprotected booleanstatic final TypePatternstatic final bytestatic final bytestatic final bytestatic final TypePattern.MatchKindstatic final byteprotected TypePatternListstatic final byteFields inherited from class PatternNode
end, sourceContext, start -
Constructor Summary
ConstructorsConstructorDescriptionExactTypePattern(UnresolvedType type, boolean includeSubtypes, boolean isVarArgs, TypePatternList typeParams) -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data) protected booleanbooleanintgetResolvedExactType(World world) getType()inthashCode()booleanisArray()booleanisVoid()for quickly recognizing the pattern 'void'protected booleanmatchesArray(UnresolvedType type) 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 TypePattern
getAnnotationPattern, getExactType, getTypeParameters, hasFailedResolution, isBangVoid, isEllipsis, isIncludeSubtypes, isStar, isStarAnnotation, isVarArgs, matches, matchesStatically, matchesSubtypes, notExactType, postRead, remapAdviceFormals, resolve, resolveExactType, setAnnotationTypePattern, setIsVarArgs, setTypeParameters, traverseModifier and TypeMethodDescriptionbooleanbooleanFor quickly recognizing the pattern '!void'booleanbooleanbooleanisStar()booleanbooleanfinal FuzzyBooleanmatches(ResolvedType type, TypePattern.MatchKind kind) booleanprotected booleanmatchesSubtypes(ResolvedType superType, ResolvedType annotatedType) protected TypePatternvoidpostRead(ResolvedType enclosingType) remapAdviceFormals(IntMap bindings) This is called during concretization of pointcuts, it is used by BindingTypePattern to return a new BindingTypePattern with a formal index appropriate for the advice, rather than for the lexical declaration, i.e.voidresolveExactType(IScope scope, Bindings bindings) voidvoidsetIsVarArgs(boolean isVarArgs) voidsetTypeParameters(TypePatternList typeParams) traverse(PatternNodeVisitor visitor, Object data) Methods inherited from class PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocationModifier and TypeMethodDescriptionvoidcopyLocationFrom(PatternNode other) intgetEnd()The ending index of this location in the character stream This points to the last character in this token.intgetStart()The starting index of this location in the character stream.voidreadLocation(ISourceContext context, DataInputStream s) voidsetLocation(ISourceContext sourceContext, int start, int end) void
-
Field Details
-
type
-
resolvedType
-
checked
public boolean checked -
isVoid
public boolean isVoid -
primitiveTypesMap
-
boxedPrimitivesMap
-
-
Constructor Details
-
ExactTypePattern
public ExactTypePattern(UnresolvedType type, boolean includeSubtypes, boolean isVarArgs, TypePatternList typeParams)
-
-
Method Details
-
matchesSubtypes
- Overrides:
matchesSubtypesin classTypePattern
-
isArray
public boolean isArray()- Overrides:
isArrayin classTypePattern
-
getDimensions
public int getDimensions()- Overrides:
getDimensionsin classTypePattern
-
couldEverMatchSameTypesAs
- Overrides:
couldEverMatchSameTypesAsin classTypePattern
-
matchesExactly
- Specified by:
matchesExactlyin classTypePattern
-
matchesExactly
- Specified by:
matchesExactlyin classTypePattern
-
matchesArray
- Specified by:
matchesArrayin 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
-
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
-