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.instrumentation |
The instrumentation package contains any logic for intercepting method calls.
|
net.bytebuddy.instrumentation.method.bytecode |
Types and classes in this package are responsible for creating Java byte code for a given byte code target
which is represented by a
MethodDescription . |
Modifier and Type | Method and Description |
---|---|
ByteCodeAppender |
TypeWriter.MethodPool.Entry.getByteCodeAppender()
The byte code appender to be used for the instrumentation by this entry.
|
ByteCodeAppender |
TypeWriter.MethodPool.Entry.Skip.getByteCodeAppender() |
ByteCodeAppender |
TypeWriter.MethodPool.Entry.Simple.getByteCodeAppender() |
Constructor and Description |
---|
Simple(ByteCodeAppender byteCodeAppender,
MethodAttributeAppender methodAttributeAppender) |
Modifier and Type | Class and Description |
---|---|
class |
ExceptionMethod
This instrumentation causes a
Throwable to be thrown when the instrumented method is invoked. |
protected class |
FieldAccessor.Appender
An byte code appender for an field accessor instrumentation.
|
protected static class |
FixedValue.ForPoolValue
A fixed value instrumentation that represents its fixed value as a value that is written to the instrumented
class's constant pool.
|
static class |
Instrumentation.ForAbstractMethod
An instrumentation for an abstract method that does not append any code and will throw an exception if it is
attempted to be composed with other methods that do provide an implementation.
|
class |
StubMethod
This instrumentation creates a method stub which does nothing but returning the default value of the return
type of the method.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeAppender |
SuperMethodCall.appender(TypeDescription instrumentedType) |
ByteCodeAppender |
StubMethod.appender(TypeDescription instrumentedType) |
ByteCodeAppender |
MethodDelegation.appender(TypeDescription instrumentedType) |
ByteCodeAppender |
Instrumentation.appender(TypeDescription instrumentedType)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
ByteCodeAppender |
Instrumentation.ForAbstractMethod.appender(TypeDescription instrumentedType) |
ByteCodeAppender |
Instrumentation.Compound.appender(TypeDescription instrumentedType) |
ByteCodeAppender |
FixedValue.ForPoolValue.appender(TypeDescription instrumentedType) |
ByteCodeAppender |
FixedValue.ForStaticField.appender(TypeDescription instrumentedType) |
ByteCodeAppender |
FieldAccessor.ForBeanProperty.appender(TypeDescription instrumentedType) |
ByteCodeAppender |
FieldAccessor.ForNamedField.appender(TypeDescription instrumentedType) |
ByteCodeAppender |
ExceptionMethod.appender(TypeDescription instrumentedType) |
Modifier and Type | Class and Description |
---|---|
static class |
ByteCodeAppender.Compound
A compound appender that combines a given number of other byte code appenders.
|
Constructor and Description |
---|
Compound(ByteCodeAppender... byteCodeAppender)
Creates a new compound byte code appender.
|
Copyright © 2014. All rights reserved.