|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.ASTNode org.codehaus.groovy.ast.AnnotatedNode org.codehaus.groovy.ast.expr.Expression
public abstract class Expression extends AnnotatedNode
Represents a base class for expressions which evaluate as an object
Method Summary | |
---|---|
ClassNode
|
getType()
|
void
|
setType(ClassNode t)
|
Expression
|
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions |
protected List
|
transformExpressions(List expressions, ExpressionTransformer transformer)
Transforms the list of expressions |
protected List
|
transformExpressions(List expressions, ExpressionTransformer transformer, Class transformedType)
Transforms the list of expressions, and checks that all transformed expressions have the given type. |
Methods inherited from class AnnotatedNode | |
---|---|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
public ClassNode getType()
public void setType(ClassNode t)
public Expression transformExpression(ExpressionTransformer transformer)
protected List transformExpressions(List expressions, ExpressionTransformer transformer)
protected List transformExpressions(List expressions, ExpressionTransformer transformer, Class transformedType)
Copyright © 2003-2013 The Codehaus. All rights reserved.