com.google.dart.compiler.backend.js.ast
Enum JsUnaryOperator

java.lang.Object
  extended by java.lang.Enum<JsUnaryOperator>
      extended by com.google.dart.compiler.backend.js.ast.JsUnaryOperator
All Implemented Interfaces:
JsOperator, java.io.Serializable, java.lang.Comparable<JsUnaryOperator>

public enum JsUnaryOperator
extends java.lang.Enum<JsUnaryOperator>
implements JsOperator

A JavaScript unary operator.


Enum Constant Summary
BIT_NOT
           
DEC
           
DELETE
           
INC
           
NEG
           
NOT
           
POS
           
TYPEOF
           
VOID
           
 
Field Summary
 
Fields inherited from interface com.google.dart.compiler.backend.js.ast.JsOperator
INFIX, LEFT, POSTFIX, PREFIX
 
Method Summary
 int getPrecedence()
           
 java.lang.String getSymbol()
           
 boolean isKeyword()
           
 boolean isLeftAssociative()
           
 boolean isModifying()
           
 boolean isPrecedenceLessThan(JsOperator other)
           
 boolean isValidInfix()
           
 boolean isValidPostfix()
           
 boolean isValidPrefix()
           
 java.lang.String toString()
           
static JsUnaryOperator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JsUnaryOperator[] 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

BIT_NOT

public static final JsUnaryOperator BIT_NOT

DEC

public static final JsUnaryOperator DEC

DELETE

public static final JsUnaryOperator DELETE

INC

public static final JsUnaryOperator INC

NEG

public static final JsUnaryOperator NEG

POS

public static final JsUnaryOperator POS

NOT

public static final JsUnaryOperator NOT

TYPEOF

public static final JsUnaryOperator TYPEOF

VOID

public static final JsUnaryOperator VOID
Method Detail

values

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

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

valueOf

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

getPrecedence

public int getPrecedence()
Specified by:
getPrecedence in interface JsOperator

getSymbol

public java.lang.String getSymbol()
Specified by:
getSymbol in interface JsOperator

isKeyword

public boolean isKeyword()
Specified by:
isKeyword in interface JsOperator

isLeftAssociative

public boolean isLeftAssociative()
Specified by:
isLeftAssociative in interface JsOperator

isModifying

public boolean isModifying()

isPrecedenceLessThan

public boolean isPrecedenceLessThan(JsOperator other)
Specified by:
isPrecedenceLessThan in interface JsOperator

isValidInfix

public boolean isValidInfix()
Specified by:
isValidInfix in interface JsOperator

isValidPostfix

public boolean isValidPostfix()
Specified by:
isValidPostfix in interface JsOperator

isValidPrefix

public boolean isValidPrefix()
Specified by:
isValidPrefix in interface JsOperator

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<JsUnaryOperator>