1 46 package org.codehaus.groovy.ast.expr; 47 48 import org.codehaus.groovy.ast.GroovyCodeVisitor; 49 import org.codehaus.groovy.syntax.Token; 50 51 58 public class DeclarationExpression extends BinaryExpression { 59 60 public DeclarationExpression(VariableExpression left, Token operation, Expression right) { 61 super(left,operation,right); 62 } 63 64 public void visit(GroovyCodeVisitor visitor) { 65 visitor.visitDeclarationExpression(this); 66 } 67 68 public VariableExpression getVariableExpression() { 69 return (VariableExpression) this.getLeftExpression(); 70 } 71 72 public void setLeftExpression(Expression leftExpression) { 73 super.setLeftExpression((VariableExpression) leftExpression); 74 } 75 } 76 | Popular Tags |