@HashCodeAndEqualsPlugin.Enhance public static class AsmClassReader.ForClassFileApi extends Object implements AsmClassReader
Modifier and Type | Class and Description |
---|---|
protected static interface |
AsmClassReader.ForClassFileApi.JdkClassReader
A dispatcher to interact with
codes.rafael.asmjdkbridge.JdkClassReader . |
AsmClassReader.Factory, AsmClassReader.ForAsm, AsmClassReader.ForClassFileApi
Modifier and Type | Field and Description |
---|---|
protected static AsmClassReader.ForClassFileApi.JdkClassReader |
DISPATCHER
A dispatcher to interact with
codes.rafael.asmjdkbridge.JdkClassReader . |
NO_ATTRIBUTES
Constructor and Description |
---|
ForClassFileApi(Object classReader)
Creates a new class reader that is based upon the Class File API.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ClassVisitor classVisitor,
int flags)
Accepts a class visitor to read a class.
|
<T> T |
unwrap(Class<T> type)
Unwraps a class reader to the underlying reader mechanism.
|
protected static final AsmClassReader.ForClassFileApi.JdkClassReader DISPATCHER
codes.rafael.asmjdkbridge.JdkClassReader
.public ForClassFileApi(Object classReader)
classReader
- The class reader that represents the class file to be read.@MaybeNull public <T> T unwrap(Class<T> type)
unwrap
in interface AsmClassReader
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.public void accept(ClassVisitor classVisitor, int flags)
accept
in interface AsmClassReader
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.