|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.asm.commons.EmptyVisitor
org.apache.felix.ipojo.manipulation.annotations.CustomAnnotationVisitor
public class CustomAnnotationVisitor
Collect metadata from custom annotation.
Constructor Summary | |
---|---|
CustomAnnotationVisitor(Element elem,
MetadataCollector collector,
boolean root,
boolean clazz)
Constructor. |
|
CustomAnnotationVisitor(Element elem,
MetadataCollector collector,
boolean root,
boolean clazz,
int index,
String descriptor)
Constructor used for parameter annotations |
Method Summary | |
---|---|
static 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. |
Methods inherited from class org.objectweb.asm.commons.EmptyVisitor |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomAnnotationVisitor(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(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 methodMethod Detail |
---|
public static boolean isCustomAnnotation(String desc)
desc
- : annotation descriptor
public static Element buildElement(String desc)
desc
- : annotation descriptor
public 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 description
EmptyVisitor.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 name
EmptyVisitor.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |