trait AliasSetLike[ElementType, T <: AliasSetLike[ElementType, T]] extends AnyRef
A base trait for alias sets that store the elements that an org.opalj.br.fpcf.properties.alias.AliasSourceElement can point to. It is possible to denote that the set can point to any arbitrary element if an analysis cannot limit the points-to set. This is handled by the pointsToAny and setPointsToAny() method.
- ElementType
The type of the elements that can be stored in the set.
- T
The concrete type of the alias set.
- Source
- AliasSetLike.scala
- Alphabetic
- By Inheritance
- AliasSetLike
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addPointsTo(pointsTo: ElementType): Unit
Add the given element to the set of elements the associated org.opalj.br.fpcf.properties.alias.AliasSourceElement can point to.
Add the given element to the set of elements the associated org.opalj.br.fpcf.properties.alias.AliasSourceElement can point to.
- pointsTo
The element to add to the set.
- def allPointsTo: Set[ElementType]
Returns all elements this set can point to.
Returns all elements this set can point to. Note that the returned set being empty does not imply that the isEmpty method returns
true, as this set can still point to any arbitrary element.- returns
The set of elements the set can point to.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def findTwoIntersections(other: T): (Option[ElementType], Option[ElementType])
Tries to find and return two elements that are in both this set and the given other set as a tuple of options.
Tries to find and return two elements that are in both this set and the given other set as a tuple of options. If only one element is in both sets, the second element is
None. If the sets are disjoint, both elements areNone.This is used instead of computing the whole intersection because more than two elements in the intersection would not change the result of the alias analysis.
Note that this does not check if one of the sets can point to any arbitrary element.
- other
The other set to check for intersections.
- returns
A tuple containing two elements that are in both this set and the other set.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def isEmpty: Boolean
Checks if the set is empty, i.e., it does not contain any elements it can point to and also cannot point to any arbitrary element.
Checks if the set is empty, i.e., it does not contain any elements it can point to and also cannot point to any arbitrary element.
- returns
trueif the set is empty,falseotherwise.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def pointsTo(element: ElementType): Boolean
Checks if the set contains the given element.
Checks if the set contains the given element.
- element
The element to check for.
- returns
trueif the set contains the element,falseotherwise.
- def pointsToAny: Boolean
Checks if this set can point to any arbitrary element.
Checks if this set can point to any arbitrary element.
- returns
trueif the set can point to any arbitrary element,falseotherwise.
- def setPointsToAny(): Unit
Marks that this set can point to any arbitrary element.
- def size: Int
Returns the number of elements the set can point to.
Returns the number of elements the set can point to. Note that the size being 0 does not imply that the isEmpty method returns
true, as the set can still point to any arbitrary element.- returns
The number of elements the set can point to.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated