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 ASTLiteral extends GoloASTNode {
013
014  private Object literalValue;
015
016  public ASTLiteral(int i) {
017    super(i);
018  }
019
020  public ASTLiteral(GoloParser p, int i) {
021    super(p, i);
022  }
023
024  public Object getLiteralValue() {
025    return literalValue;
026  }
027
028  public void setLiteralValue(Object literalValue) {
029    this.literalValue = literalValue;
030  }
031
032  @Override
033  public String toString() {
034    return String.format("ASTLiteral{literalValue=%s}", literalValue);
035  }
036
037  @Override
038  public Object jjtAccept(GoloParserVisitor visitor, Object data) {
039    return visitor.visit(this, data);
040  }
041}