org.duelengine.duel.codedom
Enum CodeUnaryOperatorType

java.lang.Object
  extended by java.lang.Enum<CodeUnaryOperatorType>
      extended by org.duelengine.duel.codedom.CodeUnaryOperatorType
All Implemented Interfaces:
Serializable, Comparable<CodeUnaryOperatorType>

public enum CodeUnaryOperatorType
extends Enum<CodeUnaryOperatorType>


Enum Constant Summary
BITWISE_NEGATION
          Bitwise not "~x"
LOGICAL_NEGATION
          Logical not "!x"
NEGATION
          Negative numeric "-x"
NONE
           
POSITIVE
          Positive numeric "+x"
POST_DECREMENT
          DEC after "x--"
POST_INCREMENT
          INC after "x++"
PRE_DECREMENT
          DEC before "--x"
PRE_INCREMENT
          INC before "++x"
 
Method Summary
static CodeUnaryOperatorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CodeUnaryOperatorType[] 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

NONE

public static final CodeUnaryOperatorType NONE

POSITIVE

public static final CodeUnaryOperatorType POSITIVE
Positive numeric "+x"


NEGATION

public static final CodeUnaryOperatorType NEGATION
Negative numeric "-x"


LOGICAL_NEGATION

public static final CodeUnaryOperatorType LOGICAL_NEGATION
Logical not "!x"


BITWISE_NEGATION

public static final CodeUnaryOperatorType BITWISE_NEGATION
Bitwise not "~x"


PRE_INCREMENT

public static final CodeUnaryOperatorType PRE_INCREMENT
INC before "++x"


PRE_DECREMENT

public static final CodeUnaryOperatorType PRE_DECREMENT
DEC before "--x"


POST_INCREMENT

public static final CodeUnaryOperatorType POST_INCREMENT
INC after "x++"


POST_DECREMENT

public static final CodeUnaryOperatorType POST_DECREMENT
DEC after "x--"

Method Detail

values

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

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

valueOf

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


Copyright © 2011. All Rights Reserved.