scale.score.expr
Enum CompareMode

java.lang.Object
  extended by java.lang.Enum<CompareMode>
      extended by scale.score.expr.CompareMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CompareMode>

public enum CompareMode
extends java.lang.Enum<CompareMode>

This enum specifies the comparison mode - equals, not equals, etc.

$Id$

Copyright 2008 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Enum Constant Summary
EQ
          Equality compare
GE
          Greater than or equal compare
GT
          Greater than compare
LE
          Less than or equal compare
LT
          Less than compare
NE
          Not equals compare
 
Method Summary
 CompareMode argswap()
          CompareMode if the arguments are swapped.
 java.lang.String cName()
          Return the C operator.
 boolean commutative()
          True if the comparison is commutative.
 boolean eq()
          True if comparison for equal included.
 CompareMode reverse()
          CompareMode if branch sense is reversed.
static CompareMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CompareMode[] 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

EQ

public static final CompareMode EQ
Equality compare


LE

public static final CompareMode LE
Less than or equal compare


LT

public static final CompareMode LT
Less than compare


GT

public static final CompareMode GT
Greater than compare


GE

public static final CompareMode GE
Greater than or equal compare


NE

public static final CompareMode NE
Not equals compare

Method Detail

values

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

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

valueOf

public static CompareMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

argswap

public CompareMode argswap()
CompareMode if the arguments are swapped.


reverse

public CompareMode reverse()
CompareMode if branch sense is reversed.


eq

public boolean eq()
True if comparison for equal included.


commutative

public boolean commutative()
True if the comparison is commutative.


cName

public java.lang.String cName()
Return the C operator.