abstract class JUnaryExpression extends JExpression
| Modifier and Type | Field and Description |
|---|---|
protected JExpression |
arg
The operand.
|
isStatementExpression, typecompilationUnit, 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, typecodegen, line, partialCodegenprotected 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)
JASTwriteToStdOut in class JASTp - for pretty printing with indentation.