Uses of Enum Class
dev.civl.abc.ast.node.IF.expression.OperatorNode.Operator
Packages that use OperatorNode.Operator
Package
Description
Submodule ast.node defines every kind of
node in an AST.
The ast.node.expression submodule defines AST nodes
for representing expressions in a program.
The ast.value submodule defines classes for representing
constant values that can occur in a program, such as numeric literals,
characters, strings, pointer constants, and so on.
-
Uses of OperatorNode.Operator in dev.civl.abc.ast.node.IF
Methods in dev.civl.abc.ast.node.IF with parameters of type OperatorNode.OperatorModifier and TypeMethodDescriptionNodeFactory.newOperatorNode(Source source, OperatorNode.Operator operator, ExpressionNode argument) Convenience method for constructing new unary operator node; equivalent to invokingNodeFactory.newOperatorNode(Source, Operator, ExpressionNode)on the singleton list containingargument.NodeFactory.newOperatorNode(Source source, OperatorNode.Operator operator, ExpressionNode arg0, ExpressionNode arg1) Convenience method for constructing new binary operator node; equivalent to invokingNodeFactory.newOperatorNode(Source, Operator, ExpressionNode)on the list consisting ofarg0andarg1.NodeFactory.newOperatorNode(Source source, OperatorNode.Operator operator, ExpressionNode arg0, ExpressionNode arg1, ExpressionNode arg2) Convenience method for constructing new ternary operator node; equivalent to invokingNodeFactory.newOperatorNode(Source, Operator, ExpressionNode)on the list consisting ofarg0,arg1, andarg2.NodeFactory.newOperatorNode(Source source, OperatorNode.Operator operator, List<ExpressionNode> arguments) Constructs a new operator expression node using one of the standard operators provided in the enumerated typeOperatorNode.Operator. -
Uses of OperatorNode.Operator in dev.civl.abc.ast.node.IF.expression
Methods in dev.civl.abc.ast.node.IF.expression that return OperatorNode.OperatorModifier and TypeMethodDescriptionOperatorNode.getOperator()Returns the operator of this expression.static OperatorNode.OperatorReturns the enum constant of this class with the specified name.static OperatorNode.Operator[]OperatorNode.Operator.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in dev.civl.abc.ast.node.IF.expression with parameters of type OperatorNode.OperatorModifier and TypeMethodDescriptionvoidOperatorNode.setOperator(OperatorNode.Operator operator) Sets the operator of this expression. -
Uses of OperatorNode.Operator in dev.civl.abc.ast.value.IF
Methods in dev.civl.abc.ast.value.IF that return OperatorNode.OperatorMethods in dev.civl.abc.ast.value.IF with parameters of type OperatorNode.OperatorModifier and TypeMethodDescriptionValueFactory.operatorValue(Type type, OperatorNode.Operator operator, Value[] arguments) The legal operators are: ADDRESSOF: invalid input: '&' pointer to object BITAND: invalid input: '&' bit-wise and BITCOMPLEMENT: ~ bit-wise complement BITOR: | bit-wise inclusive or BITXOR: ^ bit-wise exclusive or CONDITIONAL: ?: the conditional operator DEREFERENCE: * pointer dereference DIV: / numerical division EQUALS: == equality GT: > greater than GTE: >= greater than or equals LAND: invalid input: '&'invalid input: '&' logical and LOR: || logical or LT: invalid input: '<' less than LTE: invalid input: '<'= less than or equals MINUS: - binary subtraction (numbers and pointers) MOD: % integer modulus NEQ: != not equals NOT: ! logical not PLUS: + binary addition, numeric or pointer SHIFTLEFT: invalid input: '<'invalid input: '<' shift left SHIFTRIGHT: >> shift right SUBSCRIPT: [] array subscript TIMES: * numeric multiplication UNARYMINUS: - numeric negative UNARYPLUS // + numeric no-op