|
||||||||||
| 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.PlaceholderNode
public class PlaceholderNode
Defines a placeholder node. Placeholder nodes are references to "procedures" and have got a list of arguments.
| Field Summary |
|---|
| Fields inherited from class net.sf.sasl.language.placeholder.syntax.ASTNode |
|---|
INDENT_PER_DEPTH, INDENT_STRING |
| Constructor Summary | |
|---|---|
PlaceholderNode(String placeholderName,
List<ASTNode> argumentList)
Creates a placeholder node with the given placeholder name and list of arguments. |
|
| Method Summary | |
|---|---|
void |
addArgument(ASTNode argument)
Adds the given argument at the end of the argument list. |
List<ASTNode> |
getArgumentList()
Returns a copy of the placeholders argument list. |
List<ASTNode> |
getChildNodes()
Returns a list of all child nodes of this node. |
String |
getPlaceholderName()
Returns the name of the placeholder this node references. |
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. |
void |
setArgumentList(List<ASTNode> argumentList)
Sets the given argument list as the placeholders argument list. |
void |
setPlaceholderName(String placeholderName)
Sets then name of the placeholder that this node references. |
| Methods inherited from class net.sf.sasl.language.placeholder.syntax.ASTNode |
|---|
getParentNode, isRootNode, setParentNode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PlaceholderNode(String placeholderName,
List<ASTNode> argumentList)
throws IllegalArgumentException
placeholderName - non null name of the placeholder this node references.argumentList - non null list of arguments.
IllegalArgumentExceptionsetPlaceholderName(String)| Method Detail |
|---|
public String getPlaceholderName()
public void setPlaceholderName(String placeholderName)
throws IllegalArgumentException
placeholderName - non null
IllegalArgumentException - if placeholderName is null.public List<ASTNode> getArgumentList()
public void setArgumentList(List<ASTNode> argumentList)
throws IllegalArgumentException
argumentList - non null
IllegalArgumentException - if argumentList is null.
public void addArgument(ASTNode argument)
throws IllegalArgumentException
argument - non null
IllegalArgumentException - if argument is null.public boolean isLeafNode()
ASTNode
isLeafNode in class ASTNodeASTNode.isLeafNode()public List<ASTNode> getChildNodes()
ASTNode
getChildNodes in class ASTNodeASTNode.getChildNodes()public String prettyPrint(int indent)
ASTNode
prettyPrint in class ASTNodeindent - 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 | |||||||||