Package org.openrewrite.java.tree
Enum J.Binary.Type
- java.lang.Object
-
- java.lang.Enum<J.Binary.Type>
-
- org.openrewrite.java.tree.J.Binary.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<J.Binary.Type>
- Enclosing class:
- J.Binary
public static enum J.Binary.Type extends java.lang.Enum<J.Binary.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AdditionAndBitAndBitOrBitXorDivisionEqualGreaterThanGreaterThanOrEqualLeftShiftLessThanLessThanOrEqualModuloMultiplicationNotEqualOrRightShiftSubtractionUnsignedRightShift
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static J.Binary.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static J.Binary.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Addition
public static final J.Binary.Type Addition
-
Subtraction
public static final J.Binary.Type Subtraction
-
Multiplication
public static final J.Binary.Type Multiplication
-
Division
public static final J.Binary.Type Division
-
Modulo
public static final J.Binary.Type Modulo
-
LessThan
public static final J.Binary.Type LessThan
-
GreaterThan
public static final J.Binary.Type GreaterThan
-
LessThanOrEqual
public static final J.Binary.Type LessThanOrEqual
-
GreaterThanOrEqual
public static final J.Binary.Type GreaterThanOrEqual
-
Equal
public static final J.Binary.Type Equal
-
NotEqual
public static final J.Binary.Type NotEqual
-
BitAnd
public static final J.Binary.Type BitAnd
-
BitOr
public static final J.Binary.Type BitOr
-
BitXor
public static final J.Binary.Type BitXor
-
LeftShift
public static final J.Binary.Type LeftShift
-
RightShift
public static final J.Binary.Type RightShift
-
UnsignedRightShift
public static final J.Binary.Type UnsignedRightShift
-
Or
public static final J.Binary.Type Or
-
And
public static final J.Binary.Type And
-
-
Method Detail
-
values
public static J.Binary.Type[] 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 (J.Binary.Type c : J.Binary.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static J.Binary.Type 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 namejava.lang.NullPointerException- if the argument is null
-
-