ClassVisitor in Byte Buddy's package namespace to a
ClassVisitor in any other namespace. Note that this API does not allow for the
passing of Attributes. which must be filtered or propagated past this translation.
If the supplied visitors do not declare a method that Byte Buddy's version of ASM is aware
of, an UnsupportedOperationException is thrown.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | ClassVisitorFactory.AttributeTranslator
A method to wrap an |
| protected static class | ClassVisitorFactory.ConstantArrayTranslator
A method to translate an array of constants from one namespace to another. |
| protected static class | ClassVisitorFactory.ConstantDynamicTranslator
A method to translate a |
| protected static class | ClassVisitorFactory.ConstantTranslator
A method to translate a constant value from one namespace to another. |
| protected static class | ClassVisitorFactory.CreateClassVisitorFactory<
The type of the class visitor to map to. S>A factory for creating a wrapper for a |
| protected static class | ClassVisitorFactory.FrameTranslator
A method to translate a stack map frame array from one namespace to another. |
| protected static class | ClassVisitorFactory.HandleTranslator
A method to translate a |
| protected static class | ClassVisitorFactory.LabelArrayTranslator
A method to translate an array of |
| protected static class | ClassVisitorFactory.LabelTranslator
A method to translate a |
| protected static class | ClassVisitorFactory.NullCheckedConstruction
An appender that performs a |
| protected static class | ClassVisitorFactory.TypePathTranslator
A method to translate a |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | DELEGATE
The name of the delegate field containing an equivalent visitor. |
| private static final String | LABELS
The name of a map with labels that have been translated previously. |
| private final Class | type
The type of the represented class visitor wrapper. |
| private static final String | WRAP
The name of the method that wraps a translated visitor, including a |
| Access | Constructor and Description |
|---|---|
| protected | ClassVisitorFactory(Class<?>
The type of the represented class visitor wrapper. type)Creates a new factory. |
| Modifier and Type | Method and Description |
|---|---|
| private static < The type of the action's resolved value. T> T | Returns: The action's resolved value.The action to execute from a privileged context. action)A proxy for |
| public Class | Returns: TheClassVisitor type that this factory represents.Returns the |
| public static < The type of the class visitor to map to. S> ClassVisitorFactory | Returns: A factory for wrappingClassVisitors in Byte Buddy's and the supplied package namespace.The type of the translated class visitor. classVisitor)Returns a class visitor factory for the supplied |
| public static < The type of the class visitor to map to. S> ClassVisitorFactory | Returns: A factory for wrappingClassVisitors in Byte Buddy's and the supplied package namespace.The type of the translated classVisitor, ByteBuddy ClassVisitor.The Byte Buddy instance to use. byteBuddy)Returns a class visitor factory for the supplied |
| private static DynamicType | Returns: The created dynamic type.The builder to use for the wrapper type. builder,The source, Class<?> Attribute type in the original namespace.The target, TypeDescription Attribute type in the targeted namespace.The wrapper type for the sourceWrapper, TypeDescription Attribute type in the original namespace.The wrapper type for the targetWrapper)Attribute type in the targeted namespace.Creates a wrapper type for an |
| private static MethodCall. | Returns: An appropriate argument loader factory.The source type. source, Class<?> The target type. target, String The name of the method. method, int The parameter offset offset, boolean true if the invoked method is virtual.Creates an argument loader for a method parameter that requires conversion. |
| private static DynamicType. | Returns: The created builder.The Byte Buddy instance to use. byteBuddy, Class<?> The visitor type to map from. sourceVisitor, Class<?> The visitor type to map to. targetVisitor, Class<?> The sourceTypePath, Class<?> TypePath source type.The targetTypePath, Class<?> TypePath target type.The sourceLabel, Class<?> Label source type.The targetLabel, Class<?> Label target type.The sourceType, Class<?> Type source type.The targetType, Class<?> Type target type.The sourceHandle, Class<?> Handle source type.The targetHandle, Class<?> Handle target type.The sourceConstantDynamic, Class<?> ConstantDynamic source type.The targetConstantDynamic)ConstantDynamic target type.Creates a builder for a method visitor type. |
| private static DynamicType. | Returns: The created builder.The Byte Buddy instance to use. byteBuddy, Class<?> The visitor type to map from. sourceVisitor, Class<?> The visitor type to map to. targetVisitor, Class<?> The sourceTypePath, Class<?> TypePath source type.The targetTypePath, Implementation TypePath target type.The implementation to append to the constructor. appendix)Creates a builder for a visitor type. |
| public abstract ClassVisitor | Returns: A class visitor that unwraps the supplied class visitor.The class visitor to unwrap. classVisitor)Unwraps an instance of the supplied class visitor as a |
| public abstract T | Returns: A class visitor that wraps the supplied class visitor.The class visitor to wrap. classVisitor)Wraps a |