Class MemberImpl

    • Method Detail

      • getContainingClass

        public JClass getContainingClass()
        Description copied from interface: JMember

        Returns a representation of the class which contains this member. Note that if this member is an inner class, this method returns the class in which this class is declared (i.e. 'outer'). If this member is a top-level class, this method will always return null.

        Specified by:
        getContainingClass in interface JMember
      • getModifiers

        public int getModifiers()
        Description copied from interface: JMember

        Returns the modifiers specifier. This is a bit field exactly like those returned by java.lang.Class.getModifiers() and can be manipulated using java.lang.reflect.Modifier in the same way.

        Specified by:
        getModifiers in interface JMember
      • isPackagePrivate

        public boolean isPackagePrivate()
        Description copied from interface: JMember
        Return true if this member is package private (i.e. the default access protection level).
        Specified by:
        isPackagePrivate in interface JMember
      • isPrivate

        public boolean isPrivate()
        Description copied from interface: JMember
        Return true if this member is private. Equivalent to calling Modifier.isPrivate(member.getModifiers()).
        Specified by:
        isPrivate in interface JMember
      • isProtected

        public boolean isProtected()
        Description copied from interface: JMember
        Return true if this member is protected. Equivalent to calling Modifier.isProtected(member.getModifiers()).
        Specified by:
        isProtected in interface JMember
      • isPublic

        public boolean isPublic()
        Description copied from interface: JMember
        Return true if this member is public. Equivalent to calling Modifier.isProtected(member.getModifiers()).
        Specified by:
        isPublic in interface JMember
      • setModifiers

        public void setModifiers​(int modifiers)
        Specified by:
        setModifiers in interface MMember