Class BytecodeObject

java.lang.Object
org.eolang.jeo.representation.bytecode.BytecodeObject

public final class BytecodeObject extends Object
Bytecode value. Represents a typed value in bytecode format.
Since:
0.6
  • Constructor Details

    • BytecodeObject

      public BytecodeObject(Object value)
      Constructor.
      Parameters:
      value - Value.
  • Method Details

    • type

      public String type()
      Retrieve the type of the value.
      Returns:
      Type.
    • value

      public Object value()
      Retrieve the value.
      Returns:
      Value.
    • encode

      public byte[] encode(Codec codec)
      Retrieve the bytes of the value.
      Parameters:
      codec - Codec.
      Returns:
      Bytes.