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 boolean
equals(java.lang.Object obj)
java.util.List<Node>
getChildren()
Has to return the children of the node.CreationOperation<T>
getOperation()
int
hashCode()
java.lang.String
toString()
-
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: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
-
getOperation
public CreationOperation<T> getOperation()
-
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
-
-