xjavadoc
Class SimpleNode

java.lang.Object
  |
  +--xjavadoc.SimpleNode
All Implemented Interfaces:
Node

public class SimpleNode
extends Object
implements Node

Describe what this class does

Author:
Aslak Hellesøy

Field Summary
protected  Node[] children
           
protected  Token first
          This comment is not shared among first and last
protected  int id
           
static int instanceCount
           
protected  Token last
          This comment is not shared among first and last
protected  Node parent
           
protected  JavaParser parser
           
 
Constructor Summary
SimpleNode(int i)
          Describe what the SimpleNode constructor does
SimpleNode(JavaParser p, int i)
          Describe what the SimpleNode constructor does
 
Method Summary
 String dump()
           
 Token getFirstToken()
          Gets the FirstToken attribute of the SimpleNode object
 Token getLastToken()
          Gets the LastToken attribute of the SimpleNode object
 int getPosition()
          Returns our position under our parent.
 String getType()
           
 void jjtAddChild(Node n, int i)
          Describe what the method does
 void jjtClose()
          Describe what the method does
 Node jjtGetChild(int i)
          Describe what the method does
 int jjtGetNumChildren()
          Describe what the method does
 Node jjtGetParent()
          Describe what the method does
 void jjtOpen()
          Describe what the method does
 void jjtSetParent(Node n)
          Describe what the method does
 String toString()
          Describe what the method does
 String toString(String prefix)
          Describe what the method does
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instanceCount

public static int instanceCount

parent

protected Node parent

children

protected Node[] children

id

protected int id

parser

protected JavaParser parser

first

protected Token first
This comment is not shared among first and last


last

protected Token last
This comment is not shared among first and last

Constructor Detail

SimpleNode

public SimpleNode(int i)
Describe what the SimpleNode constructor does

Parameters:
i - Describe what the parameter does

SimpleNode

public SimpleNode(JavaParser p,
                  int i)
Describe what the SimpleNode constructor does

Parameters:
p - Describe what the parameter does
i - Describe what the parameter does
Method Detail

getPosition

public int getPosition()
Returns our position under our parent.

Returns:
our position under our parent.

getFirstToken

public Token getFirstToken()
Gets the FirstToken attribute of the SimpleNode object

Returns:
The FirstToken value

getLastToken

public Token getLastToken()
Gets the LastToken attribute of the SimpleNode object

Returns:
The LastToken value

getType

public String getType()

jjtOpen

public void jjtOpen()
Describe what the method does

Specified by:
jjtOpen in interface Node

jjtClose

public void jjtClose()
Describe what the method does

Specified by:
jjtClose in interface Node

jjtSetParent

public void jjtSetParent(Node n)
Describe what the method does

Specified by:
jjtSetParent in interface Node
Parameters:
n - Describe what the parameter does

jjtGetParent

public Node jjtGetParent()
Describe what the method does

Specified by:
jjtGetParent in interface Node
Returns:
Describe the return value

jjtAddChild

public void jjtAddChild(Node n,
                        int i)
Describe what the method does

Specified by:
jjtAddChild in interface Node
Parameters:
n - Describe what the parameter does
i - Describe what the parameter does

jjtGetChild

public Node jjtGetChild(int i)
Describe what the method does

Specified by:
jjtGetChild in interface Node
Parameters:
i - Describe what the parameter does
Returns:
Describe the return value

jjtGetNumChildren

public int jjtGetNumChildren()
Describe what the method does

Specified by:
jjtGetNumChildren in interface Node
Returns:
Describe the return value

toString

public String toString()
Describe what the method does

Overrides:
toString in class Object
Returns:
Describe the return value

toString

public String toString(String prefix)
Describe what the method does

Parameters:
prefix - Describe what the parameter does
Returns:
Describe the return value

dump

public String dump()


Copyright © 2002-2003 XDoclet Team. All Rights Reserved.