| Modifier and Type | Field and Description |
|---|---|
| public static final long | INVALID_FIELD_OFFSET
This constant differs from all results that will ever be returned from
|
| private final StackWalker | |
| private final Unsafe |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: a new instantiable class, in the package and classloader of the anchor class.the class from which the package and classloader of the new class are to be taken. anchorClass, String the name of the class to define className, byte[] the bytes used to define the class classBytes)Defines a new class from bytecode. |
| public void | ensureClassInitialized(Class<?>
the class to ensure is initialized cl)Ensure that the class has been initialized. |
| public final boolean | |
| public final byte | |
| public final char | |
| public final double | |
| public final float | |
| public final int | |
| public ClassLoader | |
| private Optional | |
| public final long | |
| public final <T> T | |
| public final short | |
| public abstract boolean | hasStaticInitializerForSerialization(Class<?> cl)
Returns true if the given class defines a static initializer method, false otherwise. |
| private boolean | |
| private boolean | |
| public abstract <T> Constructor | newConstructorForExternalization(Class<T>
the class cl)Return a constructor that can be used to create an instance of the class for externalization. |
| public abstract <T> Constructor | newConstructorForSerialization(Class<T>
the class for which a constructor should be returned. aClass, Constructor<?> the default constructor on which to model the new constructor. cons)Return a no-arg constructor for the specified class which invokes the specified constructor. |
| public abstract <T> Constructor | newConstructorForSerialization(Class<T>
the class for which a constructor should be returned. aClass)Return a no-arg constructor for the specified class, based on the default constructor for its nearest non-serializable base class. |
| public abstract OptionalDataException | Returns: a new OptionalDataException instanceReturn a new OptionalDataException instance. |
| public final long | objectFieldOffset(Field f)
Returns the offset of a non-static field, which can be passed into the set... |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public abstract MethodHandle | readObjectForSerialization(Class<?>
the class containing the method cl)Returns a method handle to allow invocation of the specified class's readObject method. |
| public abstract MethodHandle | readResolveForSerialization(Class<?>
the class containing the method cl)Returns a method handle to allow invocation of the specified class's readResolve method. |
| public final long | |
| public final void | |
| public Field | Returns: the original field, rendered accessible, or null.the field to make accessible field, Class<?> the class which wants to access it. callingClass)Returns the specified field after calling setAccessible, if it is accessible from the specified class. |
| public Method | Returns: the original method, rendered accessible, or null.the method to make accessible method, Class<?> the class which wants to access it. callingClass)Returns the specified method after calling setAccessible, if it is accessible from the specified class. |
| public abstract MethodHandle | writeObjectForSerialization(Class<?>
the class containing the method cl)Returns a method handle to allow invocation of the specified class's writeObject method. |
| public abstract MethodHandle | writeReplaceForSerialization(Class<?>
the class containing the method cl)Returns a method handle to allow invocation of the specified class's writeReplace method. |
| INVALID_FIELD_OFFSET | back to summary |
|---|---|
| public static final long INVALID_FIELD_OFFSET This constant differs from all results that will ever be returned from
| |
| stackWalker | back to summary |
|---|---|
| private final StackWalker stackWalker | |
| unsafe | back to summary |
|---|---|
| private final Unsafe unsafe | |
| BridgeBase | back to summary |
|---|---|
| public BridgeBase() | |
| defineClass | back to summary |
|---|---|
| public Class Defines a new class from bytecode. The class will be defined in the classloader and package associated with a specified 'anchor class'.
| |
| ensureClassInitialized | back to summary |
|---|---|
| public void ensureClassInitialized(Class<?> cl) Ensure that the class has been initialized.
| |
| getBoolean | back to summary |
|---|---|
public final boolean getBoolean(Object o, long offset)
| |
| getByte | back to summary |
|---|---|
public final byte getByte(Object o, long offset)
| |
| getChar | back to summary |
|---|---|
public final char getChar(Object o, long offset)
| |
| getDouble | back to summary |
|---|---|
public final double getDouble(Object o, long offset)
| |
| getFloat | back to summary |
|---|---|
public final float getFloat(Object o, long offset)
| |
| getInt | back to summary |
|---|---|
| public final int getInt(Object o, long offset) Fetches a field element within the given
object
| |
| getLatestUserDefinedLoader | back to summary |
|---|---|
| public ClassLoader getLatestUserDefinedLoader() Obtain the latest user defined ClassLoader from the call stack. This is required by the RMI-IIOP specification. | |
| getLatestUserDefinedLoaderFrame | back to summary |
|---|---|
| private Optional | |
| getLong | back to summary |
|---|---|
public final long getLong(Object o, long offset)
| |
| getObject | back to summary |
|---|---|
public final <T> T getObject(Object o, long offset)
| |
| getShort | back to summary |
|---|---|
public final short getShort(Object o, long offset)
| |
| hasStaticInitializerForSerialization | back to summary |
|---|---|
| public abstract boolean hasStaticInitializerForSerialization(Class<?> cl) Returns true if the given class defines a static initializer method, false otherwise. | |
| isClassOpenToModule | back to summary |
|---|---|
| private boolean isClassOpenToModule(Class<?> candidateClass, Module callingModule) | |
| isUserLoader | back to summary |
|---|---|
| private boolean isUserLoader(StackWalker. | |
| newConstructorForExternalization | back to summary |
|---|---|
| public abstract <T> Constructor Return a constructor that can be used to create an instance of the class for externalization.
| |
| newConstructorForSerialization | back to summary |
|---|---|
| public abstract <T> Constructor Return a no-arg constructor for the specified class which invokes the specified constructor.
| |
| newConstructorForSerialization | back to summary |
|---|---|
| public abstract <T> Constructor Return a no-arg constructor for the specified class, based on the default constructor for its nearest non-serializable base class.
| |
| newOptionalDataExceptionForSerialization | back to summary |
|---|---|
| public abstract OptionalDataException newOptionalDataExceptionForSerialization(boolean bool) Return a new OptionalDataException instance.
| |
| objectFieldOffset | back to summary |
|---|---|
| public final long objectFieldOffset(Field f) Returns the offset of a non-static field, which can be passed into the set... or get... methods.
| |
| putBoolean | back to summary |
|---|---|
public final void putBoolean(Object o, long offset, boolean x)
| |
| putByte | back to summary |
|---|---|
public final void putByte(Object o, long offset, byte x)
| |
| putChar | back to summary |
|---|---|
public final void putChar(Object o, long offset, char x)
| |
| putDouble | back to summary |
|---|---|
public final void putDouble(Object o, long offset, double x)
| |
| putFloat | back to summary |
|---|---|
public final void putFloat(Object o, long offset, float x)
| |
| putInt | back to summary |
|---|---|
| public final void putInt(Object o, long offset, int x) Stores a value into a given Java field.
The first two parameters are interpreted exactly as with
The field must be of the same type as the method
parameter
| |
| putLong | back to summary |
|---|---|
public final void putLong(Object o, long offset, long x)
| |
| putObject | back to summary |
|---|---|
public final void putObject(Object o, long offset, Object x)
| |
| putShort | back to summary |
|---|---|
public final void putShort(Object o, long offset, short x)
| |
| readObjectForSerialization | back to summary |
|---|---|
| public abstract MethodHandle readObjectForSerialization(Class<?> cl) throws NoSuchMethodException, IllegalAccessException Returns a method handle to allow invocation of the specified class's readObject method.
| |
| readResolveForSerialization | back to summary |
|---|---|
| public abstract MethodHandle readResolveForSerialization(Class<?> cl) Returns a method handle to allow invocation of the specified class's readResolve method.
| |
| staticFieldOffset | back to summary |
|---|---|
| public final long staticFieldOffset(Field f) | |
| throwException | back to summary |
|---|---|
| public final void throwException(Throwable ee) Throw the exception. The exception may be an undeclared checked exception. | |
| toAccessibleField | back to summary |
|---|---|
| public Field toAccessibleField(Field field, Class<?> callingClass) Returns the specified field after calling setAccessible, if it is accessible from the specified class. | |
| toAccessibleMethod | back to summary |
|---|---|
| public Method toAccessibleMethod(Method method, Class<?> callingClass) Returns the specified method after calling setAccessible, if it is accessible from the specified class. | |
| writeObjectForSerialization | back to summary |
|---|---|
| public abstract MethodHandle writeObjectForSerialization(Class<?> cl) throws NoSuchMethodException, IllegalAccessException Returns a method handle to allow invocation of the specified class's writeObject method.
| |
| writeReplaceForSerialization | back to summary |
|---|---|
| public abstract MethodHandle writeReplaceForSerialization(Class<?> cl) Returns a method handle to allow invocation of the specified class's writeReplace method.
| |