Package org.springframework.nativex.hint
Class AccessBits
- java.lang.Object
-
- org.springframework.nativex.hint.AccessBits
-
@Deprecated public class AccessBits extends java.lang.Object
Deprecated.UseTypeAccess
instead.Specifies the reflective access desired for a type and whether it needs to be accessible as a resource in the image (i.e. the.class
resource to be readable as a byte array).- Author:
- Andy Clement, Sebastien Deleuze, Christoph Strobl
- See Also:
- Manual configuration of reflection use in native images
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL
Deprecated.Combine all kinds of access, includingRESOURCE
.static int
ANNOTATION
Deprecated.Predefined set of access suitable for annotations.static int
CLASS
Deprecated.Class access, for example whenClass.forName(String)
is invoked with a non constant parameter that can't be recognized automatically by the native image compiler.static int
DECLARED_CONSTRUCTORS
Deprecated.Declared constructors access: public, protected, default (package) access, and private ones.static int
DECLARED_FIELDS
Deprecated.Declared fields access: public, protected, default (package) access, and private, but excluding inherited ones.static int
DECLARED_METHODS
Deprecated.Declared methods access: public, protected, default (package) access, and private, but excluding inherited ones.static int
FULL_REFLECTION
Deprecated.Full reflection access.static int
INTERFACE
Deprecated.Predefined set of access suitable for interfaces.static int
JNI
Deprecated.Type must be accessible from JNI code (it will be placed in the jni-config.json and not reflect-config.json)static int
LOAD_AND_CONSTRUCT
Deprecated.Class and declared constructor access (default).static int
LOAD_AND_CONSTRUCT_AND_PUBLIC_METHODS
Deprecated.Class, declared constructor and public method access.static int
NONE
Deprecated.No access.static int
PUBLIC_CONSTRUCTORS
Deprecated.Public constructors.static int
PUBLIC_METHODS
Deprecated.Public methods access: public methods of the class including inherited ones.static int
QUERY_DECLARED_CONSTRUCTORS
Deprecated.Declared constructor's metadata query: public, protected, default (package) access, and private ones.static int
QUERY_DECLARED_METHODS
Deprecated.Declared method's metadata query: public, protected, default (package) access, and private, but excluding inherited ones.static int
QUERY_PUBLIC_CONSTRUCTORS
Deprecated.Queried public constructors.static int
QUERY_PUBLIC_METHODS
Deprecated.Public method's metadata query access: public methods of the class including inherited ones.static int
RESOURCE
Deprecated.Resource access required when ASM is used at runtime to access to*.class
resources.
-
Constructor Summary
Constructors Constructor Description AccessBits()
Deprecated.AccessBits(int value)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static int
compareAccess(int currentAccess, int newAccess)
Deprecated.Compare a current access level with a proposed access level and return what the new proposed access is adding.boolean
equals(java.lang.Object that)
Deprecated.static AccessBits
forBits(int... bits)
Deprecated.static AccessBits
forValue(int value)
Deprecated.static AccessBits
fromTypeAccess(TypeAccess... accesses)
Deprecated.static TypeAccess[]
getAccess(int value)
Deprecated.int
getValue()
Deprecated.boolean
hasAccess(AccessBits accessBitsToCheck)
Deprecated.int
hashCode()
Deprecated.boolean
isResourceAccessRequired()
Deprecated.static boolean
isResourceAccessRequired(java.lang.Integer typeKind)
Deprecated.static boolean
isSet(int value, int mask)
Deprecated.java.lang.String
toString()
Deprecated.static java.lang.String
toString(java.lang.Integer value)
Deprecated.AccessBits
with(AccessBits accessRequired)
Deprecated.
-
-
-
Field Detail
-
RESOURCE
public static final int RESOURCE
Deprecated.Resource access required when ASM is used at runtime to access to*.class
resources.- See Also:
- Constant Field Values
-
CLASS
public static final int CLASS
Deprecated.Class access, for example whenClass.forName(String)
is invoked with a non constant parameter that can't be recognized automatically by the native image compiler.- See Also:
- Constant Field Values
-
DECLARED_CONSTRUCTORS
public static final int DECLARED_CONSTRUCTORS
Deprecated.Declared constructors access: public, protected, default (package) access, and private ones.- See Also:
Class.getDeclaredConstructors()
, Constant Field Values
-
DECLARED_METHODS
public static final int DECLARED_METHODS
Deprecated.Declared methods access: public, protected, default (package) access, and private, but excluding inherited ones. Consider whether you need this or @linkPUBLIC_METHODS
.- See Also:
Class.getDeclaredMethods()
, Constant Field Values
-
DECLARED_FIELDS
public static final int DECLARED_FIELDS
Deprecated.Declared fields access: public, protected, default (package) access, and private, but excluding inherited ones.- See Also:
Class.getDeclaredFields()
, Constant Field Values
-
PUBLIC_METHODS
public static final int PUBLIC_METHODS
Deprecated.Public methods access: public methods of the class including inherited ones. Consider whether you need this or @linkDECLARED_METHODS
.- See Also:
Class.getMethods()
, Constant Field Values
-
PUBLIC_CONSTRUCTORS
public static final int PUBLIC_CONSTRUCTORS
Deprecated.Public constructors.- See Also:
Class.getConstructors()
, Constant Field Values
-
JNI
public static final int JNI
Deprecated.Type must be accessible from JNI code (it will be placed in the jni-config.json and not reflect-config.json)- See Also:
- Constant Field Values
-
QUERY_DECLARED_CONSTRUCTORS
public static final int QUERY_DECLARED_CONSTRUCTORS
Deprecated.Declared constructor's metadata query: public, protected, default (package) access, and private ones.- See Also:
Class.getDeclaredConstructors()
, Constant Field Values
-
QUERY_DECLARED_METHODS
public static final int QUERY_DECLARED_METHODS
Deprecated.Declared method's metadata query: public, protected, default (package) access, and private, but excluding inherited ones. Consider whether you need this or @linkQUERY_PUBLIC_METHODS
.- See Also:
Class.getDeclaredMethods()
, Constant Field Values
-
QUERY_PUBLIC_METHODS
public static final int QUERY_PUBLIC_METHODS
Deprecated.Public method's metadata query access: public methods of the class including inherited ones. Consider whether you need this or @linkQUERY_DECLARED_METHODS
.- See Also:
Class.getMethods()
, Constant Field Values
-
QUERY_PUBLIC_CONSTRUCTORS
public static final int QUERY_PUBLIC_CONSTRUCTORS
Deprecated.Queried public constructors.- See Also:
Class.getConstructors()
, Constant Field Values
-
NONE
public static final int NONE
Deprecated.No access.- See Also:
- Constant Field Values
-
FULL_REFLECTION
public static final int FULL_REFLECTION
Deprecated.Full reflection access.- See Also:
- Constant Field Values
-
ALL
public static final int ALL
Deprecated.Combine all kinds of access, includingRESOURCE
.- See Also:
FULL_REFLECTION
, Constant Field Values
-
ANNOTATION
public static final int ANNOTATION
Deprecated.Predefined set of access suitable for annotations.- See Also:
- Constant Field Values
-
INTERFACE
public static final int INTERFACE
Deprecated.Predefined set of access suitable for interfaces.- See Also:
- Constant Field Values
-
LOAD_AND_CONSTRUCT
public static final int LOAD_AND_CONSTRUCT
Deprecated.Class and declared constructor access (default).- See Also:
- Constant Field Values
-
LOAD_AND_CONSTRUCT_AND_PUBLIC_METHODS
public static final int LOAD_AND_CONSTRUCT_AND_PUBLIC_METHODS
Deprecated.Class, declared constructor and public method access.- See Also:
- Constant Field Values
-
-
Method Detail
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
getAccess
public static TypeAccess[] getAccess(int value)
Deprecated.
-
forValue
public static final AccessBits forValue(int value)
Deprecated.
-
forBits
public static final AccessBits forBits(int... bits)
Deprecated.
-
isResourceAccessRequired
public boolean isResourceAccessRequired()
Deprecated.
-
hasAccess
public boolean hasAccess(AccessBits accessBitsToCheck)
Deprecated.
-
with
public AccessBits with(AccessBits accessRequired)
Deprecated.
-
toString
public static java.lang.String toString(java.lang.Integer value)
Deprecated.
-
isResourceAccessRequired
public static boolean isResourceAccessRequired(java.lang.Integer typeKind)
Deprecated.
-
getValue
public int getValue()
Deprecated.
-
compareAccess
public static int compareAccess(int currentAccess, int newAccess)
Deprecated.Compare a current access level with a proposed access level and return what the new proposed access is adding.- Parameters:
currentAccess
- the current access levelnewAccess
- the new access level- Returns:
- what the new proposed access is adding
-
fromTypeAccess
public static AccessBits fromTypeAccess(TypeAccess... accesses)
Deprecated.
-
isSet
public static boolean isSet(int value, int mask)
Deprecated.
-
-