dk.brics.string.intermediate.operations
Enum AliasStatus

java.lang.Object
  extended by java.lang.Enum<AliasStatus>
      extended by dk.brics.string.intermediate.operations.AliasStatus
All Implemented Interfaces:
Serializable, Comparable<AliasStatus>

public enum AliasStatus
extends Enum<AliasStatus>

Describes the known aliasing status between two variables. Represents the elements of the lattice:

    MAYBE
   /     \
  NOT  DEFINITELY
   \     /
    BOTTOM
 


Enum Constant Summary
BOTTOM
          Bottom element.
DEFINITELY
          The two variables are definitely aliased.
MAYBE
          The two variables may or may not be aliased.
NOT
          The two variables are definitely not aliased.
 
Method Summary
 AliasStatus greatestLowerBound(AliasStatus other)
           
 boolean isDefinitelyOrBottom()
          Returns true if this is DEFINITELY or BOTTOM.
 AliasStatus leastUpperBound(AliasStatus other)
           
 boolean mightBeAlias()
          Returns true if this is DEFINITELY or MAYBE.
static AliasStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AliasStatus[] 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 AliasStatus BOTTOM
Bottom element.


DEFINITELY

public static final AliasStatus DEFINITELY
The two variables are definitely aliased.


MAYBE

public static final AliasStatus MAYBE
The two variables may or may not be aliased.


NOT

public static final AliasStatus NOT
The two variables are definitely not aliased.

Method Detail

greatestLowerBound

public AliasStatus greatestLowerBound(AliasStatus other)

isDefinitelyOrBottom

public boolean isDefinitelyOrBottom()
Returns true if this is DEFINITELY or BOTTOM.


leastUpperBound

public AliasStatus leastUpperBound(AliasStatus other)

mightBeAlias

public boolean mightBeAlias()
Returns true if this is DEFINITELY or MAYBE.


valueOf

public static AliasStatus 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 AliasStatus[] 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 (AliasStatus c : AliasStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared


Copyright © 2003-2009 Anders Møller, Aske Simon Christensen, Asger Feldthaus.