public class ConditionalExpression extends Expression
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
condition
The condition.
|
protected Expression |
first
The first value expression.
|
static IFunction |
FUNCTION_CONDITIONAL
A function to evaluate conditionals.
|
protected Expression |
second
The second value expression.
|
| Constructor and Description |
|---|
ConditionalExpression(Expression condition,
Expression first,
Expression second)
Create a new operation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsVariable(Variable var)
Test if a variable is contained in the expression.
|
boolean |
equals(java.lang.Object o)
Test if this constraint is equal to some object.
|
Expression |
getCondition()
Get the condition.
|
Expression |
getFirstValue()
Get the first value.
|
Expression |
getSecondValue()
Get the second value.
|
int |
hashCode()
Get the hash code of this field access.
|
java.lang.String |
toString()
Get a string representation of this constraint.
|
public static final IFunction FUNCTION_CONDITIONAL
protected Expression condition
protected Expression first
protected Expression second
public ConditionalExpression(Expression condition, Expression first, Expression second)
public boolean containsVariable(Variable var)
containsVariable in class Expressionvar - The variable.public Expression getCondition()
public Expression getFirstValue()
public Expression getSecondValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object