Class Modifier


  • public class Modifier
    extends Modifier
    • Field Detail

      • OVERRIDE

        public static final int OVERRIDE
        The int value representing the override modifier.
        See Also:
        Constant Field Values
      • HIDE

        public static final int HIDE
        The int value representing the hide modifier.
        See Also:
        Constant Field Values
      • CLASS_MEMBER

        public static final int CLASS_MEMBER
        The code indicating something is a class member
        See Also:
        Constant Field Values
      • INTERNAL

        public static final int INTERNAL
        The int value representing the internal modifier.
        See Also:
        Constant Field Values
      • REIFIED

        public static final int REIFIED
        The int value representing the reified modifier.
        See Also:
        Constant Field Values
      • ENUM

        public static final int ENUM
        The int value representing the enum modifier. This value should match the Java version of the enum modifier (which isn't publically exposed). Note that the enum modifier may mean different things in different contexts.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Modifier

        public Modifier()
    • Method Detail

      • isHide

        public static boolean isHide​(int mod)
        Return true if the integer argument includes the hide modifer, false otherwise.
        Parameters:
        mod - a set of modifers
        Returns:
        true if mod includes the hide modifier; false otherwise.
      • isOverride

        public static boolean isOverride​(int mod)
        Return true if the integer argument includes the override modifer, false otherwise.
        Parameters:
        mod - a set of modifers
        Returns:
        true if mod includes the override modifier; false otherwise.
      • isClassMember

        public static boolean isClassMember​(int mod)
        Return true if the integer argument includes the class member modifer, false otherwise.
        Parameters:
        mod - a set of modifers
        Returns:
        true if mod includes the class member modifier; false otherwise.
      • isInternal

        public static boolean isInternal​(int mod)
        Return true if the integer argument includes the internal modifer, false otherwise.
        Parameters:
        mod - a set of modifers
        Returns:
        true if mod includes the internal modifier; false otherwise.
      • isEnum

        public static boolean isEnum​(int mod)
        Return true if the integer argument includes the enum modifer, false otherwise.
        Parameters:
        mod - a set of modifers
        Returns:
        true if mod includes the enum modifier; false otherwise.
      • isDeprecated

        public static boolean isDeprecated​(int mod)
      • isAnnotation

        public static boolean isAnnotation​(int mod)
      • isReified

        public static boolean isReified​(int mod)
      • setPublic

        public static int setPublic​(int mod,
                                    boolean bValue)
      • setPrivate

        public static int setPrivate​(int mod,
                                     boolean bValue)
      • setProtected

        public static int setProtected​(int mod,
                                       boolean bValue)
      • setStatic

        public static int setStatic​(int mod,
                                    boolean bValue)
      • setAbstract

        public static int setAbstract​(int mod,
                                      boolean bValue)
      • setFinal

        public static int setFinal​(int mod,
                                   boolean bValue)
      • setOverride

        public static int setOverride​(int mod,
                                      boolean bValue)
      • setHide

        public static int setHide​(int mod,
                                  boolean bValue)
      • setClassMember

        public static int setClassMember​(int mod,
                                         boolean bValue)
      • setTransient

        public static int setTransient​(int mod,
                                       boolean bValue)
      • setInternal

        public static int setInternal​(int mod,
                                      boolean bValue)
      • setEnum

        public static int setEnum​(int mod,
                                  boolean bValue)
      • setDeprecated

        public static int setDeprecated​(int mod,
                                        boolean bValue)
      • setReified

        public static int setReified​(int mod,
                                     boolean bValue)
      • toModifierString

        public static String toModifierString​(int mod)