Exemplo n.º 1
0
  public void setCompletes(final boolean completes) {
    final com.apple.jobjc.Invoke.MsgSend setCompletes_IMetInst = get_setCompletes_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    setCompletes_IMetInst.init(nativeBuffer, this);
    com.apple.jobjc.PrimitiveCoder.BoolCoder.INST.push(nativeBuffer, completes);
    setCompletes_IMetInst.invoke(nativeBuffer);
  }
Exemplo n.º 2
0
  public void setHasVerticalScroller(final boolean flag) {
    final com.apple.jobjc.Invoke.MsgSend setHasVerticalScroller_IMetInst =
        get_setHasVerticalScroller_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    setHasVerticalScroller_IMetInst.init(nativeBuffer, this);
    com.apple.jobjc.PrimitiveCoder.BoolCoder.INST.push(nativeBuffer, flag);
    setHasVerticalScroller_IMetInst.invoke(nativeBuffer);
  }
Exemplo n.º 3
0
  public boolean completes() {
    final com.apple.jobjc.Invoke.MsgSend completes_IMetInst = get_completes_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    completes_IMetInst.init(nativeBuffer, this);
    completes_IMetInst.invoke(nativeBuffer);
    final boolean returnValue =
        (boolean) (com.apple.jobjc.PrimitiveCoder.BoolCoder.INST.popBoolean(nativeBuffer));
    return returnValue;
  }
Exemplo n.º 4
0
  public boolean writeData(final com.apple.jobjc.foundation.NSData data) {
    final com.apple.jobjc.Invoke.MsgSend writeData_IMetInst = get_writeData_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    writeData_IMetInst.init(nativeBuffer, this);
    com.apple.jobjc.Coder.IDCoder.INST.push(nativeBuffer, data);
    writeData_IMetInst.invoke(nativeBuffer);
    final boolean returnValue =
        (boolean) (com.apple.jobjc.PrimitiveCoder.BoolCoder.INST.popBoolean(nativeBuffer));
    return returnValue;
  }
Exemplo n.º 5
0
  public void didLoadBytes_loadComplete(
      final com.apple.jobjc.foundation.NSData newBytes, final boolean yorn) {
    final com.apple.jobjc.Invoke.MsgSend didLoadBytes_loadComplete_IMetInst =
        get_didLoadBytes_loadComplete_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    didLoadBytes_loadComplete_IMetInst.init(nativeBuffer, this);
    com.apple.jobjc.Coder.IDCoder.INST.push(nativeBuffer, newBytes);
    com.apple.jobjc.PrimitiveCoder.BoolCoder.INST.push(nativeBuffer, yorn);
    didLoadBytes_loadComplete_IMetInst.invoke(nativeBuffer);
  }
Exemplo n.º 6
0
  public <T extends com.apple.jobjc.ID> T initWithURL_cached(
      final com.apple.jobjc.foundation.NSURL anURL, final boolean willCache) {
    final com.apple.jobjc.Invoke.MsgSend initWithURL_cached_IMetInst =
        get_initWithURL_cached_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    initWithURL_cached_IMetInst.init(nativeBuffer, this);
    com.apple.jobjc.Coder.IDCoder.INST.push(nativeBuffer, anURL);
    com.apple.jobjc.PrimitiveCoder.BoolCoder.INST.push(nativeBuffer, willCache);
    initWithURL_cached_IMetInst.invoke(nativeBuffer);
    final com.apple.jobjc.ID returnValue =
        (com.apple.jobjc.ID) (com.apple.jobjc.Coder.IDCoder.INST.pop(nativeBuffer));
    return (T) returnValue;
  }
  public <T extends com.apple.jobjc.ID> T initWithMantissa_exponent_isNegative(
      final long mantissa, final short exponent, final boolean flag) {
    final com.apple.jobjc.Invoke.MsgSend initWithMantissa_exponent_isNegative_IMetInst =
        get_initWithMantissa_exponent_isNegative_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    initWithMantissa_exponent_isNegative_IMetInst.init(nativeBuffer, this);
    com.apple.jobjc.PrimitiveCoder.ULongLongCoder.INST.push(nativeBuffer, mantissa);
    com.apple.jobjc.PrimitiveCoder.SShortCoder.INST.push(nativeBuffer, exponent);
    com.apple.jobjc.PrimitiveCoder.BoolCoder.INST.push(nativeBuffer, flag);
    initWithMantissa_exponent_isNegative_IMetInst.invoke(nativeBuffer);
    final com.apple.jobjc.ID returnValue =
        (com.apple.jobjc.ID) (com.apple.jobjc.Coder.IDCoder.INST.pop(nativeBuffer));
    return (T) returnValue;
  }
Exemplo n.º 8
0
  public <T extends com.apple.jobjc.ID> T dataWithBytesNoCopy_length_freeWhenDone(
      final com.apple.jobjc.Pointer<Void> bytes, final long length, final boolean b) {
    final com.apple.jobjc.Invoke.MsgSend dataWithBytesNoCopy_length_freeWhenDone_CMetInst =
        get_dataWithBytesNoCopy_length_freeWhenDone_CMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    dataWithBytesNoCopy_length_freeWhenDone_CMetInst.init(nativeBuffer, this);
    com.apple.jobjc.Coder.PointerCoder.INST.push(nativeBuffer, bytes);
    com.apple.jobjc.MixedPrimitiveCoder.UIntULongLongCoder.push(nativeBuffer, length);
    com.apple.jobjc.PrimitiveCoder.BoolCoder.INST.push(nativeBuffer, b);
    dataWithBytesNoCopy_length_freeWhenDone_CMetInst.invoke(nativeBuffer);
    final com.apple.jobjc.ID returnValue =
        (com.apple.jobjc.ID) (com.apple.jobjc.Coder.IDCoder.INST.pop(nativeBuffer));
    return (T) returnValue;
  }
Exemplo n.º 9
0
  public boolean writeProperty_forKey(
      final com.apple.jobjc.ID propertyValue,
      final com.apple.jobjc.foundation.NSString propertyKey) {
    final com.apple.jobjc.Invoke.MsgSend writeProperty_forKey_IMetInst =
        get_writeProperty_forKey_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    writeProperty_forKey_IMetInst.init(nativeBuffer, this);
    com.apple.jobjc.Coder.IDCoder.INST.push(nativeBuffer, propertyValue);
    com.apple.jobjc.Coder.IDCoder.INST.push(nativeBuffer, propertyKey);
    writeProperty_forKey_IMetInst.invoke(nativeBuffer);
    final boolean returnValue =
        (boolean) (com.apple.jobjc.PrimitiveCoder.BoolCoder.INST.popBoolean(nativeBuffer));
    return returnValue;
  }
Exemplo n.º 10
0
  public boolean getInputStream_outputStream(
      final com.apple.jobjc.Pointer<com.apple.jobjc.foundation.NSInputStream> inputStream,
      final com.apple.jobjc.Pointer<com.apple.jobjc.foundation.NSOutputStream> outputStream) {
    final com.apple.jobjc.Invoke.MsgSend getInputStream_outputStream_IMetInst =
        get_getInputStream_outputStream_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    getInputStream_outputStream_IMetInst.init(nativeBuffer, this);
    com.apple.jobjc.Coder.PointerCoder.INST.push(nativeBuffer, inputStream);
    com.apple.jobjc.Coder.PointerCoder.INST.push(nativeBuffer, outputStream);
    getInputStream_outputStream_IMetInst.invoke(nativeBuffer);
    final boolean returnValue =
        (boolean) (com.apple.jobjc.PrimitiveCoder.BoolCoder.INST.popBoolean(nativeBuffer));
    return returnValue;
  }