Class AsmUnknownAttributes
- java.lang.Object
-
- org.eolang.jeo.representation.asm.AsmUnknownAttributes
-
public final class AsmUnknownAttributes extends Object
ASM custom attributes.- Since:
- 0.15.0
-
-
Constructor Summary
Constructors Constructor Description AsmUnknownAttributes(org.objectweb.asm.tree.ClassNode node)Constructor.AsmUnknownAttributes(org.objectweb.asm.tree.FieldNode node)Constructor.AsmUnknownAttributes(org.objectweb.asm.tree.MethodNode node)Constructor.AsmUnknownAttributes(org.objectweb.asm.tree.RecordComponentNode node)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BytecodeAttribute>bytecode()Convert to domain bytecode representation.static org.objectweb.asm.Attribute[]prototypes()All prototypes of custom attributes.
-
-
-
Constructor Detail
-
AsmUnknownAttributes
public AsmUnknownAttributes(org.objectweb.asm.tree.ClassNode node)
Constructor.- Parameters:
node- Class node.
-
AsmUnknownAttributes
public AsmUnknownAttributes(org.objectweb.asm.tree.FieldNode node)
Constructor.- Parameters:
node- Field node.
-
AsmUnknownAttributes
public AsmUnknownAttributes(org.objectweb.asm.tree.MethodNode node)
Constructor.- Parameters:
node- Method node.
-
AsmUnknownAttributes
public AsmUnknownAttributes(org.objectweb.asm.tree.RecordComponentNode node)
Constructor.- Parameters:
node- Record component node.
-
-
Method Detail
-
prototypes
public static org.objectweb.asm.Attribute[] prototypes()
All prototypes of custom attributes. Pay Attention! We don't have `ScalaInlineInfo` here because this attribute requires special handling. Actually, we should rebuild `ScalaInlineInfo` after rebuilding the constant pool. Since we can't rebuild the `ScalaInlineInfo` attribute, we simply ignore it.- Returns:
- All prototypes of custom attributes.
-
bytecode
public List<BytecodeAttribute> bytecode()
Convert to domain bytecode representation.- Returns:
- Bytecode representation.
-
-