dk.brics.xact.analysis.xmlgraph
Enum EBooleanLattice

java.lang.Object
  extended by java.lang.Enum<EBooleanLattice>
      extended by dk.brics.xact.analysis.xmlgraph.EBooleanLattice
All Implemented Interfaces:
Serializable, Comparable<EBooleanLattice>

public enum EBooleanLattice
extends Enum<EBooleanLattice>

Represents the lattice:

      MAYBE
      /   \
    YES    NO
      \   /
      BOTTOM
 
The meaning of "yes" and "no" is not specified here – it depends on the context of its use.


Enum Constant Summary
BOTTOM
           
MAYBE
           
NO
           
YES
           
 
Method Summary
 EBooleanLattice and(EBooleanLattice lat)
          Returns the possible results of a logical AND between two booleans.
 boolean definitely()
          Returns true if this is YES or BOTTOM
 boolean definitelyNot()
          Returns true if this is NO or BOTTOM
 EBooleanLattice greatestLowerBound(EBooleanLattice lat)
          Returns the greatest lower bound of two lattice points.
 EBooleanLattice leastUpperBound(EBooleanLattice lat)
          Returns the least upper bound of two lattice points.
 boolean maybe()
          Returns true if this is YES or MAYBE
 boolean maybeNot()
          Returns true if this is NO or MAYBE
 EBooleanLattice or(EBooleanLattice lat)
          Returns the possible results of a logical AND between two booleans.
static EBooleanLattice valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EBooleanLattice[] 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 EBooleanLattice BOTTOM

MAYBE

public static final EBooleanLattice MAYBE

NO

public static final EBooleanLattice NO

YES

public static final EBooleanLattice YES
Method Detail

and

public EBooleanLattice and(EBooleanLattice lat)
Returns the possible results of a logical AND between two booleans. BOTTOM will be returned if either operand is BOTTOM.


definitely

public boolean definitely()
Returns true if this is YES or BOTTOM


definitelyNot

public boolean definitelyNot()
Returns true if this is NO or BOTTOM


greatestLowerBound

public EBooleanLattice greatestLowerBound(EBooleanLattice lat)
Returns the greatest lower bound of two lattice points.


leastUpperBound

public EBooleanLattice leastUpperBound(EBooleanLattice lat)
Returns the least upper bound of two lattice points.


maybe

public boolean maybe()
Returns true if this is YES or MAYBE


maybeNot

public boolean maybeNot()
Returns true if this is NO or MAYBE


or

public EBooleanLattice or(EBooleanLattice lat)
Returns the possible results of a logical AND between two booleans. BOTTOM will be returned if either operand is BOTTOM.


valueOf

public static EBooleanLattice 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 EBooleanLattice[] 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 (EBooleanLattice c : EBooleanLattice.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.