protected class TypePool.Default.TypeExtractor.MethodExtractor extends MethodVisitor implements TypePool.Default.AnnotationRegistrant
TypePool.Default.AnnotationRegistrant.AbstractBase, TypePool.Default.AnnotationRegistrant.ForByteCodeElement, TypePool.Default.AnnotationRegistrant.ForTypeVariableapi, mv| Modifier | Constructor and Description |
|---|---|
protected |
MethodExtractor(int modifiers,
String internalName,
String descriptor,
String genericSignature,
String[] exceptionName)
Creates a method extractor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete()
Called once all annotation values are visited.
|
void |
register(String ignored,
AnnotationValue<?,?> annotationValue)
Registers an annotation value.
|
void |
visitAnnotableParameterCount(int count,
boolean visible) |
AnnotationVisitor |
visitAnnotation(String descriptor,
boolean visible) |
AnnotationVisitor |
visitAnnotationDefault() |
void |
visitEnd() |
void |
visitLabel(Label label) |
void |
visitLocalVariable(String name,
String descriptor,
String signature,
Label start,
Label end,
int index) |
void |
visitParameter(String name,
int modifiers) |
AnnotationVisitor |
visitParameterAnnotation(int index,
String descriptor,
boolean visible) |
AnnotationVisitor |
visitTypeAnnotation(int rawTypeReference,
TypePath typePath,
String descriptor,
boolean visible) |
visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLdcInsn, visitLineNumber, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeInsn, visitVarInsnprotected MethodExtractor(int modifiers,
String internalName,
String descriptor,
String genericSignature,
String[] exceptionName)
modifiers - The modifiers found for this method.internalName - The internal name found for this method.descriptor - The descriptor found for this method.genericSignature - The generic signature of the method or null if it is not generic.exceptionName - An array of internal names of the exceptions of the found method
or null if there are no such exceptions.public AnnotationVisitor visitTypeAnnotation(int rawTypeReference, TypePath typePath, String descriptor, boolean visible)
visitTypeAnnotation in class MethodVisitorpublic AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
visitAnnotation in class MethodVisitorpublic void visitAnnotableParameterCount(int count,
boolean visible)
visitAnnotableParameterCount in class MethodVisitorpublic AnnotationVisitor visitParameterAnnotation(int index, String descriptor, boolean visible)
visitParameterAnnotation in class MethodVisitorpublic void visitLabel(Label label)
visitLabel in class MethodVisitorpublic void visitLocalVariable(String name, String descriptor, String signature, Label start, Label end, int index)
visitLocalVariable in class MethodVisitorpublic void visitParameter(String name, int modifiers)
visitParameter in class MethodVisitorpublic AnnotationVisitor visitAnnotationDefault()
visitAnnotationDefault in class MethodVisitorpublic void register(String ignored, AnnotationValue<?,?> annotationValue)
register in interface TypePool.Default.AnnotationRegistrantignored - The name of the annotation value.annotationValue - The value of the annotation.public void onComplete()
onComplete in interface TypePool.Default.AnnotationRegistrantpublic void visitEnd()
visitEnd in class MethodVisitorCopyright © 2014–2019. All rights reserved.