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.2 $
Author:
James Strachan

Field Summary
static org.codehaus.groovy.ast.expr.VariableExpression THIS_EXPRESSION
           
 
Fields inherited from class org.codehaus.groovy.ast.ASTNode
EMPTY_STRING_ARRAY
 
Constructor Summary
VariableExpression(String variable)
           
 
Method Summary
 String getText()
           
 String getVariable()
           
 String toString()
           
 void visit(org.codehaus.groovy.ast.GroovyCodeVisitor visitor)
           
 
Methods inherited from class org.codehaus.groovy.ast.ASTNode
getColumnNumber, getLineNumber, setColumnNumber, setCSTNode, setLineNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

THIS_EXPRESSION

public static final org.codehaus.groovy.ast.expr.VariableExpression THIS_EXPRESSION
Constructor Detail

VariableExpression

public VariableExpression(String variable)
Method Detail

visit

public void visit(org.codehaus.groovy.ast.GroovyCodeVisitor visitor)
Overrides:
visit in class ASTNode

getVariable

public String getVariable()

getText

public String getText()
Overrides:
getText in class ASTNode

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003 The Codehaus. All Rights Reserved.