Package org.tensorics.core.expressions
Class CreationOperationExpression<T>
- java.lang.Object
-
- org.tensorics.core.tree.domain.AbstractDeferredExpression<T>
-
- org.tensorics.core.expressions.CreationOperationExpression<T>
-
- Type Parameters:
T- the type of the object which will be created by the contained operation.
- All Implemented Interfaces:
java.io.Serializable,Expression<T>,Node
public class CreationOperationExpression<T> extends AbstractDeferredExpression<T> implements java.io.Serializable
An expression which contains an operation which will create an object of a certain type just from nothing (with no additional input).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreationOperationExpression(CreationOperation<T> operation)
-
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.CreationOperation<T>getOperation()inthashCode()java.lang.StringtoString()-
Methods inherited from class org.tensorics.core.tree.domain.AbstractDeferredExpression
get, isResolved
-
-
-
-
Constructor Detail
-
CreationOperationExpression
public CreationOperationExpression(CreationOperation<T> operation)
-
-
Method Detail
-
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
-
getOperation
public CreationOperation<T> getOperation()
-
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
-
-