Class JMemberDecl

  • Direct Known Subclasses:
    JClassDecl, JClassStaticDecl, JFieldDecl, JMethodDecl

    public class JMemberDecl
    extends JNode
    A JNode for type members: Initializer, TypeDeclaration, EnumDeclaration, ConstructorDeclaration, FieldDeclaration, MedthodDeclaration, AnnotationTypeDeclaration. For JavaParseRule: ClassOrInterfaceBodyDeclaration.
    • Constructor Detail

      • JMemberDecl

        public JMemberDecl()
    • Method Detail

      • getNameImpl

        protected java.lang.String getNameImpl()
        Returns the member name.
        Overrides:
        getNameImpl in class JNode
      • getModifiers

        public int getModifiers()
        Returns the modifiers.
      • setModifiers

        public void setModifiers​(int aValue)
        Sets the modifiers.
      • getIdentifier

        public JIdentifier getIdentifier()
        Returns the identifier.
      • setIdentifier

        public void setIdentifier​(JIdentifier anId)
        Sets the identifier.
      • getDeclaringClass

        public java.lang.Class getDeclaringClass()
        Returns the declaring class.
      • getTypeParameters

        public java.util.List<JTypeParam> getTypeParameters()
        Returns the type parameters for this member.
      • getTypeParameter

        public JTypeParam getTypeParameter​(java.lang.String aName)
        Returns the type parameters for this member.
      • getSuperMember

        public java.lang.reflect.Member getSuperMember()
        Returns the member that this member overrides or implements, if available.
      • getSuperMemberImpl

        protected java.lang.reflect.Member getSuperMemberImpl()
        Returns the member that this member overrides or implements, if available.