public interface AsmClassReader
ClassVisitor
instances and reader flags.Modifier and Type | Interface and Description |
---|---|
static interface |
AsmClassReader.Factory
A factory to create a
AsmClassReader . |
static class |
AsmClassReader.ForAsm
A class reader for ASM's own
ClassReader . |
static class |
AsmClassReader.ForClassFileApi
A class reader that is based upon the Class File API.
|
Modifier and Type | Field and Description |
---|---|
static Attribute[] |
NO_ATTRIBUTES
Indicates that no custom attributes should be mapped.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ClassVisitor classVisitor,
int flags)
Accepts a class visitor to read a class.
|
List<String> |
getInterfaceInternalNames()
Returns the internal names of the represented class's interfaces.
|
String |
getInternalName()
Returns the internal name of the represented class.
|
int |
getModifiers()
Returns the modifiers of the represented class.
|
String |
getSuperClassInternalName()
Returns the internal name of the represented class's super class, or
null if no such class exists. |
<T> T |
unwrap(Class<T> type)
Unwraps a class reader to the underlying reader mechanism.
|
static final Attribute[] NO_ATTRIBUTES
@MaybeNull <T> T unwrap(Class<T> type)
T
- The type to unwrap.type
- The type of the reader that should be unwrapped.null
if the underlying instance does not represent this type.int getModifiers()
String getInternalName()
@MaybeNull String getSuperClassInternalName()
null
if no such class exists.
The property is read, if possible, without parsing the entire class file.null
if no such class exists.List<String> getInterfaceInternalNames()
void accept(ClassVisitor classVisitor, int flags)
classVisitor
- The class visitor who should be used as a callback for a class file.flags
- The flags to consider while reading a class.Copyright © 2014–2025. All rights reserved.