Class NotTypePattern
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.TypePattern
org.aspectj.weaver.patterns.NotTypePattern
- All Implemented Interfaces:
IHasPosition, IHasSourceLocation
!TypePattern
any binding to formals is explicitly forbidden for any composite, ! is just the most obviously wrong case.
- Author:
- Erik Hilsdale, Jim Hugunin
-
Nested Class Summary
Nested classes/interfaces inherited from class TypePattern
TypePattern.MatchKind -
Field Summary
Fields 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, WILDFields inherited from class PatternNode
end, sourceContext, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data) protected booleanbooleaninthashCode()booleanFor quickly recognizing the pattern '!void'protected booleanmatchesArray(UnresolvedType type) protected booleanmatchesExactly(ResolvedType type) protected booleanmatchesExactly(ResolvedType type, ResolvedType annotatedType) booleanparameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) return a version of this type pattern in which all type variable references have been replaced by their corresponding entry in the map.static TypePatternread(VersionedDataInputStream 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.voidvoidsetIsVarArgs(boolean isVarArgs) toString()traverse(PatternNodeVisitor visitor, Object data) voidMethods inherited from class TypePattern
getAnnotationPattern, getDimensions, getExactType, getTypeParameters, hasFailedResolution, isArray, isEllipsis, isIncludeSubtypes, isStar, isStarAnnotation, isVarArgs, isVoid, matches, matchesSubtypes, matchesSubtypes, notExactType, postRead, remapAdviceFormals, resolve, resolveExactType, setTypeParametersMethods inherited from class PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, writeLocation
-
Constructor Details
-
NotTypePattern
-
-
Method Details
-
getNegatedPattern
-
couldEverMatchSameTypesAs
- Overrides:
couldEverMatchSameTypesAsin classTypePattern
-
matchesInstanceof
- Specified by:
matchesInstanceofin classTypePattern
-
matchesExactly
- Specified by:
matchesExactlyin classTypePattern
-
matchesExactly
- Specified by:
matchesExactlyin classTypePattern
-
matchesArray
- Specified by:
matchesArrayin classTypePattern
-
matchesStatically
- Overrides:
matchesStaticallyin classTypePattern
-
setAnnotationTypePattern
- Overrides:
setAnnotationTypePatternin classTypePattern
-
setIsVarArgs
public void setIsVarArgs(boolean isVarArgs) - Overrides:
setIsVarArgsin classTypePattern
-
write
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static TypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException - Throws:
IOException
-
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
-
isBangVoid
public boolean isBangVoid()Description copied from class:TypePatternFor quickly recognizing the pattern '!void'- Overrides:
isBangVoidin classTypePattern
-
parameterizeWith
Description copied from class:TypePatternreturn a version of this type pattern in which all type variable references have been replaced by their corresponding entry in the map.- Specified by:
parameterizeWithin classTypePattern
-
toString
-
equals
-
hashCode
-
accept
- Specified by:
acceptin classPatternNode
-
traverse
- Overrides:
traversein classTypePattern
-