001/*
002 * Copyright (c) 2012-2017 Institut National des Sciences Appliquées de Lyon (INSA-Lyon)
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 */
009
010package org.eclipse.golo.compiler.parser;
011
012public class ASTModuleDeclaration extends GoloASTNode implements NamedNode {
013
014  private String name;
015
016  public ASTModuleDeclaration(int i) {
017    super(i);
018  }
019
020  public ASTModuleDeclaration(GoloParser p, int i) {
021    super(p, i);
022  }
023
024  @Override
025  public String getName() {
026    return name;
027  }
028
029  @Override
030  public void setName(String name) {
031    this.name = name;
032  }
033
034  @Override
035  public String toString() {
036    return String.format("ASTModuleDeclaration{name='%s'}", name);
037  }
038
039  @Override
040  public Object jjtAccept(GoloParserVisitor visitor, Object data) {
041    return visitor.visit(this, data);
042  }
043}