scale.clef.expr
Enum ShiftMode

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

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

This enum specifies the type of shift operation - logical left, arithmetic right, 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
Left
          The shift is to the left with zero bit fill on the right.
LeftRotate
          The shift is to the left with bits shifted off the left side inserted on the right.
RightRotate
          The shift is to the right with bits shifted off the right side inserted on the left.
SignedRight
          The shift is to the righ with sign extension.
UnsignedRight
          The shift is to the righ with zero bit fill on the left.
 
Method Summary
static ShiftMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ShiftMode[] 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

SignedRight

public static final ShiftMode SignedRight
The shift is to the righ with sign extension.


UnsignedRight

public static final ShiftMode UnsignedRight
The shift is to the righ with zero bit fill on the left.


Left

public static final ShiftMode Left
The shift is to the left with zero bit fill on the right.


LeftRotate

public static final ShiftMode LeftRotate
The shift is to the left with bits shifted off the left side inserted on the right.


RightRotate

public static final ShiftMode RightRotate
The shift is to the right with bits shifted off the right side inserted on the left.

Method Detail

values

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

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

valueOf

public static ShiftMode 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