public class JvmStaticFieldLocation extends JvmMemoryLocation
JvmStaticFieldLocation is a memory location corresponding to a public static field.| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
fqn |
| Constructor and Description |
|---|
JvmStaticFieldLocation(java.lang.String fqn)
Create a static field 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 JvmStaticFieldLocation(java.lang.String fqn)
fqn - a fully qualified namepublic <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