org.kuali.student.common.messagebuilder.booleanmessage.ast
Class BooleanNode

java.lang.Object
  extended by org.antlr.runtime.tree.BaseTree
      extended by org.antlr.runtime.tree.CommonTree
          extended by org.kuali.student.common.messagebuilder.booleanmessage.ast.BooleanNode
All Implemented Interfaces:
org.antlr.runtime.tree.Tree

public class BooleanNode
extends org.antlr.runtime.tree.CommonTree

This class is a boolean node in a binary tree.


Field Summary
 
Fields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, startIndex, stopIndex, token
 
Fields inherited from class org.antlr.runtime.tree.BaseTree
children
 
Fields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE
 
Constructor Summary
BooleanNode(org.antlr.runtime.Token payload)
          Construct a boolean node for a particular token in a binary tree.
 
Method Summary
 String getLabel()
          Gets the label of the node.
 String getLanguage()
          Gets the message language.
 BooleanNode getLeftNode()
          Gets the b-tree left node.
 String getNodeMessage()
          Gets the node message.
 BooleanNode getParent()
          Gets the parent boolean node.
 BooleanNode getRightNode()
          Gets the b-tree right node.
 Boolean getValue()
          Gets the boolean value (true or false).
 void setLanguage(String language)
          Sets the message language.
 void setNodeMessage(String nodeMessage)
          Sets the node message.
 void setParent(BooleanNode parent)
          org.antlr.runtime.tree.CommonTree.getParent() is not implemented you have to set the parent yourself, BinaryMessageTree.java
 void setValue(Boolean value)
          Sets the boolean value (true or false).
 String toString()
           
 
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getLine, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex
 
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getChild, getChildCount, getChildren, getFirstChildWithType, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanNode

public BooleanNode(org.antlr.runtime.Token payload)
Construct a boolean node for a particular token in a binary tree. Tokens are +, *, (, ) and propositions e.g. tokens: (M1*M2)+M3 See BooleanFunctionParser.java

Parameters:
payload - Node token
Method Detail

getParent

public BooleanNode getParent()
Gets the parent boolean node.

Specified by:
getParent in interface org.antlr.runtime.tree.Tree
Overrides:
getParent in class org.antlr.runtime.tree.CommonTree
Returns:
Parent boolean node

getLeftNode

public BooleanNode getLeftNode()
Gets the b-tree left node.

Returns:
B-tree left boolean node

getRightNode

public BooleanNode getRightNode()
Gets the b-tree right node.

Returns:
B-tree right boolean node

getLabel

public String getLabel()
Gets the label of the node.

Returns:
Node label

getValue

public Boolean getValue()
Gets the boolean value (true or false).

Returns:
Boolean value

getNodeMessage

public String getNodeMessage()
Gets the node message.

Returns:
Node message

getLanguage

public String getLanguage()
Gets the message language.

Returns:
Message language

setParent

public void setParent(BooleanNode parent)
org.antlr.runtime.tree.CommonTree.getParent() is not implemented you have to set the parent yourself, BinaryMessageTree.java

Parameters:
parent - Parent node

setValue

public void setValue(Boolean value)
Sets the boolean value (true or false).

Parameters:
value - Boolean value

setNodeMessage

public void setNodeMessage(String nodeMessage)
Sets the node message.

Parameters:
nodeMessage - Node message

setLanguage

public void setLanguage(String language)
Sets the message language.

Parameters:
language - Message language

toString

public String toString()
Specified by:
toString in interface org.antlr.runtime.tree.Tree
Overrides:
toString in class org.antlr.runtime.tree.CommonTree


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.