Package org.gjt.sp.jedit.bsh
Class BSHFormalComment
- java.lang.Object
-
- org.gjt.sp.jedit.bsh.BSHFormalComment
-
- All Implemented Interfaces:
java.io.Serializable
public class BSHFormalComment extends java.lang.Object- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BSHFormalComment(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump(java.lang.String prefix)java.lang.Objecteval(CallStack callstack, Interpreter interpreter)This is the general signature for evaluation of a node.org.gjt.sp.jedit.bsh.SimpleNodegetChild(int i)intgetLineNumber()Get the line number of the starting tokenjava.lang.StringgetSourceFile()Get the name of the source file (or more generally source) of the text from which this node was parsed.java.lang.StringgetText()Get the text of the tokens comprising this node.voidjjtAddChild(org.gjt.sp.jedit.bsh.Node n, int i)voidjjtClose()org.gjt.sp.jedit.bsh.NodejjtGetChild(int i)intjjtGetNumChildren()org.gjt.sp.jedit.bsh.NodejjtGetParent()voidjjtOpen()voidjjtSetParent(org.gjt.sp.jedit.bsh.Node n)voidprune()Detach this node from its parent.voidsetSourceFile(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.StringtoString()java.lang.StringtoString(java.lang.String prefix)
-
-
-
Method Detail
-
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String prefix)
-
dump
public void dump(java.lang.String prefix)
-
prune
public void prune()
Detach this node from its parent. This is primarily useful in node serialization. (see BSHMethodDeclaration)
-
eval
public java.lang.Object eval(CallStack callstack, Interpreter interpreter) throws EvalError
This is the general signature for evaluation of a node.- Throws:
EvalError
-
setSourceFile
public 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.
-
getSourceFile
public java.lang.String 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
public java.lang.String getText()
Get the text of the tokens comprising this node.
-
-