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, 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 JifConstructorInstance ci
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 final polyglot.ast.Node toJava(JifToJavaRewriter rw) throws polyglot.types.SemanticException
toJava
in class ToJavaExt_c
polyglot.types.SemanticException
public polyglot.ast.Node toJava(JifToJavaRewriter rw, polyglot.visit.NodeVisitor childVisitor) throws polyglot.types.SemanticException
toJava
in interface ToJavaExt
toJava
in class ToJavaExt_c
childVisitor
- The visitor that was used to rewrite node()'s children.polyglot.types.SemanticException
protected 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)