Top Description Fields Constructors Methods
net.bytebuddy.utility

public Class OpenedClassReader

extends Object
Class Inheritance
Imports
net.bytebuddy.ClassFileVersion, net.bytebuddy.build.AccessControllerPlugin, net.bytebuddy.utility.privilege.GetSystemPropertyAction, net.bytebuddy.jar.asm.ClassReader, .Opcodes, java.security.PrivilegedAction

A ClassReader that does not apply a class file version check if the net.bytebuddy.experimental property is set.

Field Summary

Modifier and TypeField and Description
public static final int
ASM_API

Indicates the ASM API version that is used throughout Byte Buddy.

public static final boolean
EXPERIMENTAL

true if Byte Buddy is executed in experimental mode.

public static final String
EXPERIMENTAL_PROPERTY

Indicates that Byte Buddy should not validate the maximum supported class file version.

Constructor Summary

AccessConstructor and Description
private
OpenedClassReader()

Not intended for construction.

Method Summary

Modifier and TypeMethod and Description
private static <
The type of the action's resolved value.
T
>
T

Returns:

The action's resolved value.
doPrivileged
(PrivilegedAction<T>
The action to execute from a privileged context.
action
)

A proxy for java.security.AccessController#doPrivileged that is activated if available.

public static ClassReader

Returns:

An appropriate class reader.
of
(byte[]
The binary representation of a class file to read.
binaryRepresentation
)

Creates a class reader for the given binary representation of a class file.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ASM_APIback to summary
public static final int ASM_API

Indicates the ASM API version that is used throughout Byte Buddy.

EXPERIMENTALback to summary
public static final boolean EXPERIMENTAL

true if Byte Buddy is executed in experimental mode.

EXPERIMENTAL_PROPERTYback to summary
public static final String EXPERIMENTAL_PROPERTY

Indicates that Byte Buddy should not validate the maximum supported class file version.

Constructor Detail

OpenedClassReaderback to summary
private OpenedClassReader()

Not intended for construction.

Method Detail

doPrivilegedback to summary
private static <T> T doPrivileged(PrivilegedAction<T> action)

A proxy for java.security.AccessController#doPrivileged that is activated if available.

Parameters
<T>
The type of the action's resolved value.
action:PrivilegedAction<T>

The action to execute from a privileged context.

Returns:T

The action's resolved value.

Annotations
@Enhance
ofback to summary
public static ClassReader of(byte[] binaryRepresentation)

Creates a class reader for the given binary representation of a class file.

Parameters
binaryRepresentation:byte[]

The binary representation of a class file to read.

Returns:ClassReader

An appropriate class reader.