dk.brics.xact.analysis.xmlgraph
Enum EPresence
java.lang.Object
java.lang.Enum<EPresence>
dk.brics.xact.analysis.xmlgraph.EPresence
- All Implemented Interfaces:
- Serializable, Comparable<EPresence>
public enum EPresence
- extends Enum<EPresence>
A generic lattice denoting whether something is empty or non-empty.
BOTTOM
public static final EPresence BOTTOM
EMPTY
public static final EPresence EMPTY
NONEMPTY
public static final EPresence NONEMPTY
UNKNOWN
public static final EPresence UNKNOWN
concat
public EPresence concat(EPresence b)
- Returns whether the result is empty when concatenating the two elements.
For example, "EMPTY concat EMPTY" is EMPTY, and "EMPTY concat NONEMPTY" is NONEMPTY.
definitelyEmpty
public boolean definitelyEmpty()
definitelyNonEmpty
public boolean definitelyNonEmpty()
leastUpperBound
public EPresence leastUpperBound(EPresence b)
maybeEmpty
public boolean maybeEmpty()
maybeNonEmpty
public boolean maybeNonEmpty()
valueOf
public static EPresence valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
values
public static EPresence[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (EPresence c : EPresence.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
Copyright © 2005-2011 Aarhus University.