public enum PatsyOperator extends Enum<PatsyOperator>
| Enum Constant and Description |
|---|
BINARY_ADD |
BINARY_DIVIDE |
BINARY_MULTIPLY |
BINARY_SUBTRACT |
BINARY_TILDE |
INTERACT |
OPEN_PAREN |
UNARY_MINUS |
UNARY_PLUS |
UNARY_TILDE |
| Modifier and Type | Method and Description |
|---|---|
int |
getArity() |
int |
getKind() |
int |
getPrecedence() |
static PatsyOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PatsyOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PatsyOperator UNARY_TILDE
public static final PatsyOperator UNARY_PLUS
public static final PatsyOperator UNARY_MINUS
public static final PatsyOperator BINARY_TILDE
public static final PatsyOperator BINARY_ADD
public static final PatsyOperator BINARY_SUBTRACT
public static final PatsyOperator BINARY_DIVIDE
public static final PatsyOperator BINARY_MULTIPLY
public static final PatsyOperator INTERACT
public static final PatsyOperator OPEN_PAREN
public static PatsyOperator[] values()
for (PatsyOperator c : PatsyOperator.values()) System.out.println(c);
public static PatsyOperator 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 int getKind()
public int getArity()
public int getPrecedence()
Copyright © 2022. All rights reserved.