Package jminusminus
Class JAssignment
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JExpression
jminusminus.JBinaryExpression
jminusminus.JAssignment
- Direct Known Subclasses:
JALeftShiftAssignOp
,JAndAssignOp
,JARightShiftAssignOp
,JAssignOp
,JDivAssignOp
,JLRightShiftAssignOp
,JMinusAssignOp
,JOrAssignOp
,JPlusAssignOp
,JRemAssignOp
,JStarAssignOp
,JXorAssignOp
This abstract base class is the AST node for an assignment operation.
-
Field Summary
Fields inherited from class jminusminus.JBinaryExpression
lhs, operator, rhs
Fields inherited from class jminusminus.JExpression
isStatementExpression, type
Fields inherited from class jminusminus.JAST
compilationUnit, line
-
Constructor Summary
ConstructorDescriptionJAssignment
(int line, String operator, JExpression lhs, JExpression rhs) Constructs an AST node for an assignment operation. -
Method Summary
Methods inherited from class jminusminus.JBinaryExpression
toJSON
Methods inherited from class jminusminus.JExpression
analyze, codegen, isStatementExpression, type
Methods inherited from class jminusminus.JAST
codegen, line, partialCodegen, unescape
-
Constructor Details
-
JAssignment
Constructs an AST node for an assignment operation.- Parameters:
line
- line in which the assignment operation occurs in the source file.operator
- the assignment operator.lhs
- the lhs operand.rhs
- the rhs operand.
-