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() |
java.lang.String |
getText() |
boolean |
isCoerce() |
boolean |
isIgnoringAutoboxing() |
void |
setCoerce(boolean coerce) |
void |
setType(ClassNode t) |
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) |
getType, 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 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 java.lang.String toString()
toString
in class java.lang.Object
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