class JLiteralNull extends JExpression
isStatementExpression, type
compilationUnit, line
Constructor and Description |
---|
JLiteralNull(int line)
Construct an AST node for the null literal given its line number.
|
Modifier and Type | Method and Description |
---|---|
JExpression |
analyze(Context context)
Analyzing the null literal is trivial.
|
void |
codegen(CLEmitter output)
Generating code for a null literal means generating code to push it onto
the stack.
|
void |
writeToStdOut(PrettyPrinter p)
Write the information pertaining to this AST to STDOUT.
|
codegen, isStatementExpression, type
line, partialCodegen
public JLiteralNull(int line)
line
- line in which the literal occurs in the source file.public JExpression analyze(Context context)
analyze
in class JExpression
context
- context in which names are resolved (ignored here).public void codegen(CLEmitter output)
public void writeToStdOut(PrettyPrinter p)
JAST
writeToStdOut
in class JAST
p
- for pretty printing with indentation.