org.jetbrains.jet.codegen
Class ImplementationBodyCodegen
java.lang.Object
org.jetbrains.jet.codegen.binding.BindingContextAware
org.jetbrains.jet.codegen.binding.BindingTraceAware
org.jetbrains.jet.codegen.state.TypeMapperAware
org.jetbrains.jet.codegen.state.GenerationStateAware
org.jetbrains.jet.codegen.ParentCodegenAwareImpl
org.jetbrains.jet.codegen.MemberCodegen
org.jetbrains.jet.codegen.ClassBodyCodegen
org.jetbrains.jet.codegen.ImplementationBodyCodegen
- All Implemented Interfaces:
- ParentCodegenAware
public class ImplementationBodyCodegen
- extends ClassBodyCodegen
Method Summary |
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 |
generateKotlinAnnotation()
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImplementationBodyCodegen
public ImplementationBodyCodegen(@NotNull
JetClassOrObject aClass,
@NotNull
ClassContext context,
@NotNull
ClassBuilder v,
@NotNull
GenerationState state,
@Nullable
MemberCodegen parentCodegen)
generateDeclaration
protected void generateDeclaration()
- Specified by:
generateDeclaration
in class ClassBodyCodegen
generateKotlinAnnotation
protected void generateKotlinAnnotation()
- Specified by:
generateKotlinAnnotation
in class ClassBodyCodegen
getSuperClass
protected void getSuperClass()
generateSyntheticParts
protected void generateSyntheticParts()
- Overrides:
generateSyntheticParts
in class ClassBodyCodegen
generateSyntheticAccessors
protected void generateSyntheticAccessors()
genInitSingleton
protected void genInitSingleton(ClassDescriptor fieldTypeDescriptor,
org.jetbrains.jet.codegen.StackValue.Field field)
generatePrimaryConstructor
protected void generatePrimaryConstructor()
generateDeclaration
protected void generateDeclaration(PropertyCodegen propertyCodegen,
JetDeclaration declaration)
- Overrides:
generateDeclaration
in class ClassBodyCodegen
generateInitializers
public static void generateInitializers(@NotNull
ExpressionCodegen codegen,
@NotNull
java.util.List<JetDeclaration> declarations,
@NotNull
BindingContext bindingContext,
@NotNull
GenerationState state)
initializeProperty
public static void initializeProperty(@NotNull
ExpressionCodegen codegen,
@NotNull
BindingContext bindingContext,
@NotNull
JetProperty property)
shouldWriteFieldInitializer
public static boolean shouldWriteFieldInitializer(PropertyDescriptor descriptor,
JetTypeMapper mapper)
shouldInitializeProperty
public static boolean shouldInitializeProperty(@NotNull
JetProperty property,
@NotNull
JetTypeMapper typeMapper)
generateDelegates
protected void generateDelegates(ClassDescriptor toClass,
StackValue field)
addClassObjectPropertyToCopy
public void addClassObjectPropertyToCopy(PropertyDescriptor descriptor,
java.lang.Object defaultValue)