org.stjs.generator.javascript
Enum BinaryOperator
java.lang.Object
java.lang.Enum<BinaryOperator>
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
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
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.