| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.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 | |
|---|---|
| CASTCast an address to the specified type. | |
| CEILINGReturn the next higher integer value. | |
| FLOORReturn the next lower integer value. | |
| IMAGINARYReturn the imaginary part. | |
| INVALIDNo valid cast. | |
| NONENo cast needed. | |
| REALReturn the real value part. | |
| ROUNDReturn the nearest integer value. | |
| TRUNCATEReturn 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 | ||||||||