|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CastMode> scale.clef.expr.CastMode
public enum CastMode
This enum specifies the type conversion - address cast, real, 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 | |
---|---|
CAST
Cast an address to the specified type. |
|
CEILING
Return the next higher integer value. |
|
FLOOR
Return the next lower integer value. |
|
IMAGINARY
Return the imaginary part. |
|
INVALID
No valid cast. |
|
NONE
No cast needed. |
|
REAL
Return the real value part. |
|
ROUND
Return the nearest integer value. |
|
TRUNCATE
Return the integer part of the value. |
Method Summary | |
---|---|
java.lang.String |
toString()
|
static CastMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CastMode[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CastMode NONE
public static final CastMode CAST
public static final CastMode REAL
public static final CastMode IMAGINARY
public static final CastMode FLOOR
public static final CastMode CEILING
public static final CastMode ROUND
public static final CastMode TRUNCATE
public static final CastMode INVALID
Method Detail |
---|
public static CastMode[] values()
for (CastMode c : CastMode.values()) System.out.println(c);
public static CastMode 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 java.lang.String toString()
toString
in class java.lang.Enum<CastMode>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |