Interface ITreeNode

  • All Implemented Interfaces:
    java.io.Serializable

    
    public interface ITreeNode<T>
     implements Serializable
                        

    Represents an interface for node of the Tree class.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • getData

         abstract T getData()
        Returns:

        the object embedded in this node

      • getNumberOfChildren

         abstract int getNumberOfChildren()
        Returns:

        the number of first level children.

      • getType

         abstract Type getType()
        Returns:

        the type of this node

      • 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.

      • toHashString

         abstract HashString toHashString()

        Similar to toString(), but returns a HashString.

        Returns:

        a HashString representation of this Object

      • toString

         abstract String toString()
        Returns:

        a String representation of this Object