Package it.unive.lisa.symbolic.heap
Class HeapDereference
- java.lang.Object
-
- it.unive.lisa.symbolic.SymbolicExpression
-
- it.unive.lisa.symbolic.heap.HeapExpression
-
- it.unive.lisa.symbolic.heap.HeapDereference
-
public class HeapDereference extends HeapExpression
A heap dereference expression.
-
-
Constructor Summary
Constructors Constructor Description HeapDereference(ExternalSet<Type> types, SymbolicExpression toDeref, CodeLocation location)Builds the heap dereference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(ExpressionVisitor<T> visitor, java.lang.Object... params)Accepts anExpressionVisitor, visiting this expression recursively.booleanequals(java.lang.Object obj)SymbolicExpressiongetExpression()Yields the expression to be dereferred.inthashCode()java.lang.StringtoString()-
Methods inherited from class it.unive.lisa.symbolic.heap.HeapExpression
popScope, pushScope
-
Methods inherited from class it.unive.lisa.symbolic.SymbolicExpression
getCodeLocation, getDynamicType, getTypes
-
-
-
-
Constructor Detail
-
HeapDereference
public HeapDereference(ExternalSet<Type> types, SymbolicExpression toDeref, CodeLocation location)
Builds the heap dereference.- Parameters:
types- the runtime types of this expressiontoDeref- the expression to be dereferredlocation- the code location of the statement that has generated this expression
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSymbolicExpression
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classSymbolicExpression
-
accept
public <T> T accept(ExpressionVisitor<T> visitor, java.lang.Object... params) throws SemanticException
Description copied from class:SymbolicExpressionAccepts anExpressionVisitor, visiting this expression recursively.- Specified by:
acceptin classSymbolicExpression- Type Parameters:
T- the type of value produced by the visiting callbacks- Parameters:
visitor- the visitorparams- additional optional parameters to pass to each visiting callback- Returns:
- the value produced by the visiting operation
- Throws:
SemanticException- if an error occurs during the visiting
-
getExpression
public SymbolicExpression getExpression()
Yields the expression to be dereferred.- Returns:
- the expression to be dereferred
-
toString
public java.lang.String toString()
- Specified by:
toStringin classSymbolicExpression
-
-