Class NamePattern
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.NamePattern
- All Implemented Interfaces:
IHasPosition, IHasSourceLocation
-
Field Summary
FieldsFields inherited from class PatternNode
end, sourceContext, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data) booleaninthashCode()booleanisAny()Method isAny.booleanmatches(char[] a2) booleanMethod maybeGetSimpleName.static NamePatterntoString()voidMethods inherited from class PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, 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) traverse(PatternNodeVisitor visitor, Object data) void
-
Field Details
-
ELLIPSIS
-
ANY
-
-
Constructor Details
-
NamePattern
-
NamePattern
public NamePattern(char[] pattern)
-
-
Method Details
-
matches
public boolean matches(char[] a2) -
matches
-
toString
-
equals
-
hashCode
-
write
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
- Throws:
IOException
-
maybeGetSimpleName
-
isAny
public boolean isAny()Method isAny.- Returns:
- boolean
-
accept
- Specified by:
acceptin classPatternNode
-