Package net.hydromatic.morel.ast
Enum Op
- All Implemented Interfaces:
Serializable,Comparable<Op>,java.lang.constant.Constable
Sub-types of
AstNode.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed internally, as the 'type' of a type constructor that does not contain data.Literal whose value is aBuiltIn.Literal whose value is a non-atomic value, such as a record or list. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoPat()Converts the op of a literal or tuple expression to the corresponding op of a pattern.static OpReturns the enum constant of this type with the specified name.static Op[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ID
-
RECORD_SELECTOR
-
BOOL_LITERAL
-
CHAR_LITERAL
-
INT_LITERAL
-
REAL_LITERAL
-
STRING_LITERAL
-
UNIT_LITERAL
-
FN_LITERAL
Literal whose value is aBuiltIn. -
VALUE_LITERAL
Literal whose value is a non-atomic value, such as a record or list. -
INTERNAL_LITERAL
-
ID_PAT
-
WILDCARD_PAT
-
AS_PAT
-
CON_PAT
-
CON0_PAT
-
TUPLE_PAT
-
RECORD_PAT
-
LIST_PAT
-
CONS_PAT
-
BOOL_LITERAL_PAT
-
CHAR_LITERAL_PAT
-
INT_LITERAL_PAT
-
REAL_LITERAL_PAT
-
STRING_LITERAL_PAT
-
ANNOTATED_PAT
-
BAR
-
COMMA
-
FUN_BIND
-
FUN_MATCH
-
TY_CON
-
DATATYPE_DECL
-
DATATYPE_BIND
-
FUN_DECL
-
VAL_DECL
-
REC_VAL_DECL
-
FROM_EQ
-
SUCH_THAT
-
TUPLE
-
LIST
-
RECORD
-
FN
-
TY_VAR
-
RECORD_TYPE
-
PROGRESSIVE_RECORD_TYPE
-
DATA_TYPE
-
DUMMY_TYPE
Used internally, as the 'type' of a type constructor that does not contain data. -
APPLY_TYPE
-
TUPLE_TYPE
-
COMPOSITE_TYPE
-
FUNCTION_TYPE
-
NAMED_TYPE
-
FORALL_TYPE
-
ANNOTATED_EXP
-
TIMES
-
DIVIDE
-
DIV
-
MOD
-
INTERSECT
-
PLUS
-
MINUS
-
CARET
-
EXCEPT
-
UNION
-
NEGATE
-
CONS
-
AT
-
LE
-
LT
-
GE
-
GT
-
EQ
-
NE
-
ELEM
-
NOT_ELEM
-
ASSIGN
-
COMPOSE
-
ANDALSO
-
ORELSE
-
BEFORE
-
LET
-
LOCAL
-
MATCH
-
VAL_BIND
-
APPLY
-
CASE
-
FROM
-
SCAN
-
INNER_JOIN
-
WHERE
-
GROUP
-
COMPUTE
-
ORDER
-
ORDER_ITEM
-
SKIP
-
TAKE
-
YIELD
-
AGGREGATE
-
IF
-
-
Field Details
-
padded
Padded name, e.g. " : ". -
left
public final int leftLeft precedence -
right
public final int rightRight precedence -
opName
Operator name. Sometimes null, sometimes something like "op +". -
BY_OP_NAME
-
-
Constructor Details
-
Op
private Op() -
Op
private Op(boolean atom) -
Op
-
Op
-
Op
-
Op
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
toPat
Converts the op of a literal or tuple expression to the corresponding op of a pattern.
-