pt.compiler.parser.ast
Class Node

java.lang.Object
  extended by pt.compiler.parser.ast.Node
Direct Known Subclasses:
BodyDeclaration, CatchClause, Comment, CompilationUnit, Expression, ImportDeclaration, MemberValuePair, PackageDeclaration, Parameter, Statement, Type, TypeParameter, VariableDeclarator, VariableDeclaratorId

public abstract class Node
extends java.lang.Object

Author:
Julio Vilmar Gesser

Constructor Summary
Node(int line, int column)
          Deprecated. 
Node(int beginLine, int beginColumn, int endLine, int endColumn)
           
 
Method Summary
<R,A> R
accept(GenericVisitor<R,A> v, A arg)
           
<A> void
accept(VoidVisitor<A> v, A arg)
           
 int getBeginColumn()
           
 int getBeginLine()
           
 java.lang.Object getData()
          Use this to retrieve additional information associated to this node.
 int getEndColumn()
           
 int getEndLine()
           
 void setData(java.lang.Object data)
          Use this to store additional information to this node.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

@Deprecated
public Node(int line,
                       int column)
Deprecated. 


Node

public Node(int beginLine,
            int beginColumn,
            int endLine,
            int endColumn)
Method Detail

getData

public java.lang.Object getData()
Use this to retrieve additional information associated to this node.


setData

public void setData(java.lang.Object data)
Use this to store additional information to this node.


getBeginLine

public final int getBeginLine()

getBeginColumn

public final int getBeginColumn()

getEndLine

public final int getEndLine()

getEndColumn

public final int getEndColumn()

accept

public <A> void accept(VoidVisitor<A> v,
                       A arg)

accept

public <R,A> R accept(GenericVisitor<R,A> v,
                      A arg)

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object