org.stjs.generator.javascript
Enum BinaryOperator

java.lang.Object
  extended by java.lang.Enum<BinaryOperator>
      extended by org.stjs.generator.javascript.BinaryOperator
All Implemented Interfaces:
Serializable, Comparable<BinaryOperator>

public enum BinaryOperator
extends Enum<BinaryOperator>

this is the list of the JavaScript operators and how they map on Java AST element Kind and Rhino token IDs

Author:
acraciun

Enum Constant Summary
AND
           
COMMA
           
CONDITIONAL_AND
           
CONDITIONAL_OR
           
DIVIDE
           
EQUAL_TO
           
GREATER_THAN
           
GREATER_THAN_EQUAL
           
LEFT_SHIFT
           
LESS_THAN
           
LESS_THAN_EQUAL
           
MINUS
           
MULTIPLY
           
NOT_EQUAL_TO
           
OR
           
PLUS
           
REMAINDER
           
RIGHT_SHIFT
           
UNSIGNED_RIGHT_SHIFT
           
XOR
           
 
Method Summary
 com.sun.source.tree.Tree.Kind getJava()
           
 int getJavaScript()
           
static BinaryOperator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BinaryOperator valueOf(com.sun.source.tree.Tree.Kind javaOperator)
           
static BinaryOperator[] 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

MULTIPLY

public static final BinaryOperator MULTIPLY

DIVIDE

public static final BinaryOperator DIVIDE

REMAINDER

public static final BinaryOperator REMAINDER

PLUS

public static final BinaryOperator PLUS

MINUS

public static final BinaryOperator MINUS

LEFT_SHIFT

public static final BinaryOperator LEFT_SHIFT

RIGHT_SHIFT

public static final BinaryOperator RIGHT_SHIFT

UNSIGNED_RIGHT_SHIFT

public static final BinaryOperator UNSIGNED_RIGHT_SHIFT

AND

public static final BinaryOperator AND

XOR

public static final BinaryOperator XOR

OR

public static final BinaryOperator OR

LESS_THAN

public static final BinaryOperator LESS_THAN

LESS_THAN_EQUAL

public static final BinaryOperator LESS_THAN_EQUAL

GREATER_THAN

public static final BinaryOperator GREATER_THAN

GREATER_THAN_EQUAL

public static final BinaryOperator GREATER_THAN_EQUAL

EQUAL_TO

public static final BinaryOperator EQUAL_TO

NOT_EQUAL_TO

public static final BinaryOperator NOT_EQUAL_TO

CONDITIONAL_AND

public static final BinaryOperator CONDITIONAL_AND

CONDITIONAL_OR

public static final BinaryOperator CONDITIONAL_OR

COMMA

public static final BinaryOperator COMMA
Method Detail

values

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

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

valueOf

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

getJava

public com.sun.source.tree.Tree.Kind getJava()

getJavaScript

public int getJavaScript()

valueOf

public static BinaryOperator valueOf(com.sun.source.tree.Tree.Kind javaOperator)


Copyright © 2014. All Rights Reserved.