package org.nfunk.jep;

public class ASTVarNode extends SimpleNode {
  private Variable var;
  
  public ASTVarNode(int paramInt) {
    super(paramInt);
    this.var = null;
  }
  
  public ASTVarNode(Parser paramParser, int paramInt) {
    super(paramParser, paramInt);
  }
  
  public Object jjtAccept(ParserVisitor paramParserVisitor, Object paramObject) throws ParseException {
    return paramParserVisitor.visit(this, paramObject);
  }
  
  public void setVar(Variable paramVariable) {
    this.var = paramVariable;
  }
  
  public Variable getVar() {
    return this.var;
  }
  
  public String getName() {
    return this.var.getName();
  }
  
  public String toString() {
    return "Variable: \"" + getName() + "\"";
  }
}
