final class SimpleMetadataReader extends java.lang.Object implements MetadataReader
MetadataReader
implementation based on an ASM
ClassReader
.
Package-visible in order to allow for repackaging the ASM library
without effect on users of the core.type
package.
Modifier and Type | Field and Description |
---|---|
private AnnotationMetadata |
annotationMetadata |
private ClassMetadata |
classMetadata |
private Resource |
resource |
Constructor and Description |
---|
SimpleMetadataReader(Resource resource,
java.lang.ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
AnnotationMetadata |
getAnnotationMetadata()
Read full annotation metadata for the underlying class,
including metadata for annotated methods.
|
ClassMetadata |
getClassMetadata()
Read basic class metadata for the underlying class.
|
Resource |
getResource()
Return the resource reference for the class file.
|
private final Resource resource
private final ClassMetadata classMetadata
private final AnnotationMetadata annotationMetadata
SimpleMetadataReader(Resource resource, java.lang.ClassLoader classLoader) throws java.io.IOException
java.io.IOException
public Resource getResource()
MetadataReader
getResource
in interface MetadataReader
public ClassMetadata getClassMetadata()
MetadataReader
getClassMetadata
in interface MetadataReader
public AnnotationMetadata getAnnotationMetadata()
MetadataReader
getAnnotationMetadata
in interface MetadataReader