/*
 * Copyright 2012-2013 Institut National des Sciences Appliquées de Lyon (INSA-Lyon)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package fr.insalyon.citi.golo.compiler.parser;

public class ASTReference extends GoloASTNode {

  private String name;

  public ASTReference(int id) {
    super(id);
  }

  public ASTReference(GoloParser p, int id) {
    super(p, id);
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Override
  public String toString() {
    return "ASTReference{" +
        "name='" + name + '\'' +
        '}';
  }

  @Override
  public Object jjtAccept(GoloParserVisitor visitor, Object data) {
    return visitor.visit(this, data);
  }
}

@@ -738,16 +738,37 @@
 ASTNode 
+implements NamedNode 
 %7B%0A%0A  pri
@@ -899,32 +899,44 @@
 er(p, id);%0A  %7D%0A%0A
+  @Override%0A
   public String 
@@ -965,24 +965,36 @@
  name;%0A  %7D%0A%0A
+  @Override%0A
   public voi

introduce NamedNode interface