|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sasl.language.placeholder.syntax.ASTNode
net.sf.sasl.language.placeholder.syntax.ScriptNode
public class ScriptNode
Defines a script node, which is the root node of each placeholder script.
Field Summary |
---|
Fields inherited from class net.sf.sasl.language.placeholder.syntax.ASTNode |
---|
INDENT_PER_DEPTH, INDENT_STRING |
Constructor Summary | |
---|---|
ScriptNode()
Creates an empty script node. |
Method Summary | |
---|---|
void |
addChildNode(ASTNode childNode)
Adds the given node as a child node of this node. |
List<ASTNode> |
getChildNodes()
Returns a list of all child nodes of this node. |
boolean |
isLeafNode()
Returns true if this node is a leaf node. |
String |
prettyPrint(int indent)
Returns a human readable string representation of the tree spanned of by this node. |
String |
toString()
Returns the same output as calling ASTNode.prettyPrint(int) with
indent=0. |
Methods inherited from class net.sf.sasl.language.placeholder.syntax.ASTNode |
---|
getParentNode, isRootNode, setParentNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScriptNode()
Method Detail |
---|
public void addChildNode(ASTNode childNode) throws IllegalArgumentException
childNode
- non null
IllegalArgumentException
- if child node is nullpublic List<ASTNode> getChildNodes()
ASTNode
getChildNodes
in class ASTNode
ASTNode.getChildNodes()
public boolean isLeafNode()
ASTNode
isLeafNode
in class ASTNode
ASTNode.isLeafNode()
public String toString()
ASTNode
ASTNode.prettyPrint(int)
with
indent=0.
toString
in class ASTNode
ASTNode.toString()
public String prettyPrint(int indent)
ASTNode
prettyPrint
in class ASTNode
indent
- how often ASTNode.INDENT_STRING
should be printed in front of
each new line at this tree depth.
ASTNode.prettyPrint(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |