Package org.aspectj.weaver.patterns
Class PatternNode
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
- Direct Known Subclasses:
AnnotationPatternList,AnnotationTypePattern,Declare,ModifiersPattern,NamePattern,Pointcut,SignaturePattern,ThrowsPattern,TypePattern,TypePatternList,TypeVariablePattern,TypeVariablePatternList
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Objectaccept(PatternNodeVisitor visitor, Object data) voidcopyLocationFrom(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) abstract voidvoid
-
Field Details
-
start
protected int start -
end
protected int end -
sourceContext
-
-
Constructor Details
-
PatternNode
public PatternNode()
-
-
Method Details
-
getStart
public int getStart()Description copied from interface:IHasPositionThe starting index of this location in the character stream.- Specified by:
getStartin interfaceIHasPosition
-
getEnd
public int getEnd()Description copied from interface: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.- Specified by:
getEndin interfaceIHasPosition
-
getSourceContext
- Specified by:
getSourceContextin interfaceIHasSourceLocation
-
getFileName
-
setLocation
-
copyLocationFrom
-
getSourceLocation
- Specified by:
getSourceLocationin interfaceIHasSourceLocation
-
write
- Throws:
IOException
-
writeLocation
- Throws:
IOException
-
readLocation
- Throws:
IOException
-
accept
-
traverse
-