public static class AsmClassWriter.Factory.Default.NonRetainingAsmClassReader extends Object implements AsmClassReader
AsmClassWriter implementation.AsmClassReader.Factory, AsmClassReader.ForAsm, AsmClassReader.ForClassFileApiNO_ATTRIBUTES| Constructor and Description |
|---|
NonRetainingAsmClassReader(AsmClassReader delegate)
Creates a new non-retaining ASM class writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ClassVisitor classVisitor,
int flags)
Accepts a class visitor to read a class.
|
AsmClassWriter |
toWriter(int flags,
TypePool typePool) |
<T> T |
unwrap(Class<T> type)
Unwraps a class reader to the underlying reader mechanism.
|
public NonRetainingAsmClassReader(AsmClassReader delegate)
delegate - The delegate implementation.@MaybeNull public <T> T unwrap(Class<T> type)
unwrap in interface AsmClassReaderT - The type to unwrap.type - The type of the reader that should be unwrapped.null if the underlying instance does not represent this type.@AlwaysNull public AsmClassWriter toWriter(int flags, TypePool typePool)
public void accept(ClassVisitor classVisitor, int flags)
accept in interface AsmClassReaderclassVisitor - 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.