| java.lang.Object org.gjt.sp.jedit.bsh.SimpleNode
All known Subclasses: org.gjt.sp.jedit.bsh.BSHMethodInvocation, org.gjt.sp.jedit.bsh.BSHThrowStatement, org.gjt.sp.jedit.bsh.BSHTernaryExpression, org.gjt.sp.jedit.bsh.BSHBinaryExpression, org.gjt.sp.jedit.bsh.BSHReturnType, org.gjt.sp.jedit.bsh.BSHReturnStatement, org.gjt.sp.jedit.bsh.BSHFormalParameter, org.gjt.sp.jedit.bsh.BSHMethodDeclaration, org.gjt.sp.jedit.bsh.BSHArguments, org.gjt.sp.jedit.bsh.BSHStatementExpressionList, org.gjt.sp.jedit.bsh.BSHClassDeclaration, org.gjt.sp.jedit.bsh.BSHAssignment, org.gjt.sp.jedit.bsh.BSHPrimarySuffix, org.gjt.sp.jedit.bsh.BSHAmbiguousName, org.gjt.sp.jedit.bsh.BSHVariableDeclarator, org.gjt.sp.jedit.bsh.BSHSwitchLabel, org.gjt.sp.jedit.bsh.BSHBlock, org.gjt.sp.jedit.bsh.BSHArrayInitializer, org.gjt.sp.jedit.bsh.BSHTypedVariableDeclaration, org.gjt.sp.jedit.bsh.BSHPrimitiveType, org.gjt.sp.jedit.bsh.BSHPackageDeclaration, org.gjt.sp.jedit.bsh.BSHForStatement, org.gjt.sp.jedit.bsh.BSHTryStatement, org.gjt.sp.jedit.bsh.BSHEnhancedForStatement, org.gjt.sp.jedit.bsh.BSHType, org.gjt.sp.jedit.bsh.BSHAllocationExpression, org.gjt.sp.jedit.bsh.BSHUnaryExpression, org.gjt.sp.jedit.bsh.BSHSwitchStatement, org.gjt.sp.jedit.bsh.BSHFormalComment, org.gjt.sp.jedit.bsh.BSHWhileStatement, org.gjt.sp.jedit.bsh.BSHCastExpression, org.gjt.sp.jedit.bsh.BSHPrimaryExpression, org.gjt.sp.jedit.bsh.BSHFormalParameters, org.gjt.sp.jedit.bsh.BSHArrayDimensions, org.gjt.sp.jedit.bsh.BSHLiteral, org.gjt.sp.jedit.bsh.BSHIfStatement, org.gjt.sp.jedit.bsh.BSHImportDeclaration,
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.
|
|
|