public class CustomAnnotationVisitor
extends org.objectweb.asm.commons.EmptyVisitor
implements org.objectweb.asm.AnnotationVisitor
Constructor and Description |
---|
CustomAnnotationVisitor(org.apache.felix.ipojo.metadata.Element elem,
MetadataCollector collector,
boolean root,
boolean clazz)
Constructor.
|
CustomAnnotationVisitor(org.apache.felix.ipojo.metadata.Element elem,
MetadataCollector collector,
boolean root,
boolean clazz,
int index,
String descriptor)
Constructor used for parameter annotations
|
Modifier and Type | Method and Description |
---|---|
static org.apache.felix.ipojo.metadata.Element |
buildElement(String desc)
Build the element object from the given descriptor.
|
static boolean |
isCustomAnnotation(String desc)
Check if the given annotation descriptor is an iPOJO custom annotation.
|
void |
visit(String arg0,
Object arg1)
Visit a 'simple' annotation attribute.
|
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(String arg0,
String arg1)
Visit a sub-annotation.
|
org.objectweb.asm.AnnotationVisitor |
visitArray(String arg0)
Visit an array attribute.
|
void |
visitEnd()
End of the visit.
|
void |
visitEnum(String arg0,
String arg1,
String arg2)
Visits an enumeration attribute.
|
visit, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitField, visitFieldInsn, visitFrame, visitIincInsn, visitInnerClass, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethod, visitMethodInsn, visitMultiANewArrayInsn, visitOuterClass, visitParameterAnnotation, visitSource, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
public CustomAnnotationVisitor(org.apache.felix.ipojo.metadata.Element elem, MetadataCollector collector, boolean root, boolean clazz)
elem
- the parent elementcollector
- the metadata collectorroot
- is the annotation a rootclazz
- the annotation is a class annotation.public CustomAnnotationVisitor(org.apache.felix.ipojo.metadata.Element elem, MetadataCollector collector, boolean root, boolean clazz, int index, String descriptor)
elem
- the parent elementcollector
- the metadata collectorroot
- is the annotation a rootclazz
- the annotation is a class annotation.index
- the index of the argumentthe
- descriptor of the methodpublic static boolean isCustomAnnotation(String desc)
desc
- : annotation descriptorpublic static org.apache.felix.ipojo.metadata.Element buildElement(String desc)
desc
- : annotation descriptorpublic void visit(String arg0, Object arg1)
visit
in interface org.objectweb.asm.AnnotationVisitor
visit
in class org.objectweb.asm.commons.EmptyVisitor
arg0
- : attribute namearg1
- : attribute valueEmptyVisitor.visit(java.lang.String, java.lang.Object)
public org.objectweb.asm.AnnotationVisitor visitAnnotation(String arg0, String arg1)
visitAnnotation
in interface org.objectweb.asm.AnnotationVisitor
visitAnnotation
in class org.objectweb.asm.commons.EmptyVisitor
arg0
- : attribute name.arg1
- : annotation descriptionEmptyVisitor.visitAnnotation(java.lang.String, java.lang.String)
public org.objectweb.asm.AnnotationVisitor visitArray(String arg0)
visitArray
in interface org.objectweb.asm.AnnotationVisitor
visitArray
in class org.objectweb.asm.commons.EmptyVisitor
arg0
- : attribute nameEmptyVisitor.visitArray(java.lang.String)
public void visitEnum(String arg0, String arg1, String arg2)
visitEnum
in interface org.objectweb.asm.AnnotationVisitor
visitEnum
in class org.objectweb.asm.commons.EmptyVisitor
arg0
- the attribute namearg1
- the enumeration descriptorarg2
- the attribute valueAnnotationVisitor.visitEnum(java.lang.String, java.lang.String, java.lang.String)
public void visitEnd()
visitEnd
in interface org.objectweb.asm.AnnotationVisitor
visitEnd
in interface org.objectweb.asm.ClassVisitor
visitEnd
in interface org.objectweb.asm.FieldVisitor
visitEnd
in interface org.objectweb.asm.MethodVisitor
visitEnd
in class org.objectweb.asm.commons.EmptyVisitor
EmptyVisitor.visitEnd()
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.