Class BytecodeValue

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

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

    • BytecodeValue

      public BytecodeValue(Object value)
      Constructor.
      Parameters:
      value - Value.
    • BytecodeValue

      public BytecodeValue(String type, byte[] bytes)
      Constructor.
      Parameters:
      type - Value type.
      bytes - Value bytes.
  • Method Details

    • object

      public Object object()
      Represent the value as an object.
      Returns:
      Object.
    • type

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

      public byte[] bytes()
      Retrieve the bytes of the value.
      Returns:
      Bytes.