org.snapscript.tree.define.ClassConstructor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
package org.snapscript.tree.define;
import org.snapscript.core.Statement;
import org.snapscript.core.Type;
import org.snapscript.core.TypeFactory;
import org.snapscript.tree.ModifierList;
import org.snapscript.tree.annotation.AnnotationList;
import org.snapscript.tree.function.ParameterList;
public class ClassConstructor extends MemberConstructor {
public ClassConstructor(AnnotationList annotations, ModifierList modifiers, ParameterList parameters, Statement body){
super(annotations, modifiers, parameters, null, body);
}
public ClassConstructor(AnnotationList annotations, ModifierList modifiers, ParameterList parameters, TypePart part, Statement body){
super(annotations, modifiers, parameters, part, body);
}
@Override
public TypeFactory compile(TypeFactory factory, Type type) throws Exception {
return compile(factory, type, true);
}
}