Class BytecodeUnknownAttribute
- java.lang.Object
-
- org.eolang.jeo.representation.bytecode.BytecodeUnknownAttribute
-
- All Implemented Interfaces:
BytecodeAttribute
public final class BytecodeUnknownAttribute extends Object implements BytecodeAttribute
Unknown custom attribute.- Since:
- 0.15.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.jeo.representation.bytecode.BytecodeAttribute
BytecodeAttribute.EnclosingMethod, BytecodeAttribute.NestHost, BytecodeAttribute.NestMembers, BytecodeAttribute.PermittedSubclasses, BytecodeAttribute.RecordComponents, BytecodeAttribute.SourceFile
-
-
Constructor Summary
Constructors Constructor Description BytecodeUnknownAttribute(String type, byte[] data)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<org.xembly.Directive>
directives(int index, Format format)
Converts to directives.void
write(org.objectweb.asm.ClassVisitor clazz)
Write to class.void
write(org.objectweb.asm.MethodVisitor method, AsmLabels labels)
Write to method.
-
-
-
Constructor Detail
-
BytecodeUnknownAttribute
public BytecodeUnknownAttribute(String type, byte[] data)
Constructor.- Parameters:
type
- Type of the attribute.data
- Data of the attribute.
-
-
Method Detail
-
write
public void write(org.objectweb.asm.ClassVisitor clazz)
Description copied from interface:BytecodeAttribute
Write to class.- Specified by:
write
in interfaceBytecodeAttribute
- Parameters:
clazz
- Bytecode where to write.
-
write
public void write(org.objectweb.asm.MethodVisitor method, AsmLabels labels)
Description copied from interface:BytecodeAttribute
Write to method.- Specified by:
write
in interfaceBytecodeAttribute
- Parameters:
method
- Bytecode where to write.labels
- Method labels.
-
directives
public Iterable<org.xembly.Directive> directives(int index, Format format)
Description copied from interface:BytecodeAttribute
Converts to directives.- Specified by:
directives
in interfaceBytecodeAttribute
- Parameters:
index
- Index of the attribute.format
- Format of the directives.- Returns:
- Directives.
-
-