Class ObjectValue<T,K>
java.lang.Object
de.uzl.its.swat.symbolic.value.Value<T,K>
de.uzl.its.swat.symbolic.value.reference.ObjectValue<T,K>
- Direct Known Subclasses:
AbstractArrayValue,CharacterObjectValue,DoubleObjectValue,EnumerationValue,FloatObjectValue,IntegerObjectValue,LambdaObjectValue,ListValue,LongObjectValue,ObjectArrayValue,StringBuilderValue,StringValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionObjectValue(org.sosy_lab.java_smt.api.SolverContext context, int unused, int v) ObjectValue(org.sosy_lab.java_smt.api.SolverContext context, String className, IntValue nFields) -
Method Summary
Modifier and TypeMethodDescriptionAbstractArrayValue<?,?, ?, ?, ?> ObjectValue<?,?> booleanintValue<?,?> getField(int fieldId) Value<?,?>[] org.sosy_lab.java_smt.api.BooleanFormulaIF_ACMPEQ(ObjectValue o2) Compares if two references are identicalorg.sosy_lab.java_smt.api.BooleanFormulaIF_ACMPNE(ObjectValue o2) Compares if two references are not identicalorg.sosy_lab.java_smt.api.BooleanFormulaCompares if this reference is not the null value NULL is represented by the address 0org.sosy_lab.java_smt.api.BooleanFormulaIFNULL()Compares if this reference is the null value; NULL is represented by the address 0Value<?,?> invokeMethod(String name, org.objectweb.asm.Type[] desc, Value<?, ?>[] args) MAKE_SYMBOLIC(String namePrefix) voidsetAddress(int address) voidvoidtoString()Returns the string representation of the value.Methods inherited from class de.uzl.its.swat.symbolic.value.Value
asBooleanValue, asByteValue, asCharValue, asDoubleValue, asLongValue, asNumericalValue, asShortValue, asStringValue, getBounds, getConcreteEncoded, getName, getType, initSymbolic, initSymbolic, MAKE_SYMBOLIC, reset
-
Field Details
-
ADDRESS_UNKNOWN
public static final int ADDRESS_UNKNOWN- See Also:
-
className
-
address
protected int address
-
-
Constructor Details
-
ObjectValue
public ObjectValue(org.sosy_lab.java_smt.api.SolverContext context, int unused, int v) -
ObjectValue
-
-
Method Details
-
setFields
-
getFields
-
MAKE_SYMBOLIC
- Overrides:
MAKE_SYMBOLICin classValue<T,K>
-
MAKE_SYMBOLIC
- Overrides:
MAKE_SYMBOLICin classValue<T,K>
-
equals
-
getnFields
-
getAddress
public int getAddress() -
getConcrete
- Overrides:
getConcretein classValue<T,K>
-
IF_ACMPEQ
Compares if two references are identical- Parameters:
o2- The other object- Returns:
- A BooleanValue representing the result
-
IF_ACMPNE
Compares if two references are not identical- Parameters:
o2- The other object- Returns:
- A BooleanFormula representing the result
-
IFNULL
public org.sosy_lab.java_smt.api.BooleanFormula IFNULL()Compares if this reference is the null value; NULL is represented by the address 0- Returns:
- A BooleanFormula representing the result
-
IFNONNULL
public org.sosy_lab.java_smt.api.BooleanFormula IFNONNULL()Compares if this reference is not the null value NULL is represented by the address 0- Returns:
- A BooleanFormula representing the result
-
getField
-
setField
-
setAddress
public void setAddress(int address) -
invokeMethod
-
asObjectValue
- Overrides:
asObjectValuein classValue<T,K>
-
asFloatValue
- Overrides:
asFloatValuein classValue<T,K>
-
asArrayValue
-
asObjectArrayValue
-
asIntValue
- Overrides:
asIntValuein classValue<T,K>
-
toString
Description copied from class:ValueReturns the string representation of the value. Should be implemented by each inheriting class.
-