public class ConstructorDeclToJavaExt_c extends ToJavaExt_c
| Modifier and Type | Field and Description |
|---|---|
protected JifConstructorInstance |
ci |
protected java.util.List<polyglot.ast.Formal> |
formals |
| Constructor and Description |
|---|
ConstructorDeclToJavaExt_c() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConstructorReturn(JifToJavaRewriter rw,
JifConstructorInstance ci,
java.util.List<polyglot.ast.Stmt> inits,
polyglot.util.Position pos) |
protected java.util.List<polyglot.ast.Stmt> |
additionalInits(JifToJavaRewriter rw)
Allow subclasses to add additional initializations
|
protected polyglot.ast.Block |
jifConstructorBody(JifToJavaRewriter rw,
polyglot.ast.Block body)
Allow subclasses to modify the Jif constructor body.
|
polyglot.ast.Node |
toJava(JifToJavaRewriter rw) |
polyglot.ast.Node |
toJava(JifToJavaRewriter rw,
polyglot.visit.NodeVisitor childVisitor)
Rewrite constructor C(a) to method C C$(a)
|
polyglot.visit.NodeVisitor |
toJavaEnter(JifToJavaRewriter rw) |
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, 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 JifConstructorInstance ci
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 final polyglot.ast.Node toJava(JifToJavaRewriter rw) throws polyglot.types.SemanticException
toJava in class ToJavaExt_cpolyglot.types.SemanticExceptionpublic polyglot.ast.Node toJava(JifToJavaRewriter rw, polyglot.visit.NodeVisitor childVisitor) throws polyglot.types.SemanticException
toJava in interface ToJavaExttoJava in class ToJavaExt_cchildVisitor - The visitor that was used to rewrite node()'s children.polyglot.types.SemanticExceptionprotected void addConstructorReturn(JifToJavaRewriter rw, JifConstructorInstance ci, java.util.List<polyglot.ast.Stmt> inits, polyglot.util.Position pos)
protected polyglot.ast.Block jifConstructorBody(JifToJavaRewriter rw, polyglot.ast.Block body)
protected java.util.List<polyglot.ast.Stmt> additionalInits(JifToJavaRewriter rw)