Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary
`protected JifConstructorInstance` | `ci`
`protected java.util.List` | `formals`

Fields inherited from class polyglot.ast.Ext_c
`ext, node`

Constructor Summary
`ConstructorDeclToJavaExt_c()`

Method Summary
`protected void` | `addConstructorReturn(JifToJavaRewriter rw, JifConstructorInstance ci, java.util.List inits, polyglot.util.Position pos)`
`protected java.util.List` | `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)` Rewrite constructor C(a) to method C C$(a)
`polyglot.visit.NodeVisitor` | `toJavaEnter(JifToJavaRewriter rw)`

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`

Field Detail

### ci

    protected JifConstructorInstance ci

### formals

    protected java.util.List formals

Constructor Detail

### ConstructorDeclToJavaExt_c

    public ConstructorDeclToJavaExt_c()

Method Detail

### 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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD