org.stjs.generator.javascript
Enum AssignOperator
java.lang.Object
java.lang.Enum<AssignOperator>
org.stjs.generator.javascript.AssignOperator
- All Implemented Interfaces:
- Serializable, Comparable<AssignOperator>
public enum AssignOperator
- extends Enum<AssignOperator>
this is the list of the JavaScript operators and how they map on Java AST element Kind and Rhino token IDs
- Author:
- acraciun
ASSIGN
public static final AssignOperator ASSIGN
MULTIPLY_ASSIGNMENT
public static final AssignOperator MULTIPLY_ASSIGNMENT
DIVIDE_ASSIGNMENT
public static final AssignOperator DIVIDE_ASSIGNMENT
REMAINDER_ASSIGNMENT
public static final AssignOperator REMAINDER_ASSIGNMENT
PLUS_ASSIGNMENT
public static final AssignOperator PLUS_ASSIGNMENT
MINUS_ASSIGNMENT
public static final AssignOperator MINUS_ASSIGNMENT
LEFT_SHIFT_ASSIGNMENT
public static final AssignOperator LEFT_SHIFT_ASSIGNMENT
RIGHT_SHIFT_ASSIGNMENT
public static final AssignOperator RIGHT_SHIFT_ASSIGNMENT
UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
public static final AssignOperator UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
AND_ASSIGNMENT
public static final AssignOperator AND_ASSIGNMENT
XOR_ASSIGNMENT
public static final AssignOperator XOR_ASSIGNMENT
OR_ASSIGNMENT
public static final AssignOperator OR_ASSIGNMENT
values
public static AssignOperator[] 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 (AssignOperator c : AssignOperator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AssignOperator 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 AssignOperator valueOf(com.sun.source.tree.Tree.Kind javaOperator)
Copyright © 2014. All Rights Reserved.