Enum AsmClassWriter.Factory.Default.EmptyAsmClassReader
java.lang.Object
java.lang.Enum<AsmClassWriter.Factory.Default.EmptyAsmClassReader>
net.bytebuddy.utility.AsmClassWriter.Factory.Default.EmptyAsmClassReader
- All Implemented Interfaces:
Serializable, Comparable<AsmClassWriter.Factory.Default.EmptyAsmClassReader>, java.lang.constant.Constable, AsmClassReader
- Enclosing class:
AsmClassWriter.Factory.Default
protected static enum AsmClassWriter.Factory.Default.EmptyAsmClassReader
extends Enum<AsmClassWriter.Factory.Default.EmptyAsmClassReader>
implements AsmClassReader
An empty class reader for ASM that never unwraps an underlying implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface AsmClassReader
AsmClassReader.Factory, AsmClassReader.ForAsm, AsmClassReader.ForClassFileApi -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface AsmClassReader
NO_ATTRIBUTES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(org.objectweb.asm.ClassVisitor classVisitor, int flags) Accepts a class visitor to read a class.Returns the internal names of the represented class's interfaces.Returns the internal name of the represented class.intReturns the modifiers of the represented class.Returns the internal name of the represented class's super class, ornullif no such class exists.<T> TUnwraps a class reader to the underlying reader mechanism.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
EmptyAsmClassReader
private EmptyAsmClassReader()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toWriter
-
unwrap
Unwraps a class reader to the underlying reader mechanism.- Specified by:
unwrapin interfaceAsmClassReader- Type Parameters:
T- The type to unwrap.- Parameters:
type- The type of the reader that should be unwrapped.- Returns:
- The unwrapped instance or
nullif the underlying instance does not represent this type.
-
getModifiers
public int getModifiers()Returns the modifiers of the represented class. The property is read, if possible, without parsing the entire class file.- Specified by:
getModifiersin interfaceAsmClassReader- Returns:
- The modifiers of the represented class.
-
getInternalName
Returns the internal name of the represented class. The property is read, if possible, without parsing the entire class file.- Specified by:
getInternalNamein interfaceAsmClassReader- Returns:
- The internal name of the represented class.
-
getSuperClassInternalName
Returns the internal name of the represented class's super class, ornullif no such class exists. The property is read, if possible, without parsing the entire class file.- Specified by:
getSuperClassInternalNamein interfaceAsmClassReader- Returns:
- The internal name of the represented class's super class, or
nullif no such class exists.
-
getInterfaceInternalNames
Returns the internal names of the represented class's interfaces. The property is read, if possible, without parsing the entire class file.- Specified by:
getInterfaceInternalNamesin interfaceAsmClassReader- Returns:
- Returns the internal names of the represented class's interfaces.
-
accept
public void accept(org.objectweb.asm.ClassVisitor classVisitor, int flags) Accepts a class visitor to read a class.- Specified by:
acceptin interfaceAsmClassReader- 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.
-