|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectVarComparability
VarComparabilityImplicit
public final class VarComparabilityImplicit
A VarComparabilityImplicit is an arbitrary integer, and comparisons succeed exactly if the two integers are equal, except that negative integers compare equal to everything. Alternately, for an array variable, a VarComparabilityImplicit may separately indicate comparabilities for the elements and indices.
VarComparabilityImplicit ::= int
| VarComparabilityImplicit "[" int "]"
This is called "implicit" because the comparability objects do not refer to one another or refer directly to variables; whether two variables are comparable depends on their comparability objects. Implicit comparability has the flavor of types in programming languages.
Soon, this will probably be modified to permit the group identifiers to be arbitrary strings (not containing square brackets) instead of arbitrary integers.
| Field Summary | |
|---|---|
static VarComparabilityImplicit |
unknown
|
| Fields inherited from class VarComparability |
|---|
debug, IMPLICIT, NONE |
| Method Summary | |
|---|---|
boolean |
alwaysComparable()
Returns true if this is comparable to everything else. |
boolean |
baseAlwayscomparable()
|
VarComparability |
elementType()
|
boolean |
equality_set_ok(VarComparability other)
Same as comparable, except that variables that are comparable to everything (negative comparability value) can't be included in the same equality set as those with positive values. |
boolean |
equals(Object o)
|
boolean |
equals(VarComparabilityImplicit o)
|
int |
hashCode()
|
VarComparability |
indexType(int dim)
|
VarComparability |
makeAlias()
|
VarComparability |
string_length_type()
Determines the comparability of the length of this string. |
String |
toString()
|
| Methods inherited from class VarComparability |
|---|
comparable, comparable, makeAlias, makeComparabilitySameIndices, parse |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final VarComparabilityImplicit unknown
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic boolean equals(VarComparabilityImplicit o)
public boolean baseAlwayscomparable()
public boolean alwaysComparable()
VarComparability
alwaysComparable in class VarComparabilitypublic VarComparability makeAlias()
makeAlias in class VarComparabilitypublic VarComparability elementType()
elementType in class VarComparabilitypublic VarComparability string_length_type()
string_length_type in class VarComparabilitypublic VarComparability indexType(int dim)
indexType in class VarComparabilitypublic boolean equality_set_ok(VarComparability other)
equality_set_ok in class VarComparabilitypublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||