public enum IntOperator extends Enum<IntOperator>
op: (int->lone IntExpression) -> IntExpression
all args: seq IntExpression, out: IntExpression | args->out in op => (out.children = args && out.op = this)
Enum Constant and Description |
---|
ABS
absolute value function
|
AND
Bitwise AND operator
|
DIVIDE
`/' operator
|
MINUS
`-' operator
|
MODULO
`%' operator
|
MULTIPLY
`*' operator
|
NEG
unary negation (`-') operator
|
NOT
bit negation (`~') operator
|
OR
Bitwise OR operator
|
PLUS
`+' operator
|
SGN
signum function
|
SHA
Right shift operator with sign extension
|
SHL
Left shift operator
|
SHR
Right shift operator with zero extension
|
XOR
Bitwise XOR operator
|
Modifier and Type | Method and Description |
---|---|
boolean |
binary()
Returns true if this is a binary operator.
|
boolean |
nary()
Returns true if this is an nary operator.
|
boolean |
unary()
Returns true if this is a unary operator.
|
static IntOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IntOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IntOperator ABS
public static final IntOperator AND
public static final IntOperator DIVIDE
public static final IntOperator MINUS
public static final IntOperator MODULO
public static final IntOperator MULTIPLY
public static final IntOperator NEG
public static final IntOperator NOT
public static final IntOperator OR
public static final IntOperator PLUS
public static final IntOperator SGN
public static final IntOperator SHA
public static final IntOperator SHL
public static final IntOperator SHR
public static final IntOperator XOR
public final boolean binary()
public final boolean nary()
public final boolean unary()
public static IntOperator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static IntOperator[] values()
for (IntOperator c : IntOperator.values()) System.out.println(c);
© Emina Torlak 2005-present