class JSuper extends JExpression
isStatementExpression, typecompilationUnit, 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, typeline, partialCodegenpublic JSuper(int line)
line - line in which the expression occurs in the source file.public JExpression analyze(Context context)
analyze in class JExpressioncontext - context in which names are resolved.public void codegen(CLEmitter output)
public void writeToStdOut(PrettyPrinter p)
JASTwriteToStdOut in class JASTp - for pretty printing with indentation.