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
public abstract class PatternNode
- extends java.lang.Object
- implements IHasSourceLocation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
start
protected int start
end
protected int end
sourceContext
protected ISourceContext sourceContext
PatternNode
public PatternNode()
getStart
public int getStart()
- Description copied from interface:
IHasPosition
- The starting index of this location in the character stream.
- Specified by:
getStart
in interface IHasPosition
getEnd
public int getEnd()
- Description copied from interface:
IHasPosition
- The 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:
getEnd
in interface IHasPosition
getSourceContext
public ISourceContext getSourceContext()
- Specified by:
getSourceContext
in interface IHasSourceLocation
getFileName
public java.lang.String getFileName()
setLocation
public void setLocation(ISourceContext sourceContext,
int start,
int end)
copyLocationFrom
public void copyLocationFrom(PatternNode other)
getSourceLocation
public ISourceLocation getSourceLocation()
- Specified by:
getSourceLocation
in interface IHasSourceLocation
write
public abstract void write(CompressingDataOutputStream s)
throws java.io.IOException
- Throws:
java.io.IOException
writeLocation
public void writeLocation(java.io.DataOutputStream s)
throws java.io.IOException
- Throws:
java.io.IOException
readLocation
public void readLocation(ISourceContext context,
java.io.DataInputStream s)
throws java.io.IOException
- Throws:
java.io.IOException
accept
public abstract java.lang.Object accept(PatternNodeVisitor visitor,
java.lang.Object data)
traverse
public java.lang.Object traverse(PatternNodeVisitor visitor,
java.lang.Object data)