Package org.tensorics.core.expressions
Class BinaryOperationExpression<T>
- java.lang.Object
-
- org.tensorics.core.tree.domain.AbstractDeferredExpression<T>
-
- org.tensorics.core.expressions.BinaryOperationExpression<T>
-
- Type Parameters:
T
- the type of the results of the operands (and the result of the expression)
- All Implemented Interfaces:
java.io.Serializable
,Expression<T>
,Node
public class BinaryOperationExpression<T> extends AbstractDeferredExpression<T> implements java.io.Serializable
An unresolved expression which can be resolved by applying a binary operation on the results of the two operands (left, right). An instance contains the binary operation itself as well as expressions for both operands.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BinaryOperationExpression(BinaryOperation<T> operation, Expression<T> left, Expression<T> right)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<Node>
getChildren()
Has to return the children of the node.Expression<T>
getLeft()
BinaryOperation<T>
getOperation()
Expression<T>
getRight()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class org.tensorics.core.tree.domain.AbstractDeferredExpression
get, isResolved
-
-
-
-
Constructor Detail
-
BinaryOperationExpression
public BinaryOperationExpression(BinaryOperation<T> operation, Expression<T> left, Expression<T> right)
-
-
Method Detail
-
getOperation
public BinaryOperation<T> getOperation()
-
getLeft
public Expression<T> getLeft()
-
getRight
public Expression<T> getRight()
-
getChildren
public java.util.List<Node> getChildren()
Description copied from interface:Node
Has to return the children of the node. This must never returnnull
- Specified by:
getChildren
in interfaceNode
- Returns:
- a list containing all the children of the node
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-