Search in sources :

Example 16 with PLSQLNode

use of net.sourceforge.pmd.lang.plsql.ast.PLSQLNode in project pmd by pmd.

the class ScopeAndDeclarationFinder method visit.

@Override
public Object visit(ASTTriggerUnit node, Object data) {
    createClassScope(node);
    Scope s = ((PLSQLNode) node.jjtGetParent()).getScope();
    s.addDeclaration(new ClassNameDeclaration(node));
    cont(node);
    return data;
}
Also used : Scope(net.sourceforge.pmd.lang.symboltable.Scope) PLSQLNode(net.sourceforge.pmd.lang.plsql.ast.PLSQLNode)

Example 17 with PLSQLNode

use of net.sourceforge.pmd.lang.plsql.ast.PLSQLNode in project pmd by pmd.

the class ScopeAndDeclarationFinder method visit.

@Override
public Object visit(ASTTypeSpecification node, Object data) {
    createClassScope(node);
    Scope s = ((PLSQLNode) node.jjtGetParent()).getScope();
    s.addDeclaration(new ClassNameDeclaration(node));
    cont(node);
    return data;
}
Also used : Scope(net.sourceforge.pmd.lang.symboltable.Scope) PLSQLNode(net.sourceforge.pmd.lang.plsql.ast.PLSQLNode)

Aggregations

PLSQLNode (net.sourceforge.pmd.lang.plsql.ast.PLSQLNode)17 DataPoint (net.sourceforge.pmd.stat.DataPoint)9 ArrayList (java.util.ArrayList)4 ASTExpression (net.sourceforge.pmd.lang.plsql.ast.ASTExpression)4 Scope (net.sourceforge.pmd.lang.symboltable.Scope)4 HashSet (java.util.HashSet)1 List (java.util.List)1 Map (java.util.Map)1 StringTokenizer (java.util.StringTokenizer)1 AbstractNode (net.sourceforge.pmd.lang.ast.AbstractNode)1 DataFlowNode (net.sourceforge.pmd.lang.dfa.DataFlowNode)1 StartOrEndDataFlowNode (net.sourceforge.pmd.lang.dfa.StartOrEndDataFlowNode)1 ASTArguments (net.sourceforge.pmd.lang.plsql.ast.ASTArguments)1 ASTElseClause (net.sourceforge.pmd.lang.plsql.ast.ASTElseClause)1 ASTGlobal (net.sourceforge.pmd.lang.plsql.ast.ASTGlobal)1 ASTMethodDeclaration (net.sourceforge.pmd.lang.plsql.ast.ASTMethodDeclaration)1 ASTName (net.sourceforge.pmd.lang.plsql.ast.ASTName)1 ASTPrimarySuffix (net.sourceforge.pmd.lang.plsql.ast.ASTPrimarySuffix)1 ASTProgramUnit (net.sourceforge.pmd.lang.plsql.ast.ASTProgramUnit)1 OracleObject (net.sourceforge.pmd.lang.plsql.ast.OracleObject)1