Enum TypeAccess

    • Enum Constant Detail

      • JNI

        public static final TypeAccess JNI
        Configure related JNI reflection entry, to be combined with other `Flag` entries.
      • RESOURCE

        public static final TypeAccess RESOURCE
        Configure access to the *.class file resource.
      • DECLARED_FIELDS

        public static final TypeAccess DECLARED_FIELDS
        Declared fields access: public, protected, default (package) access, and private, but excluding inherited ones.
        See Also:
        Class.getDeclaredFields()
      • DECLARED_CONSTRUCTORS

        public static final TypeAccess DECLARED_CONSTRUCTORS
        Declared constructors access: public, protected, default (package) access, and private ones.
        See Also:
        Class.getDeclaredConstructors()
      • DECLARED_METHODS

        public static final TypeAccess DECLARED_METHODS
        Declared methods access: public, protected, default (package) access, and private, but excluding inherited ones. Consider whether you need this or @link PUBLIC_METHODS.
        See Also:
        Class.getDeclaredMethods()
      • PUBLIC_METHODS

        public static final TypeAccess PUBLIC_METHODS
        Public methods access: public methods of the class including inherited ones. Consider whether you need this or @link DECLARED_METHODS.
        See Also:
        Class.getMethods()
      • DECLARED_CLASSES

        public static final TypeAccess DECLARED_CLASSES
        Do not automatically register the inner classes for reflective access but make them available via Class.getDeclaredClasses().
      • PUBLIC_CLASSES

        public static final TypeAccess PUBLIC_CLASSES
        Do not automatically register the inner classes for reflective access but make them available via Class.getClasses().
      • QUERY_DECLARED_METHODS

        public static final TypeAccess QUERY_DECLARED_METHODS
        Declared method's metadata query: public, protected, default (package) access, and private, but excluding inherited ones. Consider whether you need this or @link QUERY_PUBLIC_METHODS.
        See Also:
        Class.getDeclaredMethods()
      • QUERY_PUBLIC_METHODS

        public static final TypeAccess QUERY_PUBLIC_METHODS
        Public method's metadata query access: public methods of the class including inherited ones. Consider whether you need this or @link QUERY_DECLARED_METHODS.
        See Also:
        Class.getMethods()
      • QUERY_DECLARED_CONSTRUCTORS

        public static final TypeAccess QUERY_DECLARED_CONSTRUCTORS
        Declared constructor's metadata query: public, protected, default (package) access, and private ones.
        See Also:
        Class.getDeclaredConstructors()
    • Method Detail

      • values

        public static TypeAccess[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TypeAccess c : TypeAccess.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TypeAccess valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()