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.
|
Modifier and Type | Field and Description |
---|---|
protected MethodRegistry.Handler |
ByteBuddy.MethodAnnotationTarget.handler
The handler for the entry that is to be registered.
|
Constructor and Description |
---|
MethodAnnotationTarget(ClassFileVersion classFileVersion,
NamingStrategy.Unbound namingStrategy,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
List<TypeDescription> interfaceTypes,
ElementMatcher<? super MethodDescription> ignoredMethods,
ClassVisitorWrapper classVisitorWrapper,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
TypeAttributeAppender typeAttributeAppender,
MethodGraph.Compiler methodGraphCompiler,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new method annotation target.
|
Constructor and Description |
---|
DefaultMethodAnnotationTarget(LatentMethodMatcher methodMatcher,
List<MethodDescription.Token> methodTokens,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new default method annotation target.
|
Modifier and Type | Class and Description |
---|---|
static class |
MethodRegistry.Handler.ForAbstractMethod
A handler for defining an abstract or native method.
|
static class |
MethodRegistry.Handler.ForAnnotationValue
A handler for defining a default annotation value for a method.
|
static class |
MethodRegistry.Handler.ForImplementation
A handler for a method that is implemented as byte code.
|
static class |
MethodRegistry.Handler.ForVisibilityBridge
A handler for implementing a visibility bridge.
|
Modifier and Type | Method and Description |
---|---|
protected MethodRegistry.Handler |
MethodRegistry.Default.Entry.getHandler()
Returns this entry's handler.
|
protected MethodRegistry.Handler |
MethodRegistry.Default.Prepared.Entry.getHandler()
Returns this entry's handler.
|
static MethodRegistry.Handler |
MethodRegistry.Handler.ForAnnotationValue.of(Object annotationValue)
Represents the given value as an annotation default value handler after validating its suitability.
|
Modifier and Type | Method and Description |
---|---|
MethodRegistry |
MethodRegistry.append(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Appends the given method definition to this method registry, i.e.
|
MethodRegistry |
MethodRegistry.Default.append(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer) |
MethodRegistry |
MethodRegistry.prepend(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Prepends the given method definition to this method registry, i.e.
|
MethodRegistry |
MethodRegistry.Default.prepend(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer) |
Constructor and Description |
---|
Entry(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new entry.
|
Entry(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodDescription methodDescription,
Set<MethodDescription.TypeToken> typeTokens)
Creates a new prepared entry.
|
Copyright © 2014–2015. All rights reserved.