| Modifier and Type | Class and Description |
|---|---|
| public class | MetadataAsmFactory.ClassMetadataVisitor
Walk the class byte codes and collect the class info. |
| pack-priv class | MetadataAsmFactory.MetadataAnnotationArrayVisitor
Specialized visitor to handle the population of arrays of annotation values. |
| pack-priv class | MetadataAsmFactory.MetadataAnnotationVisitor
|
| pack-priv class | MetadataAsmFactory.MetadataFieldVisitor
Factory for the creation of |
| pack-priv class | MetadataAsmFactory.MetadataMethodVisitor
Factory for the creation of |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | PRIMITIVES
Set of primitive type codes. |
| public static final String | TOKENS
Set of desc token characters. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Object | annotationValue(String description, Object value)
Convert the annotation value into the value used in the meta model |
| protected void | buildClassMetadata(MetadataClass metadataClass, String className, boolean isLazy)
Build the class metadata for the class name using ASM to read the class byte codes. |
| public MetadataClass | getMetadataClass(String className)
Implements abstract org. |
| public MetadataClass | getMetadataClass(String className, boolean isLazy)
Implements abstract org. |
| private static String | |
| private MetadataClass | Returns: MetadataClassclass which has not been found className)Get MetadataClass for a class which can not be found |
| private static List | processDescription(String desc, boolean isGeneric)
Process the byte-code argument description and return the array of Java class names. |
| private InputStream | |
| public void | resolveGenericTypes(MetadataClass child, List<String> genericTypes, MetadataClass parent, MetadataDescriptor descriptor)
Implements abstract org. |
| private static String |
| PRIMITIVES | back to summary |
|---|---|
| public static final String PRIMITIVES Set of primitive type codes. | |
| TOKENS | back to summary |
|---|---|
| public static final String TOKENS Set of desc token characters. | |
| MetadataAsmFactory | back to summary |
|---|---|
| public MetadataAsmFactory(MetadataLogger logger, ClassLoader loader) INTERNAL: | |
| annotationValue | back to summary |
|---|---|
| private static Object annotationValue(String description, Object value) Convert the annotation value into the value used in the meta model | |
| buildClassMetadata | back to summary |
|---|---|
| protected void buildClassMetadata(MetadataClass metadataClass, String className, boolean isLazy) Build the class metadata for the class name using ASM to read the class byte codes. | |
| getMetadataClass | back to summary |
|---|---|
| public MetadataClass getMetadataClass(String className) Implements abstract org. Return the class metadata for the class name.
| |
| getMetadataClass | back to summary |
|---|---|
| public MetadataClass getMetadataClass(String className, boolean isLazy) Implements abstract org. Return the class metadata for the class name.
| |
| getPrimitiveName | back to summary |
|---|---|
| private static String getPrimitiveName(char primitive) Return the Java type name for the primitive code. | |
| getVirtualMetadataClass | back to summary |
|---|---|
| private MetadataClass getVirtualMetadataClass(String className) Get MetadataClass for a class which can not be found
| |
| processDescription | back to summary |
|---|---|
| private static List Process the byte-code argument description and return the array of Java class names. i.e. "(Lorg/foo/Bar;Z)Ljava/lang/Boolean;"=>[org.foo.Bar,boolean ,java.lang.Boolean] | |
| readResource | back to summary |
|---|---|
| private InputStream readResource(String name) | |
| resolveGenericTypes | back to summary |
|---|---|
| public void resolveGenericTypes(MetadataClass child, List<String> genericTypes, MetadataClass parent, MetadataDescriptor descriptor) Implements abstract org. INTERNAL: This method resolves generic types based on the ASM class metadata. Unless every other factory (e.g. APT mirror factory) respects the generic format as built from ASM this method will not work since it is very tied to it.
| |
| toClassName | back to summary |
|---|---|
| private static String toClassName(String classDescription) | |
| Modifier and Type | Field and Description |
|---|---|
| private MetadataClass | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public AnnotationVisitor | visitAnnotation(String desc, boolean visible)
Implements abstract org. |
| public void | |
| public FieldVisitor | visitField(int access, String name, String desc, String signature, Object value)
Overrides org. |
| public MethodVisitor | visitMethod(int access, String name, String desc, String signature, String[] exceptions)
Overrides org. |
| classMetadata | back to summary |
|---|---|
| private MetadataClass classMetadata | |
| isLazy | back to summary |
|---|---|
| private boolean isLazy | |
| processedMemeber | back to summary |
|---|---|
| private boolean processedMemeber | |
| ClassMetadataVisitor | back to summary |
|---|---|
| pack-priv ClassMetadataVisitor(MetadataClass metadataClass, boolean isLazy) | |
| visit | back to summary |
|---|---|
| public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) Overrides org.
| |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(String desc, boolean visible) Implements abstract org.
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org.
| |
| visitField | back to summary |
|---|---|
| public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) Overrides org.
| |
| visitMethod | back to summary |
|---|---|
| public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) Overrides org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private MetadataAnnotation | |
| private String | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | visit(String name, Object value)
Overrides org. |
| public AnnotationVisitor | visitAnnotation(String name, String desc)
Overrides org. |
| public void | |
| public void | visitEnum(String name, String desc, String value)
Overrides org. |
| annotation | back to summary |
|---|---|
| private MetadataAnnotation annotation | |
| attributeName | back to summary |
|---|---|
| private String attributeName | |
| values | back to summary |
|---|---|
| private List<Object> values | |
| MetadataAnnotationArrayVisitor | back to summary |
|---|---|
| public MetadataAnnotationArrayVisitor(MetadataAnnotation annotation, String name) | |
| visit | back to summary |
|---|---|
| public void visit(String name, Object value) Overrides org.
| |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(String name, String desc) Overrides org.
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org.
| |
| visitEnum | back to summary |
|---|---|
| public void visitEnum(String name, String desc, String value) Overrides org.
| |
AnnotationVisitor used to process class, field , and method
annotations populating a MetadataAnnotation and its nested state.
| Modifier and Type | Field and Description |
|---|---|
| private MetadataAnnotation | annotation
|
| private MetadataAnnotatedElement | element
Element the annotation is being applied to. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | visit(String name, Object value)
Overrides org. |
| public AnnotationVisitor | visitAnnotation(String name, String desc)
Overrides org. |
| public AnnotationVisitor | |
| public void | |
| public void | visitEnum(String name, String desc, String value)
Overrides org. |
| annotation | back to summary |
|---|---|
| private MetadataAnnotation annotation
| |
| element | back to summary |
|---|---|
| private MetadataAnnotatedElement element Element the annotation is being applied to. If this is null the
| |
| MetadataAnnotationVisitor | back to summary |
|---|---|
| pack-priv MetadataAnnotationVisitor(MetadataAnnotatedElement element, String name) | |
| MetadataAnnotationVisitor | back to summary |
|---|---|
| pack-priv MetadataAnnotationVisitor(MetadataAnnotatedElement element, String name, boolean isRegular) | |
| MetadataAnnotationVisitor | back to summary |
|---|---|
| public MetadataAnnotationVisitor(MetadataAnnotation annotation) | |
| visit | back to summary |
|---|---|
| public void visit(String name, Object value) Overrides org.
| |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(String name, String desc) Overrides org.
| |
| visitArray | back to summary |
|---|---|
| public AnnotationVisitor visitArray(String name) Overrides org.
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org.
| |
| visitEnum | back to summary |
|---|---|
| public void visitEnum(String name, String desc, String value) Overrides org.
| |
MetadataField handling basic type,
generics, and annotations.
| Modifier and Type | Field and Description |
|---|---|
| private MetadataField |
| Access | Constructor and Description |
|---|---|
| public | MetadataFieldVisitor(MetadataClass classMetadata, int access, String name, String desc, String signature, Object value)
|
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationVisitor | visitAnnotation(String desc, boolean visible)
Overrides org. |
| public void |
| field | back to summary |
|---|---|
| private MetadataField field | |
| MetadataFieldVisitor | back to summary |
|---|---|
| public MetadataFieldVisitor(MetadataClass classMetadata, int access, String name, String desc, String signature, Object value) | |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(String desc, boolean visible) Overrides org.
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org.
| |
MetadataMethod handling basic type,
generics, and annotations.
| Modifier and Type | Field and Description |
|---|---|
| private MetadataMethod |
| Access | Constructor and Description |
|---|---|
| public | MetadataMethodVisitor(MetadataClass classMetadata, int access, String name, String desc, String signature, String[] exceptions)
|
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationVisitor | visitAnnotation(String desc, boolean visible)
Overrides org. |
| public void | |
| public void | visitEnd()
Overrides org. MetadataClass and handle duplicate method names by chaining
them.
|
| method | back to summary |
|---|---|
| private MetadataMethod method | |
| MetadataMethodVisitor | back to summary |
|---|---|
| public MetadataMethodVisitor(MetadataClass classMetadata, int access, String name, String desc, String signature, String[] exceptions) | |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(String desc, boolean visible) Overrides org.
| |
| visitAttribute | back to summary |
|---|---|
| public void visitAttribute(Attribute attr) Overrides org.
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. At the end of visiting this method add it to the
| |