/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * This file is part of SableCC.                             *
 * See the file "LICENSE" for copyright information and the  *
 * terms and conditions for copying, distribution and        *
 * modification of SableCC.                                  *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

Macro:VariableTextToken
/* This file was generated by SableCC (http://www.sablecc.org/). */

package $0$node;

import $0$analysis.Analysis;

public final class $1$ extends Token
{
    public $1$(String text)
    {
        super(text);
    }

    public $1$(String text, int line, int pos)
    {
        super(text, line, pos);
    }

    @Override
    public $1$ clone()
    {
        $1$ cloned = new $1$(this.getText(), this.getLine(), this.getPos());
        cloned.initSourcePositionsFrom(this);
        return cloned;
    }

    @Override
    public void apply(Switch sw)
    {
        ((Analysis) sw).case$1$(this);
    }
}

$

Macro:FixedTextToken
/* This file was generated by SableCC (http://www.sablecc.org/). */

package $0$node;

import $0$analysis.Analysis;

public final class $1$ extends Token
{
    public $1$()
    {
        super("$2$");
    }

    public $1$(int line, int pos)
    {
        super("$2$", line, pos);
    }

    @Override
    public $1$ clone()
    {
        $1$ cloned = new $1$(this.getLine(), this.getPos());
        cloned.initSourcePositionsFrom(this);
        return cloned;
    }

    @Override
    public void apply(Switch sw)
    {
        ((Analysis) sw).case$1$(this);
    }

    @Override
    public void setText(String text)
    {
        throw new RuntimeException("Cannot change $1$ text.");
    }
}

$
