public class BSHPackageDeclaration extends Object
Modifier and Type | Field and Description |
---|---|
protected bsh.Node[] |
children |
protected int |
id |
static bsh.SimpleNode |
JAVACODE |
protected bsh.Node |
parent |
Constructor and Description |
---|
BSHPackageDeclaration(int id) |
Modifier and Type | Method and Description |
---|---|
void |
dump(String prefix) |
Object |
eval(CallStack callstack,
Interpreter interpreter)
This is the general signature for evaluation of a node.
|
bsh.SimpleNode |
getChild(int i) |
int |
getLineNumber()
Get the line number of the starting token
|
String |
getSourceFile()
Get the name of the source file (or more generally source) of
the text from which this node was parsed.
|
String |
getText()
Get the text of the tokens comprising this node.
|
void |
jjtAddChild(bsh.Node n,
int i)
This method tells the node to add its argument to the node's
list of children.
|
void |
jjtClose()
This method is called after all the child nodes have been
added.
|
bsh.Node |
jjtGetChild(int i)
This method returns a child node.
|
int |
jjtGetNumChildren()
Return the number of children the node has.
|
bsh.Node |
jjtGetParent() |
void |
jjtOpen()
This method is called after the node has been made the current
node.
|
void |
jjtSetParent(bsh.Node n)
This pair of methods are used to inform the node of its
parent.
|
void |
prune()
Detach this node from its parent.
|
void |
setSourceFile(String sourceFile)
Set the name of the source file (or more generally source) of
the text from which this node was parsed.
|
String |
toString() |
String |
toString(String prefix) |
public static bsh.SimpleNode JAVACODE
protected bsh.Node parent
protected bsh.Node[] children
protected int id
public Object eval(CallStack callstack, Interpreter interpreter) throws EvalError
EvalError
public void jjtOpen()
public void jjtClose()
public void jjtSetParent(bsh.Node n)
public bsh.Node jjtGetParent()
public void jjtAddChild(bsh.Node n, int i)
public bsh.Node jjtGetChild(int i)
public bsh.SimpleNode getChild(int i)
public int jjtGetNumChildren()
public void dump(String prefix)
public void prune()
public void setSourceFile(String sourceFile)
public String getSourceFile()
public int getLineNumber()
public String getText()
? 2000-2005 pat@pat.net :-)