com.redhat.ceylon.compiler.java.codegen.InitializerBuilder Maven / Gradle / Ivy
package com.redhat.ceylon.compiler.java.codegen;
import static com.redhat.ceylon.langtools.tools.javac.code.Flags.PRIVATE;
import static com.redhat.ceylon.langtools.tools.javac.code.Flags.PROTECTED;
import static com.redhat.ceylon.langtools.tools.javac.code.Flags.PUBLIC;
import com.redhat.ceylon.langtools.tools.javac.code.Flags;
import com.redhat.ceylon.langtools.tools.javac.tree.JCTree;
import com.redhat.ceylon.langtools.tools.javac.tree.TreeCopier;
import com.redhat.ceylon.langtools.tools.javac.tree.JCTree.JCAnnotation;
import com.redhat.ceylon.langtools.tools.javac.tree.JCTree.JCMethodDecl;
import com.redhat.ceylon.langtools.tools.javac.tree.JCTree.JCStatement;
import com.redhat.ceylon.langtools.tools.javac.tree.JCTree.JCThrow;
import com.redhat.ceylon.langtools.tools.javac.util.List;
import com.redhat.ceylon.langtools.tools.javac.util.ListBuffer;
import com.redhat.ceylon.model.typechecker.model.Constructor;
public class InitializerBuilder implements ParameterizedBuilder {
private final AbstractTransformer gen;
private long modifiers = 0;
// TODO remove this field
private JCStatement delegateCall;
private final ListBuffer params = ListBuffer.lb();
/**
* For classes with parameter lists this is a {@code List}.
* For classes with constructors it's a
* {@code List} and this we know which
* statements need to be prepended to each transformed constructor body
* and which need to be appended.
*/
private final java.util.List init = new java.util.ArrayList
© 2015 - 2024 Weber Informatics LLC | Privacy Policy