org.aspectj.weaver.patterns
Class PatternNode

java.lang.Object
  extended by 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


Field Summary
protected  int end
           
protected  ISourceContext sourceContext
           
protected  int start
           
 
Constructor Summary
PatternNode()
           
 
Method Summary
abstract  java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
           
 void copyLocationFrom(PatternNode other)
           
 int getEnd()
          The ending index of this location in the character stream This points to the last character in this token.
 java.lang.String getFileName()
           
 ISourceContext getSourceContext()
           
 ISourceLocation getSourceLocation()
           
 int getStart()
          The starting index of this location in the character stream.
 void readLocation(ISourceContext context, java.io.DataInputStream s)
           
 void setLocation(ISourceContext sourceContext, int start, int end)
           
 java.lang.Object traverse(PatternNodeVisitor visitor, java.lang.Object data)
           
abstract  void write(CompressingDataOutputStream s)
           
 void writeLocation(java.io.DataOutputStream s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

protected int start

end

protected int end

sourceContext

protected ISourceContext sourceContext
Constructor Detail

PatternNode

public PatternNode()
Method Detail

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)