Class MethodScope

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.symboltable.Scope

    public class MethodScope
    extends net.sourceforge.pmd.lang.symboltable.AbstractScope
    • Constructor Detail

      • MethodScope

        public MethodScope​(net.sourceforge.pmd.lang.ast.Node node)
    • Method Detail

      • getEnclosingMethodScope

        public MethodScope getEnclosingMethodScope()
      • getVariableDeclarations

        public Map<VariableNameDeclaration,​List<net.sourceforge.pmd.lang.symboltable.NameOccurrence>> getVariableDeclarations()
      • addNameOccurrence

        public Set<net.sourceforge.pmd.lang.symboltable.NameDeclaration> addNameOccurrence​(net.sourceforge.pmd.lang.symboltable.NameOccurrence occ)
        Specified by:
        addNameOccurrence in interface net.sourceforge.pmd.lang.symboltable.Scope
        Overrides:
        addNameOccurrence in class net.sourceforge.pmd.lang.symboltable.AbstractScope
      • addDeclaration

        public void addDeclaration​(net.sourceforge.pmd.lang.symboltable.NameDeclaration declaration)
        Specified by:
        addDeclaration in interface net.sourceforge.pmd.lang.symboltable.Scope
        Overrides:
        addDeclaration in class net.sourceforge.pmd.lang.symboltable.AbstractScope
      • findVariableHere

        public Set<net.sourceforge.pmd.lang.symboltable.NameDeclaration> findVariableHere​(PLSQLNameOccurrence occurrence)
      • getName

        public String getName()