public class TernaryExpression extends Expression
Constructor and Description |
---|
TernaryExpression(BooleanExpression booleanExpression,
Expression trueExpression,
Expression falseExpression) |
Modifier and Type | Method and Description |
---|---|
BooleanExpression |
getBooleanExpression() |
Expression |
getFalseExpression() |
java.lang.String |
getText() |
Expression |
getTrueExpression() |
ClassNode |
getType() |
java.lang.String |
toString() |
Expression |
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions
|
void |
visit(GroovyCodeVisitor visitor) |
setType, transformExpressions, transformExpressions
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public TernaryExpression(BooleanExpression booleanExpression, Expression trueExpression, Expression falseExpression)
public void visit(GroovyCodeVisitor visitor)
public Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression
in class Expression
public java.lang.String toString()
toString
in class java.lang.Object
public BooleanExpression getBooleanExpression()
public Expression getFalseExpression()
public Expression getTrueExpression()
public ClassNode getType()
getType
in class Expression