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

net.sourceforge.pmd.lang.plsql.ast.InternalApiBridge Maven / Gradle / Ivy

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


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

import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.TokenManager;
import net.sourceforge.pmd.lang.ast.impl.javacc.CharStream;
import net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken;
import net.sourceforge.pmd.lang.document.TextDocument;
import net.sourceforge.pmd.lang.symboltable.NameDeclaration;
import net.sourceforge.pmd.lang.symboltable.Scope;

/**
 * Internal API.
 *
 * 

Acts as a bridge between outer parts of PMD and the restricted access * internal API of this package. * *

None of this is published API, and compatibility can be broken anytime! * Use this only at your own risk. * * @apiNote Internal API */ @InternalApi public final class InternalApiBridge { private InternalApiBridge() {} public static void setScope(PLSQLNode node, Scope decl) { ((AbstractPLSQLNode) node).setScope(decl); } public static void setNameDeclaration(ASTName node, NameDeclaration decl) { node.setNameDeclaration(decl); } public static void setNameDeclaration(ASTVariableOrConstantDeclaratorId node, NameDeclaration decl) { node.setNameDeclaration(decl); } public static TokenManager newTokenManager(TextDocument doc) { return PLSQLTokenKinds.newTokenManager(CharStream.create(doc, PLSQLParser.TOKEN_BEHAVIOR)); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy