Class MethodScope

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

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

      Constructors 
      Constructor Description
      MethodScope​(net.sourceforge.pmd.lang.ast.Node node)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDeclaration​(net.sourceforge.pmd.lang.symboltable.NameDeclaration declaration)  
      java.util.Set<net.sourceforge.pmd.lang.symboltable.NameDeclaration> addNameOccurrence​(net.sourceforge.pmd.lang.symboltable.NameOccurrence occ)  
      java.util.Set<net.sourceforge.pmd.lang.symboltable.NameDeclaration> findVariableHere​(PLSQLNameOccurrence occurrence)  
      MethodScope getEnclosingMethodScope()  
      java.lang.String getName()  
      java.util.Map<VariableNameDeclaration,​java.util.List<net.sourceforge.pmd.lang.symboltable.NameOccurrence>> getVariableDeclarations()  
      java.lang.String toString()  
      • Methods inherited from class net.sourceforge.pmd.lang.symboltable.AbstractScope

        contains, getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MethodScope

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

      • getEnclosingMethodScope

        public MethodScope getEnclosingMethodScope()
      • getVariableDeclarations

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

        public java.util.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 java.util.Set<net.sourceforge.pmd.lang.symboltable.NameDeclaration> findVariableHere​(PLSQLNameOccurrence occurrence)
      • getName

        public java.lang.String getName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object