Package jodd.proxetta.asm
Class ProxettaCtorBuilder
- java.lang.Object
-
- jodd.asm9.MethodVisitor
-
- jodd.asm.EmptyMethodVisitor
-
- jodd.proxetta.asm.ProxettaCtorBuilder
-
public class ProxettaCtorBuilder extends EmptyMethodVisitor
Destination ctor builder
-
-
Field Summary
Fields Modifier and Type Field Description protected MethodVisitor
methodVisitor
protected MethodSignatureVisitor
msign
protected WorkData
wd
-
Fields inherited from class jodd.asm9.MethodVisitor
api, mv
-
-
Constructor Summary
Constructors Constructor Description ProxettaCtorBuilder(MethodVisitor methodVisitor, MethodSignatureVisitor msign, WorkData wd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationVisitor
visitAnnotation(java.lang.String desc, boolean visible)
Visits an annotation of this method.AnnotationVisitor
visitAnnotationDefault()
Visits the default value of this annotation interface method.void
visitEnd()
Visits the end of the method.AnnotationVisitor
visitParameterAnnotation(int parameter, java.lang.String desc, boolean visible)
Visits an annotation of a parameter this method.-
Methods inherited from class jodd.asm9.MethodVisitor
visitAnnotableParameterCount, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
-
-
-
-
Field Detail
-
msign
protected final MethodSignatureVisitor msign
-
methodVisitor
protected final MethodVisitor methodVisitor
-
wd
protected final WorkData wd
-
-
Constructor Detail
-
ProxettaCtorBuilder
public ProxettaCtorBuilder(MethodVisitor methodVisitor, MethodSignatureVisitor msign, WorkData wd)
-
-
Method Detail
-
visitAnnotation
public AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)
Description copied from class:MethodVisitor
Visits an annotation of this method.- Overrides:
visitAnnotation
in classMethodVisitor
- Parameters:
desc
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.- Returns:
- a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
-
visitParameterAnnotation
public AnnotationVisitor visitParameterAnnotation(int parameter, java.lang.String desc, boolean visible)
Description copied from class:MethodVisitor
Visits an annotation of a parameter this method.- Overrides:
visitParameterAnnotation
in classMethodVisitor
- Parameters:
parameter
- the parameter index. This index must be strictly smaller than the number of parameters in the method descriptor, and strictly smaller than the parameter count specified inMethodVisitor.visitAnnotableParameterCount(int, boolean)
. Important note: a parameter index i is not required to correspond to the i'th parameter descriptor in the method descriptor, in particular in case of synthetic parameters (see https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.18).desc
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.- Returns:
- a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
-
visitAnnotationDefault
public AnnotationVisitor visitAnnotationDefault()
Description copied from class:MethodVisitor
Visits the default value of this annotation interface method.- Overrides:
visitAnnotationDefault
in classMethodVisitor
- Returns:
- a visitor to the visit the actual default value of this annotation interface method, or null if this visitor is not interested in visiting this default value. The 'name' parameters passed to the methods of this annotation visitor are ignored. Moreover, exacly one visit method must be called on this annotation visitor, followed by visitEnd.
-
visitEnd
public void visitEnd()
Description copied from class:MethodVisitor
Visits the end of the method. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the method have been visited.- Overrides:
visitEnd
in classMethodVisitor
-
-