示例#1
0
  public void genDelegate(
      PropertyDescriptor declaration, PropertyDescriptor overriddenDescriptor, StackValue field) {
    JvmPropertyAccessorSignature jvmPropertyAccessorSignature =
        state
            .getInjector()
            .getJetTypeMapper()
            .mapGetterSignature(declaration, OwnerKind.IMPLEMENTATION);
    functionCodegen.genDelegate(
        declaration,
        overriddenDescriptor,
        field,
        jvmPropertyAccessorSignature.getJvmMethodSignature());

    if (declaration.isVar()) {
      jvmPropertyAccessorSignature =
          state
              .getInjector()
              .getJetTypeMapper()
              .mapSetterSignature(declaration, OwnerKind.IMPLEMENTATION);
      functionCodegen.genDelegate(
          declaration,
          overriddenDescriptor,
          field,
          jvmPropertyAccessorSignature.getJvmMethodSignature());
    }
  }