org.codehaus.groovy.ast.expr
Class VariableExpression
java.lang.Object
org.codehaus.groovy.ast.ASTNode
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".
- Version:
- $Revision: 1.4 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
THIS_EXPRESSION
public static final VariableExpression THIS_EXPRESSION
VariableExpression
public VariableExpression(java.lang.String variable)
visit
public void visit(GroovyCodeVisitor visitor)
- Overrides:
visit
in class ASTNode
transformExpression
public Expression transformExpression(ExpressionTransformer transformer)
- Description copied from class:
Expression
- Return a copy of the expression calling the transformer on any nested expressions
- Specified by:
transformExpression
in class Expression
- Parameters:
transformer
-
- Returns:
getVariable
public java.lang.String getVariable()
getText
public java.lang.String getText()
- Overrides:
getText
in class ASTNode
getType
public java.lang.String getType()
setType
public void setType(java.lang.String type)
isDynamic
public boolean isDynamic()
- Returns:
- true if this variable is dynamically typed
toString
public java.lang.String toString()
Copyright © 2003-2004 The Codehaus. All Rights Reserved.