jif.translate
Class ConstructorDeclToJavaExt_c
java.lang.Object
polyglot.ast.Ext_c
jif.translate.ToJavaExt_c
jif.translate.ConstructorDeclToJavaExt_c
- All Implemented Interfaces:
- java.lang.Cloneable, ToJavaExt, polyglot.ast.Ext, polyglot.util.Copy
public class ConstructorDeclToJavaExt_c
- extends ToJavaExt_c
Fields inherited from class polyglot.ast.Ext_c |
ext, node |
Methods inherited from class polyglot.ast.Ext_c |
copy, dump, ext, ext, init, node, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface polyglot.ast.Ext |
dump, ext, ext, init, node |
Methods inherited from interface polyglot.util.Copy |
copy |
ci
protected JifConstructorInstance ci
formals
protected java.util.List formals
ConstructorDeclToJavaExt_c
public ConstructorDeclToJavaExt_c()
toJavaEnter
public polyglot.visit.NodeVisitor toJavaEnter(JifToJavaRewriter rw)
throws polyglot.types.SemanticException
- Specified by:
toJavaEnter
in interface ToJavaExt
- Overrides:
toJavaEnter
in class ToJavaExt_c
- Throws:
polyglot.types.SemanticException
toJava
public polyglot.ast.Node toJava(JifToJavaRewriter rw)
throws polyglot.types.SemanticException
- Rewrite constructor C(a) to method C C$(a)
- Specified by:
toJava
in interface ToJavaExt
- Specified by:
toJava
in class ToJavaExt_c
- Throws:
polyglot.types.SemanticException
addConstructorReturn
protected void addConstructorReturn(JifToJavaRewriter rw,
JifConstructorInstance ci,
java.util.List inits,
polyglot.util.Position pos)
jifConstructorBody
protected polyglot.ast.Block jifConstructorBody(JifToJavaRewriter rw,
polyglot.ast.Block body)
- Allow subclasses to modify the Jif constructor body.
additionalInits
protected java.util.List additionalInits(JifToJavaRewriter rw)
- Allow subclasses to add additional initializations