Package it.unive.lisa.symbolic.heap
Class HeapReference
- java.lang.Object
-
- it.unive.lisa.symbolic.SymbolicExpression
-
- it.unive.lisa.symbolic.heap.HeapExpression
-
- it.unive.lisa.symbolic.heap.HeapReference
-
public class HeapReference extends HeapExpression
A reference to a memory location, identified by its name.
-
-
Constructor Summary
Constructors Constructor Description HeapReference(ExternalSet<Type> types, SymbolicExpression expression, CodeLocation location)Builds the heap reference.
-
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 referred expression.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
-
HeapReference
public HeapReference(ExternalSet<Type> types, SymbolicExpression expression, CodeLocation location)
Builds the heap reference.- Parameters:
types- the runtime types of this expressionexpression- the expression that this refers tolocation- the code location of the statement that has generated this expression
-
-
Method Detail
-
toString
public java.lang.String toString()
- Specified by:
toStringin classSymbolicExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSymbolicExpression
-
getExpression
public SymbolicExpression getExpression()
Yields the referred expression.- Returns:
- the referred expression
-
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
-
-