public class JvmLocalVariableLocation extends JvmMemoryLocation
JvmLocalVariableLocation is a memory location at the local variable array.| Modifier and Type | Field and Description |
|---|---|
int |
index |
| Constructor and Description |
|---|
JvmLocalVariableLocation(int index)
Create a local variable location.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
<T extends AbstractState<T>> |
extractValueOrDefault(JvmAbstractState<T> jvmState,
T defaultValue)
Given a JVM state, extract its content in the position represented by this
JvmMemoryLocation. |
int |
hashCode() |
java.lang.String |
toString() |
public JvmLocalVariableLocation(int index)
index - a position at the local variable arraypublic <T extends AbstractState<T>> T extractValueOrDefault(JvmAbstractState<T> jvmState, T defaultValue)
JvmMemoryLocationJvmMemoryLocation.extractValueOrDefault in class JvmMemoryLocationT - The type of the states contained in the JVM state. e.g., for taint analysis this
would be a SetAbstractState containing the taints
and for value analysis a ValueAbstractState.jvmState - The state from which the value is extracted.defaultValue - The value returned if it's not possible to extract the value.public boolean equals(java.lang.Object obj)
equals in class JvmMemoryLocationpublic int hashCode()
hashCode in class JvmMemoryLocationpublic java.lang.String toString()
toString in class JvmMemoryLocation