Package org.tensorics.core.expressions
Class Placeholder<R>
- java.lang.Object
-
- org.tensorics.core.tree.domain.AbstractDeferredExpression<R>
-
- org.tensorics.core.expressions.Placeholder<R>
-
- Type Parameters:
R
- the type of the result of the expression
- All Implemented Interfaces:
java.io.Serializable
,Expression<R>
,Node
public class Placeholder<R> extends AbstractDeferredExpression<R>
Represents and unresolved expression which is simply identified by its name.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<? extends Node>
getChildren()
Has to return the children of the node.int
hashCode()
java.lang.String
name()
static <R> Placeholder<R>
ofClass(java.lang.Class<R> clazz)
static <R> Placeholder<R>
ofName(java.lang.String name)
java.lang.String
toString()
-
Methods inherited from class org.tensorics.core.tree.domain.AbstractDeferredExpression
get, isResolved
-
-
-
-
Method Detail
-
ofName
public static <R> Placeholder<R> ofName(java.lang.String name)
-
ofClass
public static <R> Placeholder<R> ofClass(java.lang.Class<R> clazz)
-
getChildren
public java.util.List<? extends Node> getChildren()
Description copied from interface:Node
Has to return the children of the node. This must never returnnull
- Returns:
- a list containing all the children of the node
-
name
public java.lang.String name()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-