|
||||||||||
| 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.types.TypeValueNode<T>
public abstract class TypeValueNode<T>
Defines an abstract node that can store a static known type value object. As of this, the node is a leaf node.
| Field Summary |
|---|
| Fields inherited from class net.sf.sasl.language.placeholder.syntax.ASTNode |
|---|
INDENT_PER_DEPTH, INDENT_STRING |
| Constructor Summary | |
|---|---|
TypeValueNode()
Creates an empty root type value node. |
|
TypeValueNode(ASTNode parentNode)
Creates a type value node that has the given parent. |
|
TypeValueNode(T typeValue,
ASTNode parentNode)
Create a type value node with the given parent and type value. |
|
| Method Summary | |
|---|---|
T |
getTypeValue()
Returns the type value stored by this type value node. |
String |
prettyPrint(int indent)
Returns a human readable string representation of the tree spanned of by this node. |
void |
setTypeValue(T typeValue)
Sets the type value of this type value node. |
| Methods inherited from class net.sf.sasl.language.placeholder.syntax.ASTNode |
|---|
getChildNodes, getParentNode, isLeafNode, isRootNode, setParentNode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TypeValueNode()
public TypeValueNode(ASTNode parentNode)
parentNode - null or non null.
public TypeValueNode(T typeValue,
ASTNode parentNode)
typeValue - null or non null.parentNode - null or non null.| Method Detail |
|---|
public void setTypeValue(T typeValue)
throws IllegalArgumentException
typeValue - null or non null. throws IllegalArgumentException if typeValue
is null.
IllegalArgumentExceptionpublic T getTypeValue()
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 | |||||||||