public class MethodDeclToJavaExt_c extends ToJavaExt_c
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<polyglot.ast.Formal> |
formals |
protected JifMethodInstance |
mi |
| Constructor and Description |
|---|
MethodDeclToJavaExt_c() |
| Modifier and Type | Method and Description |
|---|---|
protected polyglot.ast.Block |
guardWithConstraints(JifToJavaRewriter rw,
polyglot.ast.Block b) |
polyglot.ast.Node |
staticMainToJava(JifToJavaRewriter rw,
polyglot.ast.MethodDecl n)
Rewrite static main(principal p, String[] args) {...} to
static main(String[] args) {Principal p = Runtime.getUser(); {...} };
|
polyglot.ast.Node |
toJava(JifToJavaRewriter rw) |
polyglot.visit.NodeVisitor |
toJavaEnter(JifToJavaRewriter rw) |
toJavaaddDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, ext, ext, extRewrite, extRewriteEnter, extRewriteOverride, init, initPred, lang, node, pred, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, print, printBlock, printSubStmt, superLang, throwTypes, toString, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitListclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewrite, extRewriteEnter, extRewriteOverride, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitListprotected JifMethodInstance mi
protected java.util.List<polyglot.ast.Formal> formals
public polyglot.visit.NodeVisitor toJavaEnter(JifToJavaRewriter rw) throws polyglot.types.SemanticException
toJavaEnter in interface ToJavaExttoJavaEnter in class ToJavaExt_cpolyglot.types.SemanticExceptionpublic polyglot.ast.Node toJava(JifToJavaRewriter rw) throws polyglot.types.SemanticException
toJava in class ToJavaExt_cpolyglot.types.SemanticExceptionpublic polyglot.ast.Node staticMainToJava(JifToJavaRewriter rw, polyglot.ast.MethodDecl n) throws polyglot.types.SemanticException
polyglot.types.SemanticExceptionprotected polyglot.ast.Block guardWithConstraints(JifToJavaRewriter rw, polyglot.ast.Block b) throws polyglot.types.SemanticException
polyglot.types.SemanticException