Package org.aspectj.weaver.patterns
Klasse TypePatternList
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.TypePatternList
- Alle implementierten Schnittstellen:
IHasPosition,IHasSourceLocation
-
Feldübersicht
FelderVon Klasse geerbte Felder org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaccept(PatternNodeVisitor visitor, Object data) booleanbooleancanMatchSignatureWithNParameters(int numParams) booleanget(int index) 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.inthashCode()matches(ResolvableTypeList types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations) matches(ResolvedType[] types, TypePattern.MatchKind kind) matches(ResolvedType[] types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations) When called with TypePattern.STATIC this will always return either FuzzyBoolean.YES or FuzzyBoolean.NO.String[]parameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) Return a version of this type pattern list in which all type variable references are replaced by their corresponding entry in the mapvoidpostRead(ResolvedType enclosingType) static TypePatternListread(VersionedDataInputStream s, ISourceContext context) resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) resolveReferences(IntMap bindings) intsize()toString()traverse(PatternNodeVisitor visitor, Object data) voidVon Klasse geerbte Methoden org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getFileName, readLocation, setLocation, writeLocation
-
Felddetails
-
EMPTY
-
ANY
-
-
Konstruktordetails
-
TypePatternList
public TypePatternList() -
TypePatternList
-
TypePatternList
-
-
Methodendetails
-
size
public int size() -
get
-
toString
-
canMatchSignatureWithNParameters
public boolean canMatchSignatureWithNParameters(int numParams) -
matches
-
matches
public FuzzyBoolean matches(ResolvedType[] types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations) When called with TypePattern.STATIC this will always return either FuzzyBoolean.YES or FuzzyBoolean.NO. When called with TypePattern.DYNAMIC this could return MAYBE if at runtime it would be possible for arguments of the given static types to dynamically match this, but it is not known for certain. This method will never return FuzzyBoolean.NEVER -
matches
public FuzzyBoolean matches(ResolvableTypeList types, TypePattern.MatchKind kind, ResolvedType[][] parameterAnnotations) -
parameterizeWith
Return a version of this type pattern list in which all type variable references are replaced by their corresponding entry in the map- Parameter:
typeVariableMap-- Gibt zurück:
-
resolveBindings
public TypePatternList resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) -
resolveReferences
-
postRead
-
equals
-
hashCode
public int hashCode() -
read
public static TypePatternList read(VersionedDataInputStream s, ISourceContext context) throws IOException - Löst aus:
IOException
-
getEnd
public int getEnd()Beschreibung aus Schnittstelle kopiert:IHasPositionThe ending index of this location in the character stream This points to the last character in this token. If a location truly had no contents, then start == end + 1. We don't recommend this.- Angegeben von:
getEndin SchnittstelleIHasPosition- Setzt außer Kraft:
getEndin KlassePatternNode
-
getSourceContext
- Angegeben von:
getSourceContextin SchnittstelleIHasSourceLocation- Setzt außer Kraft:
getSourceContextin KlassePatternNode
-
getSourceLocation
- Angegeben von:
getSourceLocationin SchnittstelleIHasSourceLocation- Setzt außer Kraft:
getSourceLocationin KlassePatternNode
-
getStart
public int getStart()Beschreibung aus Schnittstelle kopiert:IHasPositionThe starting index of this location in the character stream.- Angegeben von:
getStartin SchnittstelleIHasPosition- Setzt außer Kraft:
getStartin KlassePatternNode
-
write
- Angegeben von:
writein KlassePatternNode- Löst aus:
IOException
-
getTypePatterns
-
getExactTypes
-
accept
- Angegeben von:
acceptin KlassePatternNode
-
traverse
- Setzt außer Kraft:
traversein KlassePatternNode
-
areAllExactWithNoSubtypesAllowed
public boolean areAllExactWithNoSubtypesAllowed() -
maybeGetCleanNames
-