Class AllocationSite
- java.lang.Object
-
- it.unive.lisa.symbolic.SymbolicExpression
-
- it.unive.lisa.symbolic.value.ValueExpression
-
- it.unive.lisa.symbolic.value.Identifier
-
- it.unive.lisa.symbolic.value.HeapLocation
-
- it.unive.lisa.analysis.impl.heap.pointbased.AllocationSite
-
public class AllocationSite extends HeapLocation
A heap identifier that track also the source location where it has been allocated and a field (optional). This class is used inPointBasedHeapandFieldSensitivePointBasedHeap.
-
-
Constructor Summary
Constructors Constructor Description AllocationSite(ExternalSet<Type> types, java.lang.String locationName, boolean isWeak, CodeLocation location)Builds an allocation site from its source code location (without field) and specifying if it is weak.AllocationSite(ExternalSet<Type> types, java.lang.String locationName, CodeLocation location)Builds a strong allocation site from its source code location (without field).AllocationSite(ExternalSet<Type> types, java.lang.String locationName, SymbolicExpression field, boolean isWeak, CodeLocation location)Builds an allocation site from its source code location and its field and specifying if it is weak.AllocationSite(ExternalSet<Type> types, java.lang.String locationName, SymbolicExpression field, CodeLocation location)Builds a strong allocation site from its source code location and its field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLocationName()Yields the code location string representation where this allocation site has been allocated.-
Methods inherited from class it.unive.lisa.symbolic.value.HeapLocation
accept, equals, hashCode, lub, popScope, pushScope, toString
-
Methods inherited from class it.unive.lisa.symbolic.value.Identifier
addAnnotation, getAnnotations, getName, isWeak
-
Methods inherited from class it.unive.lisa.symbolic.value.ValueExpression
removeNegations
-
Methods inherited from class it.unive.lisa.symbolic.SymbolicExpression
getCodeLocation, getDynamicType, getTypes
-
-
-
-
Constructor Detail
-
AllocationSite
public AllocationSite(ExternalSet<Type> types, java.lang.String locationName, CodeLocation location)
Builds a strong allocation site from its source code location (without field).- Parameters:
types- the runtime types of this allocation sitelocationName- the source code location string representation where this allocation site has been allocatedlocation- the code location of the statement that has generated this expression
-
AllocationSite
public AllocationSite(ExternalSet<Type> types, java.lang.String locationName, boolean isWeak, CodeLocation location)
Builds an allocation site from its source code location (without field) and specifying if it is weak.- Parameters:
types- the runtime types of this allocation sitelocationName- the source code location string representation where this allocation site has been allocatedisWeak- boolean value specifying if this allocation site is weaklocation- the code location of the statement that has generated this expression
-
AllocationSite
public AllocationSite(ExternalSet<Type> types, java.lang.String locationName, SymbolicExpression field, CodeLocation location)
Builds a strong allocation site from its source code location and its field.- Parameters:
types- the runtime types of this allocation sitelocationName- the source code location string representation where this allocation site has been allocatedfield- the field of this allocation sitelocation- the code location of the statement that has generated this expression
-
AllocationSite
public AllocationSite(ExternalSet<Type> types, java.lang.String locationName, SymbolicExpression field, boolean isWeak, CodeLocation location)
Builds an allocation site from its source code location and its field and specifying if it is weak.- Parameters:
types- the runtime types of this allocation sitelocationName- the source code location string representation where this allocation site has been allocatedfield- the field of this allocation siteisWeak- boolean value specifying if this allocation site is weaklocation- the code location of the statement that has generated this expression
-
-