Package | Description |
---|---|
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.implementation |
The implementation package contains any logic for intercepting method calls.
|
Modifier and Type | Class and Description |
---|---|
static class |
TypeWriter.MethodPool.Record.AccessBridgeWrapper
A wrapper that appends accessor bridges for a method's implementation.
|
static class |
TypeWriter.MethodPool.Record.ForDefinedMethod
A base implementation of an abstract entry that defines a method.
|
static class |
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge
A record for a visibility bridge.
|
static class |
TypeWriter.MethodPool.Record.ForDefinedMethod.WithAnnotationDefaultValue
Describes an entry that defines a method with a default annotation value.
|
static class |
TypeWriter.MethodPool.Record.ForDefinedMethod.WithBody
Describes an entry that defines a method as byte code.
|
static class |
TypeWriter.MethodPool.Record.ForDefinedMethod.WithoutBody
Describes an entry that defines a method but without byte code and without an annotation value.
|
static class |
TypeWriter.MethodPool.Record.ForNonImplementedMethod
A canonical implementation of a method that is not declared but inherited by the instrumented type.
|
Modifier and Type | Field and Description |
---|---|
protected TypeWriter.MethodPool.Record |
TypeWriter.Default.ForInlining.InitializationHandler.Appending.record
The method pool record for the type initializer.
|
Modifier and Type | Method and Description |
---|---|
TypeWriter.MethodPool.Record |
MethodRegistry.Handler.ForAbstractMethod.assemble(MethodDescription methodDescription,
MethodAttributeAppender attributeAppender,
Visibility visibility) |
TypeWriter.MethodPool.Record |
MethodRegistry.Handler.ForVisibilityBridge.Compiled.assemble(MethodDescription methodDescription,
MethodAttributeAppender attributeAppender,
Visibility visibility) |
TypeWriter.MethodPool.Record |
MethodRegistry.Handler.Compiled.assemble(MethodDescription methodDescription,
MethodAttributeAppender attributeAppender,
Visibility visibility)
Assembles this compiled entry with a method attribute appender.
|
TypeWriter.MethodPool.Record |
MethodRegistry.Handler.ForImplementation.Compiled.assemble(MethodDescription methodDescription,
MethodAttributeAppender attributeAppender,
Visibility visibility) |
TypeWriter.MethodPool.Record |
MethodRegistry.Handler.ForAnnotationValue.assemble(MethodDescription methodDescription,
MethodAttributeAppender attributeAppender,
Visibility visibility) |
protected TypeWriter.MethodPool.Record |
MethodRegistry.Default.Compiled.Entry.bind(TypeDescription instrumentedType,
boolean supportsBridges)
Transforms this entry into a method record.
|
static TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.of(TypeDescription instrumentedType,
MethodDescription bridgeTarget,
MethodAttributeAppender attributeAppender)
Creates a record for a visibility bridge.
|
static TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.of(TypeWriter.MethodPool.Record delegate,
TypeDescription instrumentedType,
MethodDescription bridgeTarget,
Set<MethodDescription.TypeToken> bridgeTypes,
MethodAttributeAppender attributeAppender)
Wraps the given record in an accessor bridge wrapper if necessary.
|
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.prepend(ByteCodeAppender byteCodeAppender)
Prepends the given method appender to this entry.
|
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForNonImplementedMethod.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForDefinedMethod.WithBody.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForDefinedMethod.WithoutBody.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForDefinedMethod.WithAnnotationDefaultValue.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.prepend(ByteCodeAppender byteCodeAppender) |
TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.target(MethodDescription methodDescription)
Looks up a handler entry for a given method.
|
TypeWriter.MethodPool.Record |
MethodRegistry.Default.Compiled.target(MethodDescription methodDescription) |
TypeWriter.MethodPool.Record |
TypeInitializer.wrap(TypeWriter.MethodPool.Record record)
Creates a method pool record that applies this type initializer while preserving the record that was supplied.
|
TypeWriter.MethodPool.Record |
TypeInitializer.None.wrap(TypeWriter.MethodPool.Record record) |
TypeWriter.MethodPool.Record |
TypeInitializer.Simple.wrap(TypeWriter.MethodPool.Record record) |
Modifier and Type | Method and Description |
---|---|
static TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.of(TypeWriter.MethodPool.Record delegate,
TypeDescription instrumentedType,
MethodDescription bridgeTarget,
Set<MethodDescription.TypeToken> bridgeTypes,
MethodAttributeAppender attributeAppender)
Wraps the given record in an accessor bridge wrapper if necessary.
|
TypeWriter.MethodPool.Record |
TypeInitializer.wrap(TypeWriter.MethodPool.Record record)
Creates a method pool record that applies this type initializer while preserving the record that was supplied.
|
TypeWriter.MethodPool.Record |
TypeInitializer.None.wrap(TypeWriter.MethodPool.Record record) |
TypeWriter.MethodPool.Record |
TypeInitializer.Simple.wrap(TypeWriter.MethodPool.Record record) |
Constructor and Description |
---|
AccessBridgeWrapper(TypeWriter.MethodPool.Record delegate,
TypeDescription instrumentedType,
MethodDescription bridgeTarget,
Set<MethodDescription.TypeToken> bridgeTypes,
MethodAttributeAppender attributeAppender)
Creates a wrapper for adding accessor bridges.
|
Appending(org.objectweb.asm.MethodVisitor methodVisitor,
TypeDescription instrumentedType,
TypeWriter.MethodPool.Record record,
AnnotationValueFilter.Factory annotationValueFilterFactory,
boolean requireFrames,
boolean expandFrames)
Creates a new appending initialization handler.
|
AttributeObtainingMethodVisitor(org.objectweb.asm.MethodVisitor actualMethodVisitor,
TypeWriter.MethodPool.Record record)
Creates a new attribute obtaining method visitor.
|
CodePreservingMethodVisitor(org.objectweb.asm.MethodVisitor actualMethodVisitor,
TypeWriter.MethodPool.Record record,
MethodRebaseResolver.Resolution resolution)
Creates a new code preserving method visitor.
|
WithActiveRecord(org.objectweb.asm.MethodVisitor methodVisitor,
TypeDescription instrumentedType,
TypeWriter.MethodPool.Record record,
AnnotationValueFilter.Factory annotationValueFilterFactory,
boolean requireFrames,
boolean expandFrames)
Creates a new appending initialization handler without a drain and with an active record.
|
WithActiveRecord(org.objectweb.asm.MethodVisitor methodVisitor,
TypeDescription instrumentedType,
TypeWriter.MethodPool.Record record,
AnnotationValueFilter.Factory annotationValueFilterFactory,
boolean requireFrames,
boolean expandFrames)
Creates a new appending initialization handler with a drain and with an active record.
|
WithDrain(org.objectweb.asm.MethodVisitor methodVisitor,
TypeDescription instrumentedType,
TypeWriter.MethodPool.Record record,
AnnotationValueFilter.Factory annotationValueFilterFactory,
boolean requireFrames,
boolean expandFrames)
Creates a new appending initialization handler with a drain.
|
WithoutActiveRecord(org.objectweb.asm.MethodVisitor methodVisitor,
TypeDescription instrumentedType,
TypeWriter.MethodPool.Record record,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Creates a new appending initialization handler without a drain and without an active record.
|
WithoutActiveRecord(org.objectweb.asm.MethodVisitor methodVisitor,
TypeDescription instrumentedType,
TypeWriter.MethodPool.Record record,
AnnotationValueFilter.Factory annotationValueFilterFactory,
boolean requireFrames,
boolean expandFrames)
Creates a new appending initialization handler with a drain and without an active record.
|
WithoutDrain(org.objectweb.asm.MethodVisitor methodVisitor,
TypeDescription instrumentedType,
TypeWriter.MethodPool.Record record,
AnnotationValueFilter.Factory annotationValueFilterFactory,
boolean requireFrames,
boolean expandFrames)
Creates a new appending initialization handler without a drain.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
Implementation.Context.Default.AccessorMethodDelegation
An implementation of a
TypeWriter.MethodPool.Record for implementing
an accessor method. |
protected static class |
Implementation.Context.Default.DelegationRecord
An abstract method pool entry that delegates the implementation of a method to itself.
|
protected static class |
Implementation.Context.Default.FieldGetterDelegation
An implementation for a field getter.
|
protected static class |
Implementation.Context.Default.FieldSetterDelegation
An implementation for a field setter.
|
Modifier and Type | Method and Description |
---|---|
TypeWriter.MethodPool.Record |
Implementation.Context.Default.DelegationRecord.prepend(ByteCodeAppender byteCodeAppender) |
Copyright © 2014–2018. All rights reserved.