Package | Description |
---|---|
net.bytebuddy |
Byte Buddy is a library for creating Java classes at runtime of a Java program.
|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
net.bytebuddy.dynamic.scaffold.subclass |
All classes and types in this package are related to creating a
DynamicType by
creating a subclass of a given type. |
net.bytebuddy.instrumentation.method |
This package contains types and implementations for describing a Java byte code method which can be any byte code
container, i.e.
|
net.bytebuddy.instrumentation.method.bytecode.bind.annotation |
This package contains annotations, types and classes that are responsible for binding a method to calling another
method by interpreting annotations that indicate how a method should be bound to another method.
|
net.bytebuddy.instrumentation.type.auxiliary |
Auxiliary types describe helper types that aid as a supplementary to a given
InstrumentedType . |
Modifier and Type | Field and Description |
---|---|
protected ClassFileVersion |
ByteBuddy.classFileVersion
The class file version of the current configuration.
|
static ClassFileVersion |
ClassFileVersion.JAVA_V1
The class file version of Java 1.
|
static ClassFileVersion |
ClassFileVersion.JAVA_V2
The class file version of Java 2.
|
static ClassFileVersion |
ClassFileVersion.JAVA_V3
The class file version of Java 3.
|
static ClassFileVersion |
ClassFileVersion.JAVA_V4
The class file version of Java 4.
|
static ClassFileVersion |
ClassFileVersion.JAVA_V5
The class file version of Java 5.
|
static ClassFileVersion |
ClassFileVersion.JAVA_V6
The class file version of Java 6.
|
static ClassFileVersion |
ClassFileVersion.JAVA_V7
The class file version of Java 7.
|
static ClassFileVersion |
ClassFileVersion.JAVA_V8
The class file version of Java 8.
|
Modifier and Type | Method and Description |
---|---|
static ClassFileVersion |
ClassFileVersion.forCurrentJavaVersion()
Finds the highest class file version that is compatible to the current JVM version by parsing the java.version
property which is provided by
System.getProperty(String) . |
static ClassFileVersion |
ClassFileVersion.forKnownJavaVersion(int javaVersion)
Creates a class file version for a given major release of Java.
|
ClassFileVersion |
NamingStrategy.UnnamedType.getClassFileVersion()
Returns the class file version of this unnamed type.
|
ClassFileVersion |
ByteBuddy.getClassFileVersion()
Returns the class file version that is defined for the current configuration.
|
ClassFileVersion |
ByteBuddy.MethodAnnotationTarget.getClassFileVersion() |
Modifier and Type | Method and Description |
---|---|
int |
ClassFileVersion.compareTo(ClassFileVersion other) |
ByteBuddy |
ByteBuddy.withClassFileVersion(ClassFileVersion classFileVersion)
Defines a new class file version for this configuration.
|
ByteBuddy |
ByteBuddy.MethodAnnotationTarget.withClassFileVersion(ClassFileVersion classFileVersion) |
Constructor and Description |
---|
ByteBuddy(ClassFileVersion classFileVersion)
Defines a new
ByteBuddy default configuration for the given class file version. |
ByteBuddy(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
List<TypeDescription> interfaceTypes,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
ByteBuddy.Definable<TypeAttributeAppender> typeAttributeAppender,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory)
Defines a new
ByteBuddy configuration. |
MethodAnnotationTarget(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
List<TypeDescription> interfaceTypes,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
ByteBuddy.Definable<TypeAttributeAppender> typeAttributeAppender,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
MethodMatcher methodMatcher,
Instrumentation instrumentation,
MethodAttributeAppender.Factory attributeAppenderFactory)
Creates a new method annotation target.
|
OptionalMethodInterception(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
List<TypeDescription> interfaceTypes,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
ByteBuddy.Definable<TypeAttributeAppender> typeAttributeAppender,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
MethodMatcher methodMatcher)
Creates a new optional method interception.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DynamicType.Builder.classFileVersion(ClassFileVersion classFileVersion)
Defines a class file format version for this builder for which the dynamic types should be created.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.classFileVersion(ClassFileVersion classFileVersion) |
Constructor and Description |
---|
Builder(TypeDescription instrumentedType,
TypeInitializer typeInitializer,
Instrumentation.Context.ExtractableView instrumentationContext,
ClassFileVersion classFileVersion)
Creates a new builder.
|
TypeExtensionDelegate(TypeDescription instrumentedType,
ClassFileVersion classFileVersion)
Creates a new delegate.
|
TypeExtensionDelegate(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
String accessorMethodSuffix,
TypeExtensionDelegate.AuxiliaryTypeNamingStrategy auxiliaryTypeNamingStrategy)
Creates a new delegate.
|
Modifier and Type | Method and Description |
---|---|
ClassFileVersion |
SubclassInstrumentedType.getClassFileVersion() |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
SubclassDynamicTypeBuilder.classFileVersion(ClassFileVersion classFileVersion) |
Constructor and Description |
---|
SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
TypeDescription superType,
List<? extends TypeDescription> interfaceTypes,
int modifiers,
TypeAttributeAppender attributeAppender,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
ConstructorStrategy constructorStrategy)
Creates a new immutable type builder for a subclassing a loaded class.
|
SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
TypeDescription superType,
List<TypeDescription> interfaceTypes,
int modifiers,
TypeAttributeAppender attributeAppender,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
List<DynamicType.Builder.AbstractBase.FieldToken> fieldTokens,
List<DynamicType.Builder.AbstractBase.MethodToken> methodTokens,
ConstructorStrategy constructorStrategy)
Creates a new immutable type builder for a subclassing a loaded class.
|
SubclassInstrumentedType(ClassFileVersion classFileVersion,
TypeDescription superClass,
List<TypeDescription> interfaces,
int modifiers,
NamingStrategy namingStrategy)
Creates a new immutable type instrumentation for a loaded superclass.
|
SubclassInstrumentedType(ClassFileVersion classFileVersion,
TypeDescription superClass,
List<TypeDescription> interfaces,
int modifiers,
String name,
List<? extends FieldDescription> fieldDescriptions,
List<? extends MethodDescription> methodDescriptions,
TypeInitializer typeInitializer)
Creates a new immutable type instrumentation for a loaded superclass.
|
Modifier and Type | Method and Description |
---|---|
MethodLookupEngine |
MethodLookupEngine.Factory.make(ClassFileVersion classFileVersion)
Returns a
MethodLookupEngine . |
MethodLookupEngine |
MethodLookupEngine.Default.Factory.make(ClassFileVersion classFileVersion) |
Modifier and Type | Method and Description |
---|---|
MethodLookupEngine |
Pipe.Binder.make(ClassFileVersion classFileVersion) |
DynamicType |
Pipe.Binder.Redirection.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
Modifier and Type | Method and Description |
---|---|
DynamicType |
TypeProxy.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
DynamicType |
MethodCallProxy.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
DynamicType |
AuxiliaryType.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.
|
Copyright © 2014. All rights reserved.