JavaDoq 1.0 API

com.javadoq.jjtree
Class ASTNode

java.lang.Object
  extended by com.javadoq.jjtree.SimpleNode
      extended by com.javadoq.jjtree.ASTNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
ASTCompilationUnit, ASTGrammar, ASTName, ASTNewType, ASTSuperList

public abstract class ASTNode
extends SimpleNode

An abstract base class for JJTree nodes.

Author:
J.J.Liu (Jianjun Liu) at http://www.javadoq.com

Field Summary
 Token firstToken
          The first token of this node.
 Token lastToken
          The last token of this node.
 
Fields inherited from class com.javadoq.jjtree.SimpleNode
children, id, parent, parser, value
 
Constructor Summary
protected ASTNode(int i)
          Constructs a ASTNode without a JJTreeParser.
protected ASTNode(JJTreeParser p, int i)
          Constructs a ASTNode with a JJTreeParser.
 
Method Summary
 
Methods inherited from class com.javadoq.jjtree.SimpleNode
childrenAccept, dump, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

firstToken

public Token firstToken

The first token of this node.

Since:
1.0

lastToken

public Token lastToken

The last token of this node.

Since:
1.0
Constructor Detail

ASTNode

protected ASTNode(int i)

Constructs a ASTNode without a JJTreeParser.

Parameters:
i - The id.
Since:
1.0

ASTNode

protected ASTNode(JJTreeParser p,
                  int i)

Constructs a ASTNode with a JJTreeParser.

Parameters:
p - The JJTreeParser
i - The id.
Since:
1.0

JavaDoq 1.0 API

Copyright © 2008-2011 J.J.Liu (www.javadoq.com). All Rights Reserved.