public class CastExpression extends Expression
Constructor and Description |
---|
CastExpression(ClassNode type,
Expression expression) |
CastExpression(ClassNode type,
Expression expression,
boolean ignoreAutoboxing) |
Modifier and Type | Method and Description |
---|---|
static CastExpression |
asExpression(ClassNode type,
Expression expression) |
Expression |
getExpression() |
String |
getText() |
boolean |
isCoerce() |
boolean |
isIgnoringAutoboxing() |
void |
setCoerce(boolean coerce) |
void |
setType(ClassNode t) |
String |
toString() |
Expression |
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions
|
void |
visit(GroovyCodeVisitor visitor) |
getType, transformExpressions, transformExpressions
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public CastExpression(ClassNode type, Expression expression)
public CastExpression(ClassNode type, Expression expression, boolean ignoreAutoboxing)
public static CastExpression asExpression(ClassNode type, Expression expression)
public boolean isIgnoringAutoboxing()
public boolean isCoerce()
public void setCoerce(boolean coerce)
public void visit(GroovyCodeVisitor visitor)
public Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression
in class Expression
public Expression getExpression()
public void setType(ClassNode t)
setType
in class Expression