Package org.objectweb.asm.tree.analysis
Class SourceValue
- java.lang.Object
-
- org.objectweb.asm.tree.analysis.SourceValue
-
-
Constructor Summary
Constructors Constructor Description SourceValue(int size)
Constructs a newSourceValue
.SourceValue(int size, java.util.Set<org.objectweb.asm.tree.AbstractInsnNode> insnSet)
Constructs a newSourceValue
.SourceValue(int size, org.objectweb.asm.tree.AbstractInsnNode insnNode)
Constructs a newSourceValue
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object value)
int
getSize()
Returns the size of this value.int
hashCode()
-
-
-
Field Detail
-
size
public final int 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.
-
insns
public final java.util.Set<org.objectweb.asm.tree.AbstractInsnNode> insns
The instructions that can produce this value. For example, for the Java code below, the instructions that can produce the value ofi
at line 5 are the two ISTORE instructions at line 1 and 3:1: i = 0; 2: if (...) { 3: i = 1; 4: } 5: return i;
-
-
Constructor Detail
-
SourceValue
public SourceValue(int size)
Constructs a newSourceValue
.- Parameters:
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
public SourceValue(int size, org.objectweb.asm.tree.AbstractInsnNode insnNode)
Constructs a newSourceValue
.- Parameters:
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
public SourceValue(int size, java.util.Set<org.objectweb.asm.tree.AbstractInsnNode> insnSet)
Constructs a newSourceValue
.- Parameters:
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.
-
-