类 SourceValue
java.lang.Object
cn.taketoday.bytecode.tree.analysis.SourceValue
- 所有已实现的接口:
Value
A
Value which keeps track of the bytecode instructions that can produce it.- 作者:
- Eric Bruneton
-
字段概要
字段修饰符和类型字段说明final Set<AbstractInsnNode>The instructions that can produce this value.final intThe size of this value, in 32 bits words. -
构造器概要
构造器构造器说明SourceValue(int size) Constructs a newSourceValue.SourceValue(int size, AbstractInsnNode insnNode) Constructs a newSourceValue.SourceValue(int size, Set<AbstractInsnNode> insnSet) Constructs a newSourceValue. -
方法概要
-
字段详细资料
-
size
public final int sizeThe size of this value, in 32 bits words. This size is 1 for byte, boolean, char, short, int, float, object and array types, and 2 for long and double. -
insns
The instructions that can produce this value. For example, for the Java code below, the instructions that can produce the value ofiat line 5 are the two ISTORE instructions at line 1 and 3:1: i = 0; 2: if (...) { 3: i = 1; 4: } 5: return i;
-
-
构造器详细资料
-
SourceValue
public SourceValue(int size) Constructs a newSourceValue.- 参数:
size- the size of this value, in 32 bits words. This size is 1 for byte, boolean, char, short, int, float, object and array types, and 2 for long and double.
-
SourceValue
Constructs a newSourceValue.- 参数:
size- the size of this value, in 32 bits words. This size is 1 for byte, boolean, char, short, int, float, object and array types, and 2 for long and double.insnNode- an instruction that can produce this value.
-
SourceValue
Constructs a newSourceValue.- 参数:
size- the size of this value, in 32 bits words. This size is 1 for byte, boolean, char, short, int, float, object and array types, and 2 for long and double.insnSet- the instructions that can produce this value.
-
-
方法详细资料
-
getSize
public int getSize()Returns the size of this value. -
equals
-
hashCode
public int hashCode()
-