类 BasicValue

java.lang.Object
cn.taketoday.bytecode.tree.analysis.BasicValue
所有已实现的接口:
Value

public class BasicValue extends Object implements Value
A Value that is represented with its type in a seven types type system. This type system distinguishes the UNINITIALZED, INT, FLOAT, LONG, DOUBLE, REFERENCE and RETURNADDRESS types.
作者:
Eric Bruneton
  • 字段详细资料

    • UNINITIALIZED_VALUE

      public static final BasicValue UNINITIALIZED_VALUE
      An uninitialized value.
    • INT_VALUE

      public static final BasicValue INT_VALUE
      A byte, boolean, char, short, or int value.
    • FLOAT_VALUE

      public static final BasicValue FLOAT_VALUE
      A float value.
    • LONG_VALUE

      public static final BasicValue LONG_VALUE
      A long value.
    • DOUBLE_VALUE

      public static final BasicValue DOUBLE_VALUE
      A double value.
    • REFERENCE_VALUE

      public static final BasicValue REFERENCE_VALUE
      An object or array reference value.
    • RETURNADDRESS_VALUE

      public static final BasicValue RETURNADDRESS_VALUE
      A return address value (produced by a jsr instruction).
  • 构造器详细资料

    • BasicValue

      public BasicValue(Type type)
      Constructs a new BasicValue of the given type.
      参数:
      type - the value type.
  • 方法详细资料

    • getType

      public Type getType()
      Returns the Type of this value.
      返回:
      the Type of this value.
    • getSize

      public int getSize()
      从接口复制的说明: Value
      Returns the size of this value in 32 bits words. This size should be 1 for byte, boolean, char, short, int, float, object and array types, and 2 for long and double.
      指定者:
      getSize 在接口中 Value
      返回:
      either 1 or 2.
    • isReference

      public boolean isReference()
      Returns whether this value corresponds to an object or array reference.
      返回:
      whether this value corresponds to an object or array reference.
    • equals

      public boolean equals(Object value)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object