| Modifier and Type | Field and Description |
|---|---|
| private static final int | MAX_RECURSION_DEPTH
Union types can lead to infinite recursion in the occurs check. |
| private Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public NType | Returns: the first non-unknown alternate, ornull if none foundReturns the first alternate whose type is not unknown. |
| public NType | Returns: the first non-unknown, non-None alternate, or null if none foundReturns the first alternate whose type is not unknown and
is not |
| public Set | |
| public static NUnionType | |
| private static boolean | |
| public void | printKids(NType.
Implements abstract org. Internal method to support printing in the presence of type-graph cycles. |
| public void | |
| public static NType |
| MAX_RECURSION_DEPTH | back to summary |
|---|---|
| private static final int MAX_RECURSION_DEPTH Union types can lead to infinite recursion in the occurs check. Until we've got a handle on these cases, I'm limiting the recursion depth.
| |
| types | back to summary |
|---|---|
| private Set<NType> types | |
| NUnionType | back to summary |
|---|---|
| public NUnionType() | |
| NUnionType | back to summary |
|---|---|
| public NUnionType(NType... initialTypes) | |
| addType | back to summary |
|---|---|
| public void addType(NType t) | |
| contains | back to summary |
|---|---|
| public boolean contains(NType t) | |
| firstKnownAlternate | back to summary |
|---|---|
| public NType firstKnownAlternate() Returns the first alternate whose type is not unknown.
| |
| firstKnownNonNullAlternate | back to summary |
|---|---|
| public NType firstKnownNonNullAlternate() Returns the first alternate whose type is not unknown and
is not
| |
| getTypes | back to summary |
|---|---|
| public Set | |
| newUnion | back to summary |
|---|---|
| public static NUnionType newUnion(NType... types) | |
| occurs | back to summary |
|---|---|
private static boolean occurs(NType u, NType v, int depth)
| |
| printKids | back to summary |
|---|---|
| public void printKids(NType. Implements abstract org. Doc from org. Internal method to support printing in the presence of type-graph cycles.
| |
| setTypes | back to summary |
|---|---|
| public void setTypes(Set<NType> types) | |
| union | back to summary |
|---|---|
| public static NType union(NType u, NType v) | |