Package iota
Class IUnaryExpression
java.lang.Object
iota.IAST
iota.IStatement
iota.IExpression
iota.IUnaryExpression
- Direct Known Subclasses:
ILogicalNotOp
,INegateOp
This abstract base class is the AST node for a unary expression --- an expression with a single operand.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IExpression
The operand.protected String
The unary operator.Fields inherited from class iota.IExpression
isStatementExpression, type
Fields inherited from class iota.IAST
compilationUnit, line
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
IUnaryExpression
(int line, String operator, IExpression operand) Constructs an AST node for a unary expression. -
Method Summary
Modifier and TypeMethodDescriptionvoid
toJSON
(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class iota.IExpression
analyze, codegen, type
Methods inherited from class iota.IAST
codegen, line, preAnalyze
-
Field Details
-
operator
The unary operator. -
operand
The operand.
-
-
Constructor Details
-
IUnaryExpression
Constructs an AST node for a unary expression.- Parameters:
line
- line in which the unary expression occurs in the source file.operator
- the unary operator.operand
- the operand.
-
-
Method Details