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 Details

    • 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 Details

    • 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.