Package | Description |
---|---|
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
Modifier and Type | Class and Description |
---|---|
static class |
MethodCall.WithoutSpecifiedTarget
Represents a
MethodCall that invokes a method without specifying
an invocation method. |
Modifier and Type | Method and Description |
---|---|
static MethodCall |
MethodCall.construct(Constructor<?> constructor)
Invokes the given constructor in order to create an instance.
|
static MethodCall |
MethodCall.construct(MethodDescription methodDescription)
Invokes the given constructor in order to create an instance.
|
static MethodCall |
MethodCall.invokeSuper()
Invokes the method that is instrumented by the returned instance by a super method invocation.
|
MethodCall |
MethodCall.WithoutSpecifiedTarget.on(Object target)
Invokes the specified method on the given instance.
|
MethodCall |
MethodCall.WithoutSpecifiedTarget.onDefault()
Invokes the given method by a Java 8default method invocation on the instance of the instrumented type.
|
MethodCall |
MethodCall.WithoutSpecifiedTarget.onInstanceField(Class<?> type,
String fieldName)
Invokes the given method on an instance that is stored in an instance field.
|
MethodCall |
MethodCall.WithoutSpecifiedTarget.onInstanceField(TypeDescription typeDescription,
String fieldName)
Invokes the given method on an instance that is stored in an instance field.
|
MethodCall |
MethodCall.WithoutSpecifiedTarget.onSuper()
Invokes the given method by a super method invocation on the instance of the instrumented type.
|
MethodCall |
MethodCall.with(EnumerationDescription... enumerationDescription)
Defines the given enumeration values to be provided as arguments to the invoked method where the values
are read from the enumeration class on demand.
|
MethodCall |
MethodCall.with(JavaInstance... javaInstance)
Defines the given Java instances to be provided as arguments to the invoked method where the given
instances are stored in the generated class's constant pool.
|
MethodCall |
MethodCall.with(Object... argument)
Defines a number of arguments to be handed to the method that is being invoked by this implementation.
|
MethodCall |
MethodCall.with(TypeDescription... typeDescription)
Defines the given types to be provided as arguments to the invoked method where the represented types
are stored in the generated class's constant pool.
|
MethodCall |
MethodCall.withArgument(int... index)
Defines a number of arguments of the instrumented method by their parameter indices to be handed
to the invoked method as an argument.
|
MethodCall |
MethodCall.withAssigner(Assigner assigner,
Assigner.Typing typing)
Defines an assigner to be used for assigning values to the parameters of the invoked method.
|
MethodCall |
MethodCall.withField(String... fieldName)
Defines a method call which fetches a value from an existing field.
|
MethodCall |
MethodCall.withInstanceField(Class<?> type,
String name)
Defines a method call which fetches a value from an instance field.
|
MethodCall |
MethodCall.withInstanceField(TypeDescription typeDescription,
String name)
Defines a method call which fetches a value from an instance field.
|
MethodCall |
MethodCall.withOwnType()
Assigns the
Class value of the instrumented type. |
MethodCall |
MethodCall.withReference(Object... argument)
Defines a number of arguments to be handed to the method that is being invoked by this implementation.
|
MethodCall |
MethodCall.withThis()
Assigns the
this reference to the next parameter. |
Copyright © 2014–2015. All rights reserved.