Class ATreeNode
-
-
Method Summary
Modifier and Type Method Description T
getData()
boolean
equals(Object t)
ITreeNode<out Object>
getLeftChild()
int
getNumberOfChildren()
ITreeNode<out Object>
getRightChild()
abstract T
getValue(Map<HashString, ITreeNode<out Object>> mp)
int
hashCode()
HashString
toHashString()
Similar to toString(), but returns a HashString. abstract String
toString()
-
-
Method Detail
-
getLeftChild
ITreeNode<out Object> getLeftChild()
- Returns:
the left child (if any)
-
getNumberOfChildren
int getNumberOfChildren()
- Returns:
the number of first level children.
-
getRightChild
ITreeNode<out Object> getRightChild()
- Returns:
the righr child (if any)
-
getValue
abstract T getValue(Map<HashString, ITreeNode<out Object>> mp)
- Parameters:
mp
- the matches map.- Returns:
the value of the Node. (Double if it's a Num or a Var of type Num, String if it's a Const or a Var of type Const) the method return null if there are some variable not yet allocated in the expression.
-
hashCode
int hashCode()
-
toHashString
HashString toHashString()
Similar to toString(), but returns a HashString.
- Returns:
a HashString representation of this Object
-
-
-
-