|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CompareMode> scale.score.expr.CompareMode
public 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 |
---|
public static final CompareMode EQ
public static final CompareMode LE
public static final CompareMode LT
public static final CompareMode GT
public static final CompareMode GE
public static final CompareMode NE
Method Detail |
---|
public static CompareMode[] values()
for (CompareMode c : CompareMode.values()) System.out.println(c);
public static CompareMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic CompareMode argswap()
public CompareMode reverse()
public boolean eq()
public boolean commutative()
public java.lang.String cName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |