Package net.bytebuddy.utility
Interface AsmClassReader
-
- All Known Implementing Classes:
AsmClassReader.Default
public interface AsmClassReader
A facade for creating a class reader that acceptsClassVisitor
instances and reader flags.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AsmClassReader.Default
A class reader for ASM's defaultClassReader
.static interface
AsmClassReader.Factory
A factory to create aAsmClassReader
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(org.objectweb.asm.ClassVisitor classVisitor, int flags)
Accepts a class visitor to read a class.<T> T
unwrap(java.lang.Class<T> type)
Unwraps a class reader to the underlying reader mechanism.
-
-
-
Method Detail
-
unwrap
@MaybeNull <T> T unwrap(java.lang.Class<T> type)
Unwraps a class reader to the underlying reader mechanism.- Type Parameters:
T
- The type to unwrap.- Parameters:
type
- The type of the reader that should be unwrapped.- Returns:
- The unwrapped instance or
null
if the underlying instance does not represent this type.
-
accept
void accept(org.objectweb.asm.ClassVisitor classVisitor, int flags)
Accepts a class visitor to read a class.- Parameters:
classVisitor
- The class visitor who should be used as a callback for a class file.flags
- The flags to consider while reading a class.
-
-