public class ImplementationBodyCodegen extends ClassBodyCodegen
context, descriptor, kind, myClass, v
state
typeMapper
bindingTrace
bindingContext
Constructor and Description |
---|
ImplementationBodyCodegen(JetClassOrObject aClass,
ClassContext context,
ClassBuilder v,
GenerationState state,
MemberCodegen parentCodegen) |
Modifier and Type | Method and Description |
---|---|
void |
addClassObjectPropertyToCopy(PropertyDescriptor descriptor,
java.lang.Object defaultValue) |
protected void |
generateDeclaration() |
protected void |
generateDeclaration(PropertyCodegen propertyCodegen,
JetDeclaration declaration) |
protected void |
generateDelegates(ClassDescriptor toClass,
StackValue field) |
static void |
generateInitializers(ExpressionCodegen codegen,
java.util.List<JetDeclaration> declarations,
BindingContext bindingContext,
GenerationState state) |
protected void |
generatePrimaryConstructor() |
protected void |
generateSyntheticAccessors() |
protected void |
generateSyntheticParts() |
protected void |
genInitSingleton(ClassDescriptor fieldTypeDescriptor,
org.jetbrains.jet.codegen.StackValue.Field field) |
protected void |
getSuperClass() |
static void |
initializeProperty(ExpressionCodegen codegen,
BindingContext bindingContext,
JetProperty property) |
static boolean |
shouldInitializeProperty(JetProperty property,
JetTypeMapper typeMapper) |
static boolean |
shouldWriteFieldInitializer(PropertyDescriptor descriptor,
JetTypeMapper mapper) |
createOrGetClInitCodegen, createOrGetClInitMethod, generate, getPrimaryConstructorParameters
genClassOrObject, genFunctionOrProperty, getParentCodegen
getState
getTypeMapper
getBindingTrace
getBindingContext
public ImplementationBodyCodegen(@NotNull JetClassOrObject aClass, @NotNull ClassContext context, @NotNull ClassBuilder v, @NotNull GenerationState state, @Nullable MemberCodegen parentCodegen)
protected void generateDeclaration()
generateDeclaration
in class ClassBodyCodegen
protected void getSuperClass()
protected void generateSyntheticParts()
generateSyntheticParts
in class ClassBodyCodegen
protected void generateSyntheticAccessors()
protected void genInitSingleton(ClassDescriptor fieldTypeDescriptor, org.jetbrains.jet.codegen.StackValue.Field field)
protected void generatePrimaryConstructor()
protected void generateDeclaration(PropertyCodegen propertyCodegen, JetDeclaration declaration)
generateDeclaration
in class ClassBodyCodegen
public static void generateInitializers(@NotNull ExpressionCodegen codegen, @NotNull java.util.List<JetDeclaration> declarations, @NotNull BindingContext bindingContext, @NotNull GenerationState state)
public static void initializeProperty(@NotNull ExpressionCodegen codegen, @NotNull BindingContext bindingContext, @NotNull JetProperty property)
public static boolean shouldWriteFieldInitializer(PropertyDescriptor descriptor, JetTypeMapper mapper)
public static boolean shouldInitializeProperty(@NotNull JetProperty property, @NotNull JetTypeMapper typeMapper)
protected void generateDelegates(ClassDescriptor toClass, StackValue field)
public void addClassObjectPropertyToCopy(PropertyDescriptor descriptor, java.lang.Object defaultValue)