Package org.tensorics.core.expressions
Class UnaryOperationExpression<T>
- java.lang.Object
-
- org.tensorics.core.tree.domain.AbstractDeferredExpression<T>
-
- org.tensorics.core.expressions.UnaryOperationExpression<T>
-
- Type Parameters:
T- the type of the unary operand on which to perform the unary operation
- All Implemented Interfaces:
java.io.Serializable,Expression<T>,Node
public class UnaryOperationExpression<T> extends AbstractDeferredExpression<T> implements java.io.Serializable
An unresolved expression, which can be resolved by a corresponding resolver by evaluating an unary operation. The information it contains for the resolver, are the operation itself and an expression for the single operand on whose resolved result the unary operation shall be performed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnaryOperationExpression(UnaryOperation<T> operation, Expression<T> operand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<Node>getChildren()Has to return the children of the node.Expression<T>getOperand()UnaryOperation<T>getOperation()inthashCode()java.lang.StringtoString()-
Methods inherited from class org.tensorics.core.tree.domain.AbstractDeferredExpression
get, isResolved
-
-
-
-
Constructor Detail
-
UnaryOperationExpression
public UnaryOperationExpression(UnaryOperation<T> operation, Expression<T> operand)
-
-
Method Detail
-
getOperation
public UnaryOperation<T> getOperation()
-
getOperand
public Expression<T> getOperand()
-
getChildren
public java.util.List<Node> getChildren()
Description copied from interface:NodeHas to return the children of the node. This must never returnnull- Specified by:
getChildrenin interfaceNode- Returns:
- a list containing all the children of the node
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-