Class VariableNameDeclaration

  • All Implemented Interfaces:
    TypedNameDeclaration, net.sourceforge.pmd.lang.symboltable.NameDeclaration

    public class VariableNameDeclaration
    extends net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
    implements TypedNameDeclaration
    • Method Detail

      • getScope

        public net.sourceforge.pmd.lang.symboltable.Scope getScope()
        Specified by:
        getScope in interface net.sourceforge.pmd.lang.symboltable.NameDeclaration
        Overrides:
        getScope in class net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
      • isArray

        public boolean isArray()
      • getArrayDepth

        public int getArrayDepth()
      • isVarargs

        public boolean isVarargs()
      • isExceptionBlockParameter

        public boolean isExceptionBlockParameter()
      • isTypeInferred

        public boolean isTypeInferred()
      • isPrimitiveType

        public boolean isPrimitiveType()
      • isReferenceType

        public boolean isReferenceType()
        Note that an array of primitive types (int[]) is a reference type.
      • getAccessNodeParent

        public AccessNode getAccessNodeParent()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object