| java.lang.Object bsh.SimpleNode
All known Subclasses: bsh.BSHPrimaryExpression, bsh.BSHWhileStatement, bsh.BSHStatementExpressionList, bsh.BSHType, bsh.BSHMethodInvocation, bsh.BSHIfStatement, bsh.BSHArrayDimensions, bsh.BSHTypedVariableDeclaration, bsh.BSHCastExpression, bsh.BSHAllocationExpression, bsh.BSHForStatement, bsh.BSHBinaryExpression, bsh.BSHMethodDeclaration, bsh.BSHVariableDeclarator, bsh.BSHClassDeclaration, bsh.BSHReturnType, bsh.BSHTernaryExpression, bsh.BSHArguments, bsh.BSHFormalParameters, bsh.BSHReturnStatement, bsh.BSHBlock, bsh.BSHEnhancedForStatement, bsh.BSHFormalParameter, bsh.BSHAssignment, bsh.BSHTryStatement, bsh.BSHUnaryExpression, bsh.BSHPrimitiveType, bsh.BSHFormalComment, bsh.BSHLiteral, bsh.BSHThrowStatement, bsh.BSHAmbiguousName, bsh.BSHArrayInitializer, bsh.BSHPackageDeclaration, bsh.BSHSwitchStatement, bsh.BSHImportDeclaration, bsh.BSHSwitchLabel, bsh.BSHPrimarySuffix,
sourceFile | String sourceFile(Code) | | the source of the text from which this was parsed
|
SimpleNode | public SimpleNode(int i)(Code) | | |
getLineNumber | public int getLineNumber()(Code) | | Get the line number of the starting token
|
getSourceFile | public String getSourceFile()(Code) | | 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.
|
getText | public String getText()(Code) | | Get the text of the tokens comprising this node.
|
jjtAddChild | public void jjtAddChild(Node n, int i)(Code) | | |
jjtClose | public void jjtClose()(Code) | | |
jjtGetNumChildren | public int jjtGetNumChildren()(Code) | | |
jjtOpen | public void jjtOpen()(Code) | | |
jjtSetParent | public void jjtSetParent(Node n)(Code) | | |
prune | public void prune()(Code) | | Detach this node from its parent.
This is primarily useful in node serialization.
(see BSHMethodDeclaration)
|
setSourceFile | public void setSourceFile(String sourceFile)(Code) | | Set the name of the source file (or more generally source) of
the text from which this node was parsed.
|
|
|