All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.pmd.lang.velocity.ast.ASTTemplate Maven / Gradle / Ivy

There is a newer version: 7.6.0
Show newest version
/*
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 */

package net.sourceforge.pmd.lang.velocity.ast;

import net.sourceforge.pmd.lang.ast.AstInfo;
import net.sourceforge.pmd.lang.ast.Parser.ParserTask;
import net.sourceforge.pmd.lang.ast.RootNode;

public final class ASTTemplate extends AbstractVtlNode implements RootNode {

    private AstInfo astInfo;

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

    @Override
    public AstInfo getAstInfo() {
        return astInfo;
    }

    ASTTemplate makeTaskInfo(ParserTask task) {
        this.astInfo = new AstInfo<>(task, this);
        return this;
    }


    @Override
    protected  R acceptVtlVisitor(VtlVisitor visitor, P data) {
        return visitor.visit(this, data);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy