class JSuper extends JExpression
isStatementExpression, type
compilationUnit, line
Constructor and Description |
---|
JSuper(int line)
Construct an AST node for a "super" expression given its line number.
|
Modifier and Type | Method and Description |
---|---|
JExpression |
analyze(Context context)
Analysis involves determining the super class to that in which we are in;
this becomes the type.
|
void |
codegen(CLEmitter output)
Load "this" onto the stack (even if we treat it as its super class.
|
void |
writeToStdOut(PrettyPrinter p)
Write the information pertaining to this AST to STDOUT.
|
codegen, isStatementExpression, type
line, partialCodegen
public JSuper(int line)
line
- line in which the expression occurs in the source file.public JExpression analyze(Context context)
analyze
in class JExpression
context
- context in which names are resolved.public void codegen(CLEmitter output)
public void writeToStdOut(PrettyPrinter p)
JAST
writeToStdOut
in class JAST
p
- for pretty printing with indentation.