Interface Java.EnumDeclaration

    • Method Detail

      • getName

        java.lang.String getName()
        Specified by:
        getName in interface Java.NamedTypeDeclaration
        Returns:
        The declared (not the fully qualified) name of the class or interface
      • getImplementedTypes

        Java.Type[] getImplementedTypes()
        Returns:
        The interfaces that this enum implements
      • getConstants

        java.util.List<Java.EnumConstant> getConstants()
        Returns:
        The constants that this enum declares
      • addConstant

        void addConstant​(Java.EnumConstant ec)
        Adds another constant to this enum declaration.