java.lang.Object
org.gjt.sp.jedit.bsh.BSHPackageDeclaration
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
eval
(CallStack callstack, Interpreter interpreter) This is the general signature for evaluation of a node.org.gjt.sp.jedit.bsh.SimpleNode
getChild
(int i) int
Get the line number of the starting tokenGet the name of the source file (or more generally source) of the text from which this node was parsed.getText()
Get the text of the tokens comprising this node.void
jjtAddChild
(org.gjt.sp.jedit.bsh.Node n, int i) void
jjtClose()
org.gjt.sp.jedit.bsh.Node
jjtGetChild
(int i) int
org.gjt.sp.jedit.bsh.Node
void
jjtOpen()
void
jjtSetParent
(org.gjt.sp.jedit.bsh.Node n) 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.toString()
-
Field Details
-
JAVACODE
public static org.gjt.sp.jedit.bsh.SimpleNode JAVACODE -
parent
protected org.gjt.sp.jedit.bsh.Node parent -
children
protected org.gjt.sp.jedit.bsh.Node[] children -
id
protected int id
-
-
Constructor Details
-
BSHPackageDeclaration
public BSHPackageDeclaration(int id)
-
-
Method Details
-
eval
This is the general signature for evaluation of a node.- Throws:
EvalError
-
jjtOpen
public void jjtOpen() -
jjtClose
public void jjtClose() -
jjtSetParent
public void jjtSetParent(org.gjt.sp.jedit.bsh.Node n) -
jjtGetParent
public org.gjt.sp.jedit.bsh.Node jjtGetParent() -
jjtAddChild
public void jjtAddChild(org.gjt.sp.jedit.bsh.Node n, int i) -
jjtGetChild
public org.gjt.sp.jedit.bsh.Node jjtGetChild(int i) -
getChild
public org.gjt.sp.jedit.bsh.SimpleNode getChild(int i) -
jjtGetNumChildren
public int jjtGetNumChildren() -
toString
-
toString
-
dump
-
prune
public void prune()Detach this node from its parent. This is primarily useful in node serialization. (see BSHMethodDeclaration) -
setSourceFile
Set the name of the source file (or more generally source) of the text from which this node was parsed. -
getSourceFile
Get the name of the source file (or more generally source) of the text from which this node was parsed. This will recursively search up the chain of parent nodes until a source is found or return a string indicating that the source is unknown. -
getLineNumber
public int getLineNumber()Get the line number of the starting token -
getText
Get the text of the tokens comprising this node.
-