public class Field extends Object implements SettableValue
| Constructor and Description |
|---|
Field(Type type,
Value originValue,
SelectorLabel selectorLabel) |
| Modifier and Type | Method and Description |
|---|---|
ConcreteValue |
evaluateOn(ProgramState programState)
evaluates the expression defining the origin and gets the element referenced by
the field starting at this origin element.
|
ViolationPoints |
getPotentialViolationPoints() |
Type |
getType() |
boolean |
needsMaterialization(ProgramState programState) |
void |
setValue(ProgramState programState,
ConcreteValue concreteTarget)
Sets the value of the field in programState to concreteTarget.
|
String |
toString()
"origin.field"
|
public Field(Type type, Value originValue, SelectorLabel selectorLabel)
public ConcreteValue evaluateOn(ProgramState programState) throws NullPointerDereferenceException
evaluateOn in interface ValueNullPointerDereferenceExceptionpublic void setValue(ProgramState programState, ConcreteValue concreteTarget) throws NullPointerDereferenceException
setValue in interface SettableValueprogramState - the heap on which the assignment is performedconcreteTarget - the value that is assigned to the heapNullPointerDereferenceException - if the evaluation of the originValue
results in a null pointer dereference.public boolean needsMaterialization(ProgramState programState)
needsMaterialization in interface Valuepublic ViolationPoints getPotentialViolationPoints()
getPotentialViolationPoints in interface ValueCopyright © 2018. All rights reserved.