dk.brics.xact.analysis.xmlgraph
Enum EPresence

java.lang.Object
  extended by java.lang.Enum<EPresence>
      extended by 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.


Enum Constant Summary
BOTTOM
           
EMPTY
           
NONEMPTY
           
UNKNOWN
           
 
Method Summary
 EPresence concat(EPresence b)
          Returns whether the result is empty when concatenating the two elements.
 boolean definitelyEmpty()
           
 boolean definitelyNonEmpty()
           
 EPresence leastUpperBound(EPresence b)
           
 boolean maybeEmpty()
           
 boolean maybeNonEmpty()
           
static EPresence valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EPresence[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOTTOM

public static final EPresence BOTTOM

EMPTY

public static final EPresence EMPTY

NONEMPTY

public static final EPresence NONEMPTY

UNKNOWN

public static final EPresence UNKNOWN
Method Detail

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.