Package w.unsafe
Interface Unsafe
public interface Unsafe
- Author:
- whilein
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NotNull ObjectallocateInstance(@NotNull Class<?> type) @NotNull ObjectallocateUninitializedArray(@NotNull Class<?> componentType, int length) @NotNull Class<?>defineClass(@NotNull String name, byte @NotNull [] bytecode, int offset, int length, @Nullable ClassLoader classLoader, @Nullable ProtectionDomain protectionDomain) static @NotNull Unsafebooleanstatic booleanvoidvoidputStaticField(@NotNull Field field, @Nullable Object value) trustedLookupIn(@NotNull Class<?> type)
-
Method Details
-
getUnsafe
-
isUnsafeAvailable
static boolean isUnsafeAvailable() -
isAvailable
boolean isAvailable() -
putField
-
putStaticField
-
trustedLookupIn
-
trustedLookup
-
defineClass
@NotNull @NotNull Class<?> defineClass(@NotNull @NotNull String name, byte @NotNull [] bytecode, int offset, int length, @Nullable @Nullable ClassLoader classLoader, @Nullable @Nullable ProtectionDomain protectionDomain) -
allocateUninitializedArray
-
allocateInstance
-