Top Description Inners Fields Constructors Methods
net.bytebuddy.implementation.auxiliary

public Class MethodCallProxy

extends Object
implements AuxiliaryType
Class Inheritance
All Implemented Interfaces
net.bytebuddy.implementation.auxiliary.AuxiliaryType
Annotations
@Enhance
Imports
net.bytebuddy.ByteBuddy, .ClassFileVersion, net.bytebuddy.build.HashCodeAndEqualsPlugin, net.bytebuddy.description.annotation.AnnotationDescription, .AnnotationValue, net.bytebuddy.description.field.FieldDescription, .FieldList, net.bytebuddy.description.method.MethodDescription, .ParameterDescription, net.bytebuddy.description.modifier.Visibility, net.bytebuddy.description.type.TypeDefinition, .TypeDescription, .TypeVariableToken, net.bytebuddy.dynamic.DynamicType, net.bytebuddy.dynamic.scaffold.InstrumentedType, .MethodGraph, .TypeValidation, net.bytebuddy.dynamic.scaffold.subclass.ConstructorStrategy, net.bytebuddy.implementation.Implementation, .MethodAccessorFactory, net.bytebuddy.implementation.bytecode.ByteCodeAppender, .Duplication, .StackManipulation, .TypeCreation, net.bytebuddy.implementation.bytecode.assign.Assigner, net.bytebuddy.implementation.bytecode.member.FieldAccess, .MethodInvocation, .MethodReturn, .MethodVariableAccess, net.bytebuddy.utility.RandomString, net.bytebuddy.jar.asm.MethodVisitor, .Opcodes, java.io.Serializable, java.util.*, java.util.concurrent.Callable

A method call proxy represents a class that is compiled against a particular method which can then be called whenever either its java.util.concurrent.Callable#call() or Runnable#run() method is called where the method call proxy implements both interfaces.

 

In order to do so, the method call proxy instances are constructed by providing all the necessary information for calling a particular method:
  1. If the target method is not static, the first argument should be an instance on which the method is called.
  2. All arguments for the called method in the order in which they are required.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
MethodCallProxy.AssignableSignatureCall

A stack manipulation that creates a net.bytebuddy.implementation.auxiliary.MethodCallProxy for a given method an pushes such an object onto the call stack.

protected static enum
protected static class
protected static enum
MethodCallProxy.PrecomputedMethodGraph

A precomputed method graph that only displays the methods that are relevant for creating a method call proxy.

Field Summary

Modifier and TypeField and Description
private final Assigner
assigner

The assigner to use for invoking a bridge method target where the parameter and return types need to be assigned.

private static final String
FIELD_NAME_PREFIX

The prefix of the fields holding the original method invocation's arguments.

private final boolean
serializableProxy

Determines if the generated proxy should be serializableProxy.

private final Implementation.SpecialMethodInvocation
specialMethodInvocation

The special method invocation to invoke from the auxiliary type.

Constructor Summary

AccessConstructor and Description
public
MethodCallProxy(Implementation.SpecialMethodInvocation
The special method invocation which should be invoked by this method call proxy.
specialMethodInvocation
,
boolean
Determines if the generated proxy should be serializableProxy.
serializableProxy
)

Creates a new method call proxy for a given method and uses a default assigner for assigning the method's return value to either the java.util.concurrent.Callable#call() or Runnable#run() method returns.

public
MethodCallProxy(Implementation.SpecialMethodInvocation
The special method invocation which should be invoked by this method call proxy.
specialMethodInvocation
,
boolean
Determines if the generated proxy should be serializableProxy.
serializableProxy
,
Assigner
An assigner for assigning the target method's return value to either the java.util.concurrent.Callable#call() or Runnable#run()} methods' return values.
assigner
)

Creates a new method call proxy for a given method.

Method Summary

Modifier and TypeMethod and Description
private static LinkedHashMap<String, TypeDescription>

Returns:

A map of fields in the order they need to be loaded onto the operand stack for invoking the original method, including a reference to the instance of the instrumented type that is invoked if applicable.
extractFields
(MethodDescription
The method to extract into fields.
methodDescription
)

Creates a linked hash map of field names to their types where each field represents a parameter of the method.

private static String

Returns:

The name for the given parameter.
fieldName
(int
The index for which the field name is to be created.
index
)

Creates a field name for a method parameter of a given index.

public String
getSuffix()

Implements net.bytebuddy.implementation.auxiliary.AuxiliaryType.getSuffix.

Produces a suffix that gives this auxiliary type a stable name.
public DynamicType
make(String
The fully qualified binary name for this auxiliary type. The type should be in the same package than the instrumented type this auxiliary type is providing services to in order to allow package-private access.
auxiliaryTypeName
,
ClassFileVersion
The class file version the auxiliary class should be written in.
classFileVersion
,
MethodAccessorFactory
A factory for accessor methods.
methodAccessorFactory
)

Implements net.bytebuddy.implementation.auxiliary.AuxiliaryType.make.

Creates a new auxiliary type.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

assignerback to summary
private final Assigner assigner

The assigner to use for invoking a bridge method target where the parameter and return types need to be assigned.

FIELD_NAME_PREFIXback to summary
private static final String FIELD_NAME_PREFIX

The prefix of the fields holding the original method invocation's arguments.

serializableProxyback to summary
private final boolean serializableProxy

Determines if the generated proxy should be serializableProxy.

specialMethodInvocationback to summary
private final Implementation.SpecialMethodInvocation specialMethodInvocation

The special method invocation to invoke from the auxiliary type.

Constructor Detail

MethodCallProxyback to summary
public MethodCallProxy(Implementation.SpecialMethodInvocation specialMethodInvocation, boolean serializableProxy)

Creates a new method call proxy for a given method and uses a default assigner for assigning the method's return value to either the java.util.concurrent.Callable#call() or Runnable#run() method returns.

Parameters
specialMethodInvocation:Implementation.SpecialMethodInvocation

The special method invocation which should be invoked by this method call proxy.

serializableProxy:boolean

Determines if the generated proxy should be serializableProxy.

MethodCallProxyback to summary
public MethodCallProxy(Implementation.SpecialMethodInvocation specialMethodInvocation, boolean serializableProxy, Assigner assigner)

Creates a new method call proxy for a given method.

Parameters
specialMethodInvocation:Implementation.SpecialMethodInvocation

The special method invocation which should be invoked by this method call proxy.

serializableProxy:boolean

Determines if the generated proxy should be serializableProxy.

assigner:Assigner

An assigner for assigning the target method's return value to either the java.util.concurrent.Callable#call() or Runnable#run()} methods' return values.

Method Detail

extractFieldsback to summary
private static LinkedHashMap<String, TypeDescription> extractFields(MethodDescription methodDescription)

Creates a linked hash map of field names to their types where each field represents a parameter of the method.

Parameters
methodDescription:MethodDescription

The method to extract into fields.

Returns:LinkedHashMap<String, TypeDescription>

A map of fields in the order they need to be loaded onto the operand stack for invoking the original method, including a reference to the instance of the instrumented type that is invoked if applicable.

fieldNameback to summary
private static String fieldName(int index)

Creates a field name for a method parameter of a given index.

Parameters
index:int

The index for which the field name is to be created.

Returns:String

The name for the given parameter.

getSuffixback to summary
public String getSuffix()

Implements net.bytebuddy.implementation.auxiliary.AuxiliaryType.getSuffix.

Doc from net.bytebuddy.implementation.auxiliary.AuxiliaryType.getSuffix.

Produces a suffix that gives this auxiliary type a stable name. A best effort is made that this suffix is unique.

Returns:String

The suffix for this auxiliary type.

makeback to summary
public DynamicType make(String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory)

Implements net.bytebuddy.implementation.auxiliary.AuxiliaryType.make.

Doc from net.bytebuddy.implementation.auxiliary.AuxiliaryType.make.

Creates a new auxiliary type.

Parameters
auxiliaryTypeName:String

The fully qualified binary name for this auxiliary type. The type should be in the same package than the instrumented type this auxiliary type is providing services to in order to allow package-private access.

classFileVersion:ClassFileVersion

The class file version the auxiliary class should be written in.

methodAccessorFactory:MethodAccessorFactory

A factory for accessor methods.

Returns:DynamicType

A dynamically created type representing this auxiliary type.

net.bytebuddy.implementation.auxiliary back to summary

public Class MethodCallProxy.AssignableSignatureCall

extends AbstractBase
Class Inheritance
Annotations
@Enhance

A stack manipulation that creates a net.bytebuddy.implementation.auxiliary.MethodCallProxy for a given method an pushes such an object onto the call stack. For this purpose, all arguments of the proxied method are loaded onto the stack what is only possible if this instance is used from a method with an identical signature such as the target method itself.

Field Summary

Modifier and TypeField and Description
private final boolean
serializable

Determines if the generated proxy should be serializableProxy.

private final Implementation.SpecialMethodInvocation
specialMethodInvocation

The special method invocation to be proxied by this stack manipulation.

Constructor Summary

AccessConstructor and Description
public
AssignableSignatureCall(Implementation.SpecialMethodInvocation
The special method invocation which should be invoked by the created method call proxy.
specialMethodInvocation
,
boolean
Determines if the generated proxy should be serializableProxy.
serializable
)

Creates an operand stack assignment that creates a net.bytebuddy.implementation.auxiliary.MethodCallProxy for the targetMethod and pushes this proxy object onto the stack.

Method Summary

Modifier and TypeMethod and Description
public StackManipulation.Size
apply(MethodVisitor
The method visitor used to write the method implementation to.
methodVisitor
,
Implementation.Context
The context of the current implementation.
implementationContext
)

Implements net.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.
Inherited from net.bytebuddy.implementation.bytecode.StackManipulation.AbstractBase:
isValid

Field Detail

serializableback to summary
private final boolean serializable

Determines if the generated proxy should be serializableProxy.

specialMethodInvocationback to summary
private final Implementation.SpecialMethodInvocation specialMethodInvocation

The special method invocation to be proxied by this stack manipulation.

Constructor Detail

AssignableSignatureCallback to summary
public AssignableSignatureCall(Implementation.SpecialMethodInvocation specialMethodInvocation, boolean serializable)

Creates an operand stack assignment that creates a net.bytebuddy.implementation.auxiliary.MethodCallProxy for the targetMethod and pushes this proxy object onto the stack.

Parameters
specialMethodInvocation:Implementation.SpecialMethodInvocation

The special method invocation which should be invoked by the created method call proxy.

serializable:boolean

Determines if the generated proxy should be serializableProxy.

Method Detail

applyback to summary
public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)

Implements net.bytebuddy.implementation.bytecode.StackManipulation.apply.

Doc from net.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.

Parameters
methodVisitor:MethodVisitor

The method visitor used to write the method implementation to.

implementationContext:Implementation.Context

The context of the current implementation.

Returns:StackManipulation.Size

The changes to the size of the operand stack that are implied by this stack manipulation.

net.bytebuddy.implementation.auxiliary back to summary

protected final Enum MethodCallProxy.ConstructorCall

extends Enum<MethodCallProxy.ConstructorCall>
implements Implementation
Class Inheritance
All Implemented Interfaces
net.bytebuddy.implementation.Implementation, net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable

An implementation for a constructor of a net.bytebuddy.implementation.auxiliary.MethodCallProxy.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected static class

Field Summary

Modifier and TypeField and Description
public static final MethodCallProxy.ConstructorCall
INSTANCE

The singleton instance.

private final MethodDescription
objectTypeDefaultConstructor

A reference of the Object type default constructor.

Constructor Summary

AccessConstructor and Description
private
ConstructorCall()

Creates the constructor call singleton.

Method Summary

Modifier and TypeMethod and Description
public ByteCodeAppender
appender(Implementation.Target
The target of the current implementation.
implementationTarget
)

Implements net.bytebuddy.implementation.Implementation.appender.

Creates a byte code appender that determines the implementation of the instrumented type's methods.
public InstrumentedType
prepare(InstrumentedType
The instrumented type in its current form.
instrumentedType
)

Implements net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable.prepare.

Prepares a given instrumented type.
public static MethodCallProxy.ConstructorCall
public static MethodCallProxy.ConstructorCall[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final MethodCallProxy.ConstructorCall INSTANCE

The singleton instance.

objectTypeDefaultConstructorback to summary
private final MethodDescription objectTypeDefaultConstructor

A reference of the Object type default constructor.

Constructor Detail

ConstructorCallback to summary
private ConstructorCall()

Creates the constructor call singleton.

Method Detail

appenderback to summary
public ByteCodeAppender appender(Implementation.Target implementationTarget)

Implements net.bytebuddy.implementation.Implementation.appender.

Doc from net.bytebuddy.implementation.Implementation.appender.

Creates a byte code appender that determines the implementation of the instrumented type's methods.

Parameters
implementationTarget:Implementation.Target

The target of the current implementation.

Returns:ByteCodeAppender

A byte code appender for implementing methods delegated to this implementation. This byte code appender is also responsible for handling methods that were added by this implementation on the call to Implementation#prepare(InstrumentedType).

prepareback to summary
public InstrumentedType prepare(InstrumentedType instrumentedType)

Implements net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable.prepare.

Doc from net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable.prepare.

Prepares a given instrumented type.

Parameters
instrumentedType:InstrumentedType

The instrumented type in its current form.

Returns:InstrumentedType

The prepared instrumented type.

valueOfback to summary
public static MethodCallProxy.ConstructorCall valueOf(String name)
valuesback to summary
public static MethodCallProxy.ConstructorCall[] values()
net.bytebuddy.implementation.auxiliary back to summary

protected Class MethodCallProxy.ConstructorCall.Appender

extends Object
implements ByteCodeAppender
Class Inheritance
  • java.lang.Object
  • net.bytebuddy.implementation.auxiliary.MethodCallProxy.ConstructorCall.Appender
All Implemented Interfaces
net.bytebuddy.implementation.bytecode.ByteCodeAppender
Annotations
@Enhance

Field Summary

Modifier and TypeField and Description
private final TypeDescription
instrumentedType

The instrumented type being created.

Constructor Summary

AccessConstructor and Description
private
Appender(TypeDescription
The instrumented type that is being created.
instrumentedType
)

Creates a new appender.

Method Summary

Modifier and TypeMethod and Description
public ByteCodeAppender.Size
apply(MethodVisitor
The method visitor to which the byte code appender writes its code to.
methodVisitor
,
Implementation.Context
The implementation context of the current type creation process.
implementationContext
,
MethodDescription
The method that is the target of the instrumentation.
instrumentedMethod
)

Implements net.bytebuddy.implementation.bytecode.ByteCodeAppender.apply.

Applies this byte code appender to a type creation process.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instrumentedTypeback to summary
private final TypeDescription instrumentedType

The instrumented type being created.

Constructor Detail

Appenderback to summary
private Appender(TypeDescription instrumentedType)

Creates a new appender.

Parameters
instrumentedType:TypeDescription

The instrumented type that is being created.

Method Detail

applyback to summary
public ByteCodeAppender.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)

Implements net.bytebuddy.implementation.bytecode.ByteCodeAppender.apply.

Doc from net.bytebuddy.implementation.bytecode.ByteCodeAppender.apply.

Applies this byte code appender to a type creation process.

Parameters
methodVisitor:MethodVisitor

The method visitor to which the byte code appender writes its code to.

implementationContext:Implementation.Context

The implementation context of the current type creation process.

instrumentedMethod:MethodDescription

The method that is the target of the instrumentation.

Returns:ByteCodeAppender.Size

The required size for the applied byte code to run.

net.bytebuddy.implementation.auxiliary back to summary

protected Class MethodCallProxy.MethodCall

extends Object
implements Implementation
Class Inheritance
  • java.lang.Object
  • net.bytebuddy.implementation.auxiliary.MethodCallProxy.MethodCall
All Implemented Interfaces
net.bytebuddy.implementation.Implementation, net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
Annotations
@Enhance

An implementation for a method of a net.bytebuddy.implementation.auxiliary.MethodCallProxy.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class

Field Summary

Modifier and TypeField and Description
private final MethodDescription
accessorMethod

The method that is accessed by the implemented method.

private final Assigner
assigner

The assigner to be used for invoking the accessor method.

Constructor Summary

AccessConstructor and Description
protected
MethodCall(MethodDescription
The method that is accessed by the implemented method.
accessorMethod
,
Assigner
The assigner to be used for invoking the accessor method.
assigner
)

Creates a new method call implementation.

Method Summary

Modifier and TypeMethod and Description
public ByteCodeAppender
appender(Implementation.Target
The target of the current implementation.
implementationTarget
)

Implements net.bytebuddy.implementation.Implementation.appender.

Creates a byte code appender that determines the implementation of the instrumented type's methods.
public InstrumentedType
prepare(InstrumentedType
The instrumented type in its current form.
instrumentedType
)

Implements net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable.prepare.

Prepares a given instrumented type.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessorMethodback to summary
private final MethodDescription accessorMethod

The method that is accessed by the implemented method.

assignerback to summary
private final Assigner assigner

The assigner to be used for invoking the accessor method.

Constructor Detail

MethodCallback to summary
protected MethodCall(MethodDescription accessorMethod, Assigner assigner)

Creates a new method call implementation.

Parameters
accessorMethod:MethodDescription

The method that is accessed by the implemented method.

assigner:Assigner

The assigner to be used for invoking the accessor method.

Method Detail

appenderback to summary
public ByteCodeAppender appender(Implementation.Target implementationTarget)

Implements net.bytebuddy.implementation.Implementation.appender.

Doc from net.bytebuddy.implementation.Implementation.appender.

Creates a byte code appender that determines the implementation of the instrumented type's methods.

Parameters
implementationTarget:Implementation.Target

The target of the current implementation.

Returns:ByteCodeAppender

A byte code appender for implementing methods delegated to this implementation. This byte code appender is also responsible for handling methods that were added by this implementation on the call to Implementation#prepare(InstrumentedType).

prepareback to summary
public InstrumentedType prepare(InstrumentedType instrumentedType)

Implements net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable.prepare.

Doc from net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable.prepare.

Prepares a given instrumented type.

Parameters
instrumentedType:InstrumentedType

The instrumented type in its current form.

Returns:InstrumentedType

The prepared instrumented type.

net.bytebuddy.implementation.auxiliary back to summary

protected Class MethodCallProxy.MethodCall.Appender

extends Object
implements ByteCodeAppender
Class Inheritance
  • java.lang.Object
  • net.bytebuddy.implementation.auxiliary.MethodCallProxy.MethodCall.Appender
All Implemented Interfaces
net.bytebuddy.implementation.bytecode.ByteCodeAppender
Annotations
@Enhance
includeSyntheticFields:true

Field Summary

Modifier and TypeField and Description
private final TypeDescription
instrumentedType

The instrumented type that is implemented.

Constructor Summary

AccessConstructor and Description
private
Appender(TypeDescription
The instrumented type to be implemented.
instrumentedType
)

Creates a new appender.

Method Summary

Modifier and TypeMethod and Description
public ByteCodeAppender.Size
apply(MethodVisitor
The method visitor to which the byte code appender writes its code to.
methodVisitor
,
Implementation.Context
The implementation context of the current type creation process.
implementationContext
,
MethodDescription
The method that is the target of the instrumentation.
instrumentedMethod
)

Implements net.bytebuddy.implementation.bytecode.ByteCodeAppender.apply.

Applies this byte code appender to a type creation process.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instrumentedTypeback to summary
private final TypeDescription instrumentedType

The instrumented type that is implemented.

Constructor Detail

Appenderback to summary
private Appender(TypeDescription instrumentedType)

Creates a new appender.

Parameters
instrumentedType:TypeDescription

The instrumented type to be implemented.

Method Detail

applyback to summary
public ByteCodeAppender.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)

Implements net.bytebuddy.implementation.bytecode.ByteCodeAppender.apply.

Doc from net.bytebuddy.implementation.bytecode.ByteCodeAppender.apply.

Applies this byte code appender to a type creation process.

Parameters
methodVisitor:MethodVisitor

The method visitor to which the byte code appender writes its code to.

implementationContext:Implementation.Context

The implementation context of the current type creation process.

instrumentedMethod:MethodDescription

The method that is the target of the instrumentation.

Returns:ByteCodeAppender.Size

The required size for the applied byte code to run.

net.bytebuddy.implementation.auxiliary back to summary

protected final Enum MethodCallProxy.PrecomputedMethodGraph

extends Enum<MethodCallProxy.PrecomputedMethodGraph>
implements Compiler
Class Inheritance
All Implemented Interfaces
net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler

A precomputed method graph that only displays the methods that are relevant for creating a method call proxy.

Field Summary

Modifier and TypeField and Description
public static final MethodCallProxy.PrecomputedMethodGraph
INSTANCE

The singleton instance.

private final transient MethodGraph.Linked
methodGraph

The precomputed method graph.

Constructor Summary

AccessConstructor and Description
private
PrecomputedMethodGraph()

Creates the precomputed method graph.

Method Summary

Modifier and TypeMethod and Description
public MethodGraph.Linked
compile(TypeDefinition
The type to be compiled.
typeDefinition
)

Implements net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Compiles the given type into a method graph considering the type to be the viewpoint.
public MethodGraph.Linked
compile(TypeDescription
The type to be compiled.
typeDescription
)

Implements net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Deprecated
Compiles the given type into a method graph considering the type to be the viewpoint.
public MethodGraph.Linked
compile(TypeDefinition
The type to be compiled.
typeDefinition
,
TypeDescription
The view point that determines the method's visibility.
viewPoint
)

Implements net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Compiles the given type into a method graph.
public MethodGraph.Linked
compile(TypeDescription
The type to be compiled.
typeDefinition
,
TypeDescription
The view point that determines the method's visibility.
viewPoint
)

Implements net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Deprecated
Compiles the given type into a method graph.
public static MethodCallProxy.PrecomputedMethodGraph
public static MethodCallProxy.PrecomputedMethodGraph[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final MethodCallProxy.PrecomputedMethodGraph INSTANCE

The singleton instance.

methodGraphback to summary
private final transient MethodGraph.Linked methodGraph

The precomputed method graph.

Constructor Detail

PrecomputedMethodGraphback to summary
private PrecomputedMethodGraph()

Creates the precomputed method graph.

Method Detail

compileback to summary
public MethodGraph.Linked compile(TypeDefinition typeDefinition)

Implements net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Doc from net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Compiles the given type into a method graph considering the type to be the viewpoint.

Parameters
typeDefinition:TypeDefinition

The type to be compiled.

Returns:MethodGraph.Linked

A linked method graph representing the given type.

compileback to summary
public MethodGraph.Linked compile(TypeDescription typeDescription)

Implements net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Doc from net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Deprecated

Compiles the given type into a method graph considering the type to be the viewpoint.

Parameters
typeDescription:TypeDescription

The type to be compiled.

Returns:MethodGraph.Linked

A linked method graph representing the given type.

Annotations
@Deprecated
compileback to summary
public MethodGraph.Linked compile(TypeDefinition typeDefinition, TypeDescription viewPoint)

Implements net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Doc from net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Compiles the given type into a method graph.

Parameters
typeDefinition:TypeDefinition

The type to be compiled.

viewPoint:TypeDescription

The view point that determines the method's visibility.

Returns:MethodGraph.Linked

A linked method graph representing the given type.

compileback to summary
public MethodGraph.Linked compile(TypeDescription typeDefinition, TypeDescription viewPoint)

Implements net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Doc from net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.compile.

Deprecated

Compiles the given type into a method graph.

Parameters
typeDefinition:TypeDescription

The type to be compiled.

viewPoint:TypeDescription

The view point that determines the method's visibility.

Returns:MethodGraph.Linked

A linked method graph representing the given type.

Annotations
@Deprecated
valueOfback to summary
public static MethodCallProxy.PrecomputedMethodGraph valueOf(String name)
valuesback to summary
public static MethodCallProxy.PrecomputedMethodGraph[] values()