PolyQual.Combined<Q>, PolyQual.GroundQual<Q>, PolyQual.QualVar<Q>
Constructor and Description |
---|
Combined(CombiningOperation<Q> op,
Collection<PolyQual.QualVar<Q>> vars,
Q ground) |
Combined(CombiningOperation<Q> op,
PolyQual.QualVar<Q> var) |
Combined(CombiningOperation<Q> op,
PolyQual.QualVar<Q> var,
Q ground) |
Combined(CombiningOperation<Q> op,
Q ground) |
Modifier and Type | Method and Description |
---|---|
PolyQual.Combined<Q> |
asCombined(CombiningOperation<Q> op)
Convert this qualifier to an equivalent
PolyQual.Combined qualifier
using the given CombiningOperation . |
PolyQual<Q> |
combineWith(PolyQual.Combined<Q> other)
Combine two instances of
Combined that were built with the
same CombiningOperation . |
boolean |
equals(Object o) |
static <Q> PolyQual<Q> |
from(CombiningOperation<Q> op,
Collection<PolyQual.QualVar<Q>> vars,
Q ground)
Like the main
Combined<Q> constructor, but returns a simpler
PolyQual (GroundQual or QualVar) when possible. |
Q |
getGround() |
Q |
getMaximum()
Get the least upper bound of the possible types of this qualifier under
all valid assignments to qualifier variables.
|
Q |
getMinimum()
Get the greatest lower bound of the possible types of this qualifier
under all valid assignments to qualifier variables.
|
CombiningOperation<Q> |
getOp() |
Set<PolyQual.QualVar<Q>> |
getVars() |
int |
hashCode() |
PolyQual<Q> |
substitute(Map<String,PolyQual<Q>> substs)
Substitute qualifiers for qualifier variables.
|
String |
toString() |
combineWith
public Combined(CombiningOperation<Q> op, Collection<PolyQual.QualVar<Q>> vars, Q ground)
public Combined(CombiningOperation<Q> op, PolyQual.QualVar<Q> var, Q ground)
public Combined(CombiningOperation<Q> op, PolyQual.QualVar<Q> var)
public Combined(CombiningOperation<Q> op, Q ground)
public static <Q> PolyQual<Q> from(CombiningOperation<Q> op, Collection<PolyQual.QualVar<Q>> vars, Q ground)
Combined<Q>
constructor, but returns a simpler
PolyQual (GroundQual or QualVar) when possible.public PolyQual<Q> combineWith(PolyQual.Combined<Q> other)
Combined
that were built with the
same CombiningOperation
.public CombiningOperation<Q> getOp()
public Set<PolyQual.QualVar<Q>> getVars()
public Q getGround()
public Q getMinimum()
PolyQual
pq.getMinimum()
is a subtype of pq
.getMinimum
in class PolyQual<Q>
public Q getMaximum()
PolyQual
getMaximum
in class PolyQual<Q>
public PolyQual<Q> substitute(Map<String,PolyQual<Q>> substs)
PolyQual
substitute
in class PolyQual<Q>
public PolyQual.Combined<Q> asCombined(CombiningOperation<Q> op)
PolyQual
PolyQual.Combined
qualifier
using the given CombiningOperation
.asCombined
in class PolyQual<Q>