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) |
toJava
addDecls, 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, visitList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDecls, 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, visitList
protected JifMethodInstance mi
protected java.util.List<polyglot.ast.Formal> formals
public polyglot.visit.NodeVisitor toJavaEnter(JifToJavaRewriter rw) throws polyglot.types.SemanticException
toJavaEnter
in interface ToJavaExt
toJavaEnter
in class ToJavaExt_c
polyglot.types.SemanticException
public polyglot.ast.Node toJava(JifToJavaRewriter rw) throws polyglot.types.SemanticException
toJava
in class ToJavaExt_c
polyglot.types.SemanticException
public polyglot.ast.Node staticMainToJava(JifToJavaRewriter rw, polyglot.ast.MethodDecl n) throws polyglot.types.SemanticException
polyglot.types.SemanticException
protected polyglot.ast.Block guardWithConstraints(JifToJavaRewriter rw, polyglot.ast.Block b) throws polyglot.types.SemanticException
polyglot.types.SemanticException