Package org.tensorics.core.tree.domain
Interface Expression<R>
-
- Type Parameters:
R
- the type of the resulting value
- All Superinterfaces:
Node
,java.io.Serializable
- All Known Subinterfaces:
ExceptionHandlingNode<R>
- All Known Implementing Classes:
AbstractDeferredExpression
,AnalysisExpression
,AnyIterableConversionExpression
,AssertionExpression
,BinaryOperationExpression
,BinaryPredicateExpression
,BinaryPredicateIterableExpression
,ConversionOperationExpression
,CreationOperationExpression
,DiscreteFunctionToIterableExpression
,DoubleScript
,FunctionalExpression
,IsEqualToExpression
,IsNotEqualExpression
,IterableExpressionToIterable
,IterableOperationExpression
,IterableResolvingExpression
,LatestOfExpression
,PickExpression
,Placeholder
,PreconditionExpression
,PredicateExpression
,ResolvedExpression
,TensoricScript
,UnaryOperationExpression
public interface Expression<R> extends Node, java.io.Serializable
An expression is a placeholder for concrete value (called 'resolved' in the following) or a value which has to still be evaluated (deferred).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
get()
Retrieves the value of the expression.boolean
isResolved()
returnstrue
if the expression contains a concrete value.-
Methods inherited from interface org.tensorics.core.tree.domain.Node
getChildren
-
-
-
-
Method Detail
-
isResolved
boolean isResolved()
returnstrue
if the expression contains a concrete value. Thus the methodget()
can be used to retrieve the actual value. If this method returnsfalse
, then the get method will throw an exception.- Returns:
true
if the value can be retrieved,false
otherwise.
-
get
R get()
Retrieves the value of the expression. If the expression is deferred, then an expression will be thrown.- Returns:
- the value of the expression.
- Throws:
ExpressionIsUnresolvedException
- if the value is not determined.
-
-