abstract class JUnaryExpression extends JExpression
Modifier and Type | Field and Description |
---|---|
protected JExpression |
arg
The operand.
|
isStatementExpression, type
compilationUnit, line
Modifier | Constructor and Description |
---|---|
protected |
JUnaryExpression(int line,
String operator,
JExpression arg)
Construct an AST node for a unary expression given its line number, the
unary operator, and the operand.
|
Modifier and Type | Method and Description |
---|---|
void |
writeToStdOut(PrettyPrinter p)
Write the information pertaining to this AST to STDOUT.
|
analyze, codegen, isStatementExpression, type
codegen, line, partialCodegen
protected JExpression arg
protected JUnaryExpression(int line, String operator, JExpression arg)
line
- line in which the unary expression occurs in the source file.operator
- the unary operator.arg
- the operand.public void writeToStdOut(PrettyPrinter p)
JAST
writeToStdOut
in class JAST
p
- for pretty printing with indentation.