fr.expression4j.core.impl
Class TreeElement

java.lang.Object
  extended by fr.expression4j.core.impl.TreeElement

public class TreeElement
extends java.lang.Object

element of the final expression tree.

Author:
SGINER

Field Summary
static int TREE_ELEMENT_TYPE_BINARY_OPERATOR
           
static int TREE_ELEMENT_TYPE_EXPRESSION_ELEMENT
           
static int TREE_ELEMENT_TYPE_OPERATOR_NOT_DEFINE
           
static int TREE_ELEMENT_TYPE_UNARY_OPERATOR
           
static int TREE_ELEMENT_TYPE_VALUE
           
 
Constructor Summary
TreeElement(int type, TreeElement leftElement, TreeElement rightElement, MathematicalElement value, java.lang.String expressionElementName, java.lang.String stringElement, java.lang.Object expressionElementProperties)
           
 
Method Summary
 int getElementType()
           
 java.lang.String getExpressionElementName()
           
 java.lang.Object getExpressionElementProperties()
           
 TreeElement getLeftElement()
           
 TreeElement getRightElement()
           
 java.lang.String getStringElement()
           
 MathematicalElement getValue()
           
 void setElementType(int elementType)
           
 void setExpressionElementProperties(java.lang.Object properties)
           
 void setLeftElement(TreeElement leftElement)
           
 void setRightElement(TreeElement rightElement)
           
 void setStringElement(java.lang.String variable)
           
 void setValue(MathematicalElement value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TREE_ELEMENT_TYPE_OPERATOR_NOT_DEFINE

public static final int TREE_ELEMENT_TYPE_OPERATOR_NOT_DEFINE
See Also:
Constant Field Values

TREE_ELEMENT_TYPE_VALUE

public static final int TREE_ELEMENT_TYPE_VALUE
See Also:
Constant Field Values

TREE_ELEMENT_TYPE_BINARY_OPERATOR

public static final int TREE_ELEMENT_TYPE_BINARY_OPERATOR
See Also:
Constant Field Values

TREE_ELEMENT_TYPE_UNARY_OPERATOR

public static final int TREE_ELEMENT_TYPE_UNARY_OPERATOR
See Also:
Constant Field Values

TREE_ELEMENT_TYPE_EXPRESSION_ELEMENT

public static final int TREE_ELEMENT_TYPE_EXPRESSION_ELEMENT
See Also:
Constant Field Values
Constructor Detail

TreeElement

public TreeElement(int type,
                   TreeElement leftElement,
                   TreeElement rightElement,
                   MathematicalElement value,
                   java.lang.String expressionElementName,
                   java.lang.String stringElement,
                   java.lang.Object expressionElementProperties)
Method Detail

getElementType

public int getElementType()

getLeftElement

public TreeElement getLeftElement()

getRightElement

public TreeElement getRightElement()

getValue

public MathematicalElement getValue()

getStringElement

public java.lang.String getStringElement()

setElementType

public void setElementType(int elementType)

setLeftElement

public void setLeftElement(TreeElement leftElement)

setRightElement

public void setRightElement(TreeElement rightElement)

setValue

public void setValue(MathematicalElement value)

setStringElement

public void setStringElement(java.lang.String variable)

getExpressionElementProperties

public java.lang.Object getExpressionElementProperties()

setExpressionElementProperties

public void setExpressionElementProperties(java.lang.Object properties)

getExpressionElementName

public java.lang.String getExpressionElementName()