Package org.springframework.nativex.hint
Class AccessBits
- java.lang.Object
-
- org.springframework.nativex.hint.AccessBits
-
@Deprecated public class AccessBits extends java.lang.ObjectDeprecated.UseTypeAccessinstead.Specifies the reflective access desired for a type and whether it needs to be accessible as a resource in the image (i.e. the.classresource 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 intALLDeprecated.Combine all kinds of access, includingRESOURCE.static intANNOTATIONDeprecated.Predefined set of access suitable for annotations.static intCLASSDeprecated.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 intDECLARED_CONSTRUCTORSDeprecated.Declared constructors access: public, protected, default (package) access, and private ones.static intDECLARED_FIELDSDeprecated.Declared fields access: public, protected, default (package) access, and private, but excluding inherited ones.static intDECLARED_METHODSDeprecated.Declared methods access: public, protected, default (package) access, and private, but excluding inherited ones.static intFULL_REFLECTIONDeprecated.Full reflection access.static intINTERFACEDeprecated.Predefined set of access suitable for interfaces.static intJNIDeprecated.Type must be accessible from JNI code (it will be placed in the jni-config.json and not reflect-config.json)static intLOAD_AND_CONSTRUCTDeprecated.Class and declared constructor access (default).static intLOAD_AND_CONSTRUCT_AND_PUBLIC_METHODSDeprecated.Class, declared constructor and public method access.static intNONEDeprecated.No access.static intPUBLIC_CONSTRUCTORSDeprecated.Public constructors.static intPUBLIC_METHODSDeprecated.Public methods access: public methods of the class including inherited ones.static intQUERY_DECLARED_CONSTRUCTORSDeprecated.Declared constructor's metadata query: public, protected, default (package) access, and private ones.static intQUERY_DECLARED_METHODSDeprecated.Declared method's metadata query: public, protected, default (package) access, and private, but excluding inherited ones.static intQUERY_PUBLIC_CONSTRUCTORSDeprecated.Queried public constructors.static intQUERY_PUBLIC_METHODSDeprecated.Public method's metadata query access: public methods of the class including inherited ones.static intRESOURCEDeprecated.Resource access required when ASM is used at runtime to access to*.classresources.
-
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 intcompareAccess(int currentAccess, int newAccess)Deprecated.Compare a current access level with a proposed access level and return what the new proposed access is adding.booleanequals(java.lang.Object that)Deprecated.static AccessBitsforBits(int... bits)Deprecated.static AccessBitsforValue(int value)Deprecated.static AccessBitsfromTypeAccess(TypeAccess... accesses)Deprecated.static TypeAccess[]getAccess(int value)Deprecated.intgetValue()Deprecated.booleanhasAccess(AccessBits accessBitsToCheck)Deprecated.inthashCode()Deprecated.booleanisResourceAccessRequired()Deprecated.static booleanisResourceAccessRequired(java.lang.Integer typeKind)Deprecated.static booleanisSet(int value, int mask)Deprecated.java.lang.StringtoString()Deprecated.static java.lang.StringtoString(java.lang.Integer value)Deprecated.AccessBitswith(AccessBits accessRequired)Deprecated.
-
-
-
Field Detail
-
RESOURCE
public static final int RESOURCE
Deprecated.Resource access required when ASM is used at runtime to access to*.classresources.- 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin 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.
-
-