Package net.bytebuddy.dynamic.scaffold
Class TypeWriter.MethodPool.Record.ForDefinedMethod
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.TypeWriter.MethodPool.Record.ForDefinedMethod
-
- All Implemented Interfaces:
TypeWriter.MethodPool.Record
- Direct Known Subclasses:
Implementation.Context.Default.DelegationRecord
,TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge
,TypeWriter.MethodPool.Record.ForDefinedMethod.WithAnnotationDefaultValue
,TypeWriter.MethodPool.Record.ForDefinedMethod.WithBody
,TypeWriter.MethodPool.Record.ForDefinedMethod.WithoutBody
- Enclosing interface:
- TypeWriter.MethodPool.Record
public abstract static class TypeWriter.MethodPool.Record.ForDefinedMethod extends java.lang.Object implements TypeWriter.MethodPool.Record
A base implementation of an abstract entry that defines a method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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.-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.TypeWriter.MethodPool.Record
TypeWriter.MethodPool.Record.AccessBridgeWrapper, TypeWriter.MethodPool.Record.ForDefinedMethod, TypeWriter.MethodPool.Record.ForNonImplementedMethod, TypeWriter.MethodPool.Record.Sort
-
-
Constructor Summary
Constructors Constructor Description ForDefinedMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, AnnotationValueFilter.Factory annotationValueFilterFactory)
Applies this method entry.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.dynamic.scaffold.TypeWriter.MethodPool.Record
applyAttributes, applyBody, applyCode, applyHead, getMethod, getSort, getVisibility, prepend
-
-
-
-
Method Detail
-
apply
public void apply(org.objectweb.asm.ClassVisitor classVisitor, Implementation.Context implementationContext, AnnotationValueFilter.Factory annotationValueFilterFactory)
Applies this method entry. This method can always be called and might be a no-op.- Specified by:
apply
in interfaceTypeWriter.MethodPool.Record
- Parameters:
classVisitor
- The class visitor to which this entry should be applied.implementationContext
- The implementation context to which this entry should be applied.annotationValueFilterFactory
- The annotation value filter factory to apply when writing annotations.
-
-