|
Groovy 1.7.9 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.expr.Expression
org.codehaus.groovy.ast.expr.VariableExpression
public class VariableExpression extends Expression
Represents a local variable name, the simplest form of expression. e.g. "foo".
Field Summary | |
---|---|
static VariableExpression |
SUPER_EXPRESSION
|
static VariableExpression |
THIS_EXPRESSION
|
Constructor Summary | |
VariableExpression(String variable, ClassNode type)
|
|
VariableExpression(String variable)
|
|
VariableExpression(Variable variable)
|
Method Summary | |
---|---|
Variable
|
getAccessedVariable()
|
Expression
|
getInitialExpression()
|
String
|
getName()
|
ClassNode
|
getOriginType()
|
String
|
getText()
|
ClassNode
|
getType()
|
boolean
|
hasInitialExpression()
|
boolean
|
isClosureSharedVariable()
|
boolean
|
isDynamicTyped()
|
boolean
|
isInStaticContext()
|
boolean
|
isSuperExpression()
|
boolean
|
isThisExpression()
|
boolean
|
isUseReferenceDirectly()
|
void
|
setAccessedVariable(Variable origin)
|
void
|
setClosureSharedVariable(boolean inClosure)
|
void
|
setInStaticContext(boolean inStaticContext)
|
void
|
setType(ClassNode cn)
|
void
|
setUseReferenceDirectly(boolean useRef)
|
String
|
toString()
|
Expression
|
transformExpression(ExpressionTransformer transformer)
|
void
|
visit(GroovyCodeVisitor visitor)
|
Methods inherited from class Expression | |
---|---|
getType, setType, transformExpression, transformExpressions, transformExpressions |
Methods inherited from class AnnotatedNode | |
---|---|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
Methods inherited from class ASTNode | |
---|---|
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getText, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
public static final VariableExpression SUPER_EXPRESSION
public static final VariableExpression THIS_EXPRESSION
Constructor Detail |
---|
public VariableExpression(String variable, ClassNode type)
public VariableExpression(String variable)
public VariableExpression(Variable variable)
Method Detail |
---|
public Variable getAccessedVariable()
public Expression getInitialExpression()
public String getName()
public ClassNode getOriginType()
public String getText()
public ClassNode getType()
public boolean hasInitialExpression()
public boolean isClosureSharedVariable()
public boolean isDynamicTyped()
public boolean isInStaticContext()
public boolean isSuperExpression()
public boolean isThisExpression()
public boolean isUseReferenceDirectly()
public void setAccessedVariable(Variable origin)
public void setClosureSharedVariable(boolean inClosure)
public void setInStaticContext(boolean inStaticContext)
public void setType(ClassNode cn)
public void setUseReferenceDirectly(boolean useRef)
public String toString()
public Expression transformExpression(ExpressionTransformer transformer)
public void visit(GroovyCodeVisitor visitor)
Copyright © 2003-2010 The Codehaus. All rights reserved.