public class BSHFormalComment
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected bsh.Node[] |
children |
|
protected int |
id |
|
static bsh.SimpleNode |
JAVACODE |
|
protected bsh.Node |
parent |
|
java.lang.String |
text |
Constructor | Description |
---|---|
BSHFormalComment(int id) |
Modifier and Type | Method | Description |
---|---|---|
void |
dump(java.lang.String prefix) |
|
java.lang.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
|
java.lang.String |
getSourceFile() |
Get the name of the source file (or more generally source) of
the text from which this node was parsed.
|
java.lang.String |
getText() |
Get the text of the tokens comprising this node.
|
void |
jjtAddChild(bsh.Node n,
int i) |
|
void |
jjtClose() |
|
bsh.Node |
jjtGetChild(int i) |
|
int |
jjtGetNumChildren() |
|
bsh.Node |
jjtGetParent() |
|
void |
jjtOpen() |
|
void |
jjtSetParent(bsh.Node n) |
|
void |
prune() |
Detach this node from its parent.
|
void |
setSourceFile(java.lang.String sourceFile) |
Set the name of the source file (or more generally source) of
the text from which this node was parsed.
|
java.lang.String |
toString() |
|
java.lang.String |
toString(java.lang.String prefix) |
public java.lang.String text
public static bsh.SimpleNode JAVACODE
protected bsh.Node parent
protected bsh.Node[] children
protected int id
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 java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String prefix)
public void dump(java.lang.String prefix)
public void prune()
public java.lang.Object eval(CallStack callstack, Interpreter interpreter) throws EvalError
EvalError
public void setSourceFile(java.lang.String sourceFile)
public java.lang.String getSourceFile()
public int getLineNumber()
public java.lang.String getText()
? 2000 pat@pat.net :-)