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
public class ExactTypePattern extends TypePattern
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.aspectj.weaver.patterns.TypePattern
TypePattern.MatchKind
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,Class<?>>boxedPrimitivesMapbooleancheckedbooleanisVoidstatic Map<String,Class<?>>primitiveTypesMapprotected ResolvedTyperesolvedTypeprotected UnresolvedTypetype-
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 ExactTypePattern(UnresolvedType type, boolean includeSubtypes, boolean isVarArgs)
-
Method Summary
-
Methods 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, setTypeParameters
-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
-
-
-
Field Detail
-
type
protected UnresolvedType type
-
resolvedType
protected transient ResolvedType resolvedType
-
checked
public boolean checked
-
isVoid
public boolean isVoid
-
-
Constructor Detail
-
ExactTypePattern
public ExactTypePattern(UnresolvedType type, boolean includeSubtypes, boolean isVarArgs)
-
-
Method Detail
-
matchesSubtypes
protected boolean matchesSubtypes(ResolvedType type)
- Overrides:
matchesSubtypesin classTypePattern
-
isArray
public boolean isArray()
- Overrides:
isArrayin classTypePattern
-
couldEverMatchSameTypesAs
protected boolean couldEverMatchSameTypesAs(TypePattern other)
- Overrides:
couldEverMatchSameTypesAsin classTypePattern
-
matchesExactly
protected boolean matchesExactly(ResolvedType matchType)
- Specified by:
matchesExactlyin classTypePattern
-
matchesExactly
protected boolean matchesExactly(ResolvedType matchType, ResolvedType annotatedType)
- Specified by:
matchesExactlyin classTypePattern
-
getType
public UnresolvedType getType()
-
getResolvedExactType
public ResolvedType getResolvedExactType(World world)
-
isVoid
public boolean isVoid()
- Overrides:
isVoidin classTypePattern
-
matchesInstanceof
public FuzzyBoolean matchesInstanceof(ResolvedType matchType)
- Specified by:
matchesInstanceofin classTypePattern
-
write
public void write(CompressingDataOutputStream out) throws IOException
- 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
-
resolveBindings
public TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType)
- Overrides:
resolveBindingsin classTypePattern
-
parameterizeWith
public TypePattern parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)
- Specified by:
parameterizeWithin classTypePattern
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
-