public class ExpressionBasedProposition extends Object implements Proposition
Constructor and Description |
---|
ExpressionBasedProposition(Expression<Boolean> expression)
Create an ExpressionBasedProposition with the given value
|
Modifier and Type | Method and Description |
---|---|
PropositionResult |
evaluate(ExecutionEnvironment environment)
Evaluates this proposition -- and in the case of
Proposition s containing children,
those children as well -- and returns the boolean result; |
List<Proposition> |
getChildren()
Returns the
List of child Proposition s that belong to this object. |
boolean |
isCompound()
Indicates whether this
Proposition can have children. |
public ExpressionBasedProposition(Expression<Boolean> expression)
expression
- Expression
to set the expression topublic PropositionResult evaluate(ExecutionEnvironment environment)
Proposition
Proposition
s containing children,
those children as well -- and returns the boolean result;evaluate
in interface Proposition
environment
- the ExecutionEnvironment
that this Proposition
is running inpublic List<Proposition> getChildren()
Proposition
List
of child Proposition
s that belong to this object.
If there are no children (e.g. for simple Proposition
types), this must
return an empty List
.getChildren
in interface Proposition
List
containing any child Proposition
s that belong to this object. Must never return null.public boolean isCompound()
Proposition
Proposition
can have children.isCompound
in interface Proposition
Proposition
can contain child Proposition
s.Copyright © 2005–2016 The Kuali Foundation. All rights reserved.