|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.nabla.forward.analysis.TrackingValue
public class TrackingValue
A value that keep track of both instructions producing and consuming it.
Field Summary | |
---|---|
static TrackingValue |
UNINITIALIZED_VALUE
Special value for uninitialized values. |
Constructor Summary | |
---|---|
TrackingValue(org.objectweb.asm.Type type)
Build a new value without any link to instructions. |
|
TrackingValue(org.objectweb.asm.Type type,
org.objectweb.asm.tree.AbstractInsnNode producer)
Build a new value produced by a specified instruction. |
Method Summary | |
---|---|
void |
addConsumer(org.objectweb.asm.tree.AbstractInsnNode consumer)
Add a consumer for this value. |
void |
addProducer(org.objectweb.asm.tree.AbstractInsnNode producer)
Add a producer for this value. |
Set<org.objectweb.asm.tree.AbstractInsnNode> |
getConsumers()
Get the consumers for this value and all values it is merged with. |
Set<org.objectweb.asm.tree.AbstractInsnNode> |
getProducers()
Get the producers for this value and all values it is merged with. |
int |
getSize()
|
org.objectweb.asm.Type |
getType()
Get the value type. |
static void |
merge(TrackingValue value1,
TrackingValue value2)
Merge two instances. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TrackingValue UNINITIALIZED_VALUE
Constructor Detail |
---|
public TrackingValue(org.objectweb.asm.Type type)
type
- value typepublic TrackingValue(org.objectweb.asm.Type type, org.objectweb.asm.tree.AbstractInsnNode producer)
type
- value typeproducer
- producer for this valueMethod Detail |
---|
public org.objectweb.asm.Type getType()
public int getSize()
getSize
in interface org.objectweb.asm.tree.analysis.Value
public void addConsumer(org.objectweb.asm.tree.AbstractInsnNode consumer)
consumer
- consumer for this valuepublic Set<org.objectweb.asm.tree.AbstractInsnNode> getConsumers()
public void addProducer(org.objectweb.asm.tree.AbstractInsnNode producer)
producer
- producer for this valuepublic Set<org.objectweb.asm.tree.AbstractInsnNode> getProducers()
public static void merge(TrackingValue value1, TrackingValue value2)
Once merged, values share the same producers and consumers sets.
value1
- first value to mergevalue2
- second value to merge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |