程序包 bsh
类 BSHFormalComment
java.lang.Object
bsh.BSHFormalComment
- 所有已实现的接口:
Serializable
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
eval
(CallStack callstack, Interpreter interpreter) This is the general signature for evaluation of a node.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
(bsh.Node n, int i) void
jjtClose()
bsh.Node
jjtGetChild
(int i) int
bsh.Node
void
jjtOpen()
void
jjtSetParent
(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()
-
字段详细资料
-
text
-
JAVACODE
public static bsh.SimpleNode JAVACODE -
parent
protected bsh.Node parent -
children
protected bsh.Node[] children -
id
protected int id
-
-
构造器详细资料
-
BSHFormalComment
public BSHFormalComment(int id)
-
-
方法详细资料
-
jjtOpen
public void jjtOpen() -
jjtClose
public void jjtClose() -
jjtSetParent
public void jjtSetParent(bsh.Node n) -
jjtGetParent
public bsh.Node jjtGetParent() -
jjtAddChild
public void jjtAddChild(bsh.Node n, int i) -
jjtGetChild
public bsh.Node jjtGetChild(int i) -
getChild
public 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) -
eval
This is the general signature for evaluation of a node.- 抛出:
EvalError
-
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.
-