All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QDebug Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Output stream for debugging information

*

Java wrapper for Qt class QDebug

*/ public class QDebug extends QtObject implements io.qt.core.QIODeviceBase, java.lang.Cloneable, java.lang.AutoCloseable, java.lang.Appendable { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private Object __rcDevice = null; /** *

Java wrapper for Qt enum QDebug::VerbosityLevel

*/ public static class VerbosityLevel{ static { QtJambi_LibraryUtilities.initialize(); } public static final int MinimumVerbosity = 0; public static final int DefaultVerbosity = 2; public static final int MaximumVerbosity = 7; } // end of enum VerbosityLevel /** *

See QDebug::QDebug(QDebug)

*/ public QDebug(io.qt.core.@NonNull QDebug o){ super((QPrivateConstructor)null); this.__rcDevice = o.__rcDevice; this.disabled = o.disabled; initialize_native(this, o); } private native static void initialize_native(QDebug instance, io.qt.core.QDebug o); /** *

See QDebug::QDebug(QIODevice*)

*/ public QDebug(io.qt.core.@Nullable QIODevice device){ super((QPrivateConstructor)null); initialize_native(this, device); __rcDevice = device; } private native static void initialize_native(QDebug instance, io.qt.core.QIODevice device); /** *

See QDebug::QDebug(QtMsgType)

*/ public QDebug(io.qt.core.@NonNull QtMsgType t){ super((QPrivateConstructor)null); initialize_native(this, t); } private native static void initialize_native(QDebug instance, io.qt.core.QtMsgType t); /** *

See QDebug::autoInsertSpaces()const

*/ @QtUninvokable public final boolean autoInsertSpaces(){ return autoInsertSpaces_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean autoInsertSpaces_native_constfct(long __this__nativeId); /** *

See QDebug::maybeQuote(char)

*/ @QtUninvokable public final @NonNull QDebug maybeQuote(byte c){ if(disabled) return this; return maybeQuote_native_char(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @QtUninvokable private native QDebug maybeQuote_native_char(long __this__nativeId, byte c); /** *

See QDebug::maybeSpace()

*/ @QtUninvokable public final @NonNull QDebug maybeSpace(){ if(disabled) return this; return maybeSpace_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native QDebug maybeSpace_native(long __this__nativeId); /** *

See QDebug::noquote()

*/ @QtUninvokable public final @NonNull QDebug noquote(){ return noquote_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native QDebug noquote_native(long __this__nativeId); /** *

See QDebug::nospace()

*/ @QtUninvokable public final @NonNull QDebug nospace(){ return nospace_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native QDebug nospace_native(long __this__nativeId); /** *

See QDebug::operator<<(QByteArray)

*/ @QtUninvokable public final @NonNull QDebug append(io.qt.core.@NonNull QByteArray t){ if(disabled) return this; return append_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(t)); } @QtUninvokable private native QDebug append_native_cref_QByteArray(long __this__nativeId, long t); /** *

See QDebug::operator<<(QByteArrayView)

*/ @QtUninvokable public final @NonNull QDebug append(io.qt.core.@NonNull QByteArrayView t){ if(disabled) return this; return append_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(t)); } @QtUninvokable private native QDebug append_native_QByteArrayView(long __this__nativeId, long t); /** *

See QDebug::operator<<(QChar)

*/ @QtUninvokable public final @NonNull QDebug append(char t){ if(disabled) return this; return append_native_QChar(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @QtUninvokable private native QDebug append_native_QChar(long __this__nativeId, char t); /** *

See QDebug::operator<<(QString)

*/ @QtUninvokable public final @NonNull QDebug append(java.lang.@Nullable CharSequence t){ if(disabled) return this; return append_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @QtUninvokable private native QDebug append_native_cref_QString(long __this__nativeId, java.lang.CharSequence t); /** *

See QDebug::operator<<(bool)

*/ @QtUninvokable public final @NonNull QDebug append(boolean t){ if(disabled) return this; return append_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @QtUninvokable private native QDebug append_native_bool(long __this__nativeId, boolean t); /** *

See QDebug::operator<<(char)

*/ @QtUninvokable public final @NonNull QDebug append(byte t){ if(disabled) return this; return append_native_char(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @QtUninvokable private native QDebug append_native_char(long __this__nativeId, byte t); /** *

See QDebug::operator<<(const char*)

*/ @QtUninvokable public final @NonNull QDebug append(java.lang.@Nullable String t){ if(disabled) return this; return append_native_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @QtUninvokable private native QDebug append_native_const_char_ptr(long __this__nativeId, java.lang.String t); /** *

See QDebug::operator<<(double)

*/ @QtUninvokable public final @NonNull QDebug append(double t){ if(disabled) return this; return append_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @QtUninvokable private native QDebug append_native_double(long __this__nativeId, double t); /** *

See QDebug::operator<<(float)

*/ @QtUninvokable public final @NonNull QDebug append(float t){ if(disabled) return this; return append_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @QtUninvokable private native QDebug append_native_float(long __this__nativeId, float t); /** *

See QDebug::operator<<(int)

*/ @QtUninvokable public final @NonNull QDebug append(int t){ if(disabled) return this; return append_native_signed_int(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @QtUninvokable private native QDebug append_native_signed_int(long __this__nativeId, int t); /** *

See QDebug::operator<<(qint64)

*/ @QtUninvokable public final @NonNull QDebug append(long t){ if(disabled) return this; return append_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @QtUninvokable private native QDebug append_native_qint64(long __this__nativeId, long t); /** *

See QDebug::operator<<(short)

*/ @QtUninvokable public final @NonNull QDebug append(short t){ if(disabled) return this; return append_native_signed_short(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @QtUninvokable private native QDebug append_native_signed_short(long __this__nativeId, short t); /** *

See QDebug::quote()

*/ @QtUninvokable public final @NonNull QDebug quote(){ return quote_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native QDebug quote_native(long __this__nativeId); /** *

See QDebug::resetFormat()

*/ @QtUninvokable public final @NonNull QDebug resetFormat(){ return resetFormat_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native QDebug resetFormat_native(long __this__nativeId); /** *

See QDebug::setAutoInsertSpaces(bool)

*/ @QtUninvokable public final void setAutoInsertSpaces(boolean b){ setAutoInsertSpaces_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b); } @QtUninvokable private native void setAutoInsertSpaces_native_bool(long __this__nativeId, boolean b); /** *

See QDebug::setVerbosity(int)

*/ @QtUninvokable public final void setVerbosity(int verbosityLevel){ setVerbosity_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), verbosityLevel); } @QtUninvokable private native void setVerbosity_native_int(long __this__nativeId, int verbosityLevel); /** *

See QDebug::space()

*/ @QtUninvokable public final @NonNull QDebug space(){ return space_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native QDebug space_native(long __this__nativeId); /** *

See QDebug::swap(QDebug&)

*/ @QtUninvokable public final void swap(io.qt.core.@StrictNonNull QDebug other){ Object __rcDevice = this.__rcDevice; this.__rcDevice = other.__rcDevice; other.__rcDevice = __rcDevice; boolean disabled = this.disabled; this.disabled = other.disabled; other.disabled = disabled; java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QDebug(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QDebug(long __this__nativeId, long other); /** *

See QDebug::verbosity()const

*/ @QtUninvokable public final int verbosity(){ return verbosity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int verbosity_native_constfct(long __this__nativeId); /** *

See QDebug::verbosity(int)

*/ @QtUninvokable public final @NonNull QDebug verbosity(int verbosityLevel){ return verbosity_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), verbosityLevel); } @QtUninvokable private native QDebug verbosity_native_int(long __this__nativeId, int verbosityLevel); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QDebug(QPrivateConstructor p) { super(p); } /** * Deletes the underlying native object. */ @Override public void close(){ dispose(); } /** * Appends a subsequence of the specified character sequence to this QDebug. */ @Override public final @NonNull QDebug append(CharSequence csq, int start, int end) { if(!disabled) append(csq==null ? "null" : csq.subSequence(start, end)); return this; } /** *

See Qt::endl

*/ @QtUninvokable public final @NonNull QDebug endl(){ if(!disabled) endl(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void endl(long __this__nativeId); /** *

See Qt::flush

*/ @QtUninvokable public final @NonNull QDebug flush(){ if(!disabled) flush(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void flush(long __this__nativeId); /** *

See Qt::reset

*/ @QtUninvokable public final @NonNull QDebug reset(){ if(!disabled) reset(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void reset(long __this__nativeId); /** *

See Qt::bin

*/ @QtUninvokable public final @NonNull QDebug bin(){ if(!disabled) bin(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void bin(long __this__nativeId); /** *

See Qt::oct

*/ @QtUninvokable public final @NonNull QDebug oct(){ if(!disabled) oct(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void oct(long __this__nativeId); /** *

See Qt::hex

*/ @QtUninvokable public final @NonNull QDebug hex(){ if(!disabled) hex(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void hex(long __this__nativeId); /** *

See Qt::dec

*/ @QtUninvokable public final @NonNull QDebug dec(){ if(!disabled) dec(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void dec(long __this__nativeId); /** *

See Qt::showbase

*/ @QtUninvokable public final @NonNull QDebug showbase(){ if(!disabled) showbase(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void showbase(long __this__nativeId); /** *

See Qt::forcesign

*/ @QtUninvokable public final @NonNull QDebug forcesign(){ if(!disabled) forcesign(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void forcesign(long __this__nativeId); /** *

See Qt::forcepoint

*/ @QtUninvokable public final @NonNull QDebug forcepoint(){ if(!disabled) forcepoint(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void forcepoint(long __this__nativeId); /** *

See Qt::noshowbase

*/ @QtUninvokable public final @NonNull QDebug noshowbase(){ if(!disabled) noshowbase(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void noshowbase(long __this__nativeId); /** *

See Qt::noforcesign

*/ @QtUninvokable public final @NonNull QDebug noforcesign(){ if(!disabled) noforcesign(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void noforcesign(long __this__nativeId); /** *

See Qt::noforcepoint

*/ @QtUninvokable public final @NonNull QDebug noforcepoint(){ if(!disabled) noforcepoint(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void noforcepoint(long __this__nativeId); /** *

See Qt::uppercasebase

*/ @QtUninvokable public final @NonNull QDebug uppercasebase(){ if(!disabled) uppercasebase(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void uppercasebase(long __this__nativeId); /** *

See Qt::uppercasedigits

*/ @QtUninvokable public final @NonNull QDebug uppercasedigits(){ if(!disabled) uppercasedigits(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void uppercasedigits(long __this__nativeId); /** *

See Qt::lowercasebase

*/ @QtUninvokable public final @NonNull QDebug lowercasebase(){ if(!disabled) lowercasebase(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void lowercasebase(long __this__nativeId); /** *

See Qt::lowercasedigits

*/ @QtUninvokable public final @NonNull QDebug lowercasedigits(){ if(!disabled) lowercasedigits(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void lowercasedigits(long __this__nativeId); /** *

See Qt::fixed

*/ @QtUninvokable public final @NonNull QDebug fixed(){ if(!disabled) fixed(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void fixed(long __this__nativeId); /** *

See Qt::scientific

*/ @QtUninvokable public final @NonNull QDebug scientific(){ if(!disabled) scientific(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void scientific(long __this__nativeId); /** *

See Qt::left

*/ @QtUninvokable public final @NonNull QDebug left(){ if(!disabled) left(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void left(long __this__nativeId); /** *

See Qt::right

*/ @QtUninvokable public final @NonNull QDebug right(){ if(!disabled) right(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void right(long __this__nativeId); /** *

See Qt::center

*/ @QtUninvokable public final @NonNull QDebug center(){ if(!disabled) center(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void center(long __this__nativeId); /** *

See Qt::bom

*/ @QtUninvokable public final @NonNull QDebug bom(){ if(!disabled) bom(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void bom(long __this__nativeId); /** *

See Qt::ws

*/ @QtUninvokable public final @NonNull QDebug ws(){ if(!disabled) ws(QtJambi_LibraryUtilities.internal.nativeId(this)); return this; } @QtUninvokable private native void ws(long __this__nativeId); /** *

See qSetFieldWidth(int width)

*/ @QtUninvokable public final @NonNull QDebug qSetFieldWidth(int width){ if(!disabled) setFieldWidth(QtJambi_LibraryUtilities.internal.nativeId(this), width); return this; } @QtUninvokable private native void setFieldWidth(long __this__nativeId, int width); /** *

See qSetRealNumberPrecision(int precision)

*/ @QtUninvokable public final @NonNull QDebug qSetRealNumberPrecision(int precision){ if(!disabled) setRealNumberPrecision(QtJambi_LibraryUtilities.internal.nativeId(this), precision); return this; } @QtUninvokable private native void setRealNumberPrecision(long __this__nativeId, int precision); /** *

See qSetPadChar(QChar ch)

*/ @QtUninvokable public final @NonNull QDebug qSetPadChar(char ch){ if(!disabled) setPadChar(QtJambi_LibraryUtilities.internal.nativeId(this), ch); return this; } @QtUninvokable private native void setPadChar(long __this__nativeId, char ch); /** *

See QDebug::QDebug(QString*)

*/ @SuppressWarnings("hiding") public QDebug(String string){ this(new QTextStream.StringDevice(java.util.Objects.requireNonNull(string, "Argument 'string': null not expected."), QIODevice.OpenModeFlag.WriteOnly.asFlags())); } /** *

See QDebug::operator<<

*/ @QtUninvokable public final @NonNull QDebug append(java.lang.Object obj){ if(!disabled){ QMetaType metaType = QList.getMetaType(obj); debugStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(metaType), obj); } return this; } @QtUninvokable private native static void debugStream(long debug, long metaType, Object value); @QtPropertyMember(enabled=false) @NativeAccess private boolean disabled; /** *

Creates and returns a copy of this object.

See QDebug::QDebug(QDebug)

*/ @QtUninvokable @Override public QDebug clone() { QDebug clone = clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); clone.__rcDevice = this.__rcDevice; clone.disabled = this.disabled; return clone; } private static native QDebug clone_native(long __this_nativeId); /** *

Overloaded function for {@link #maybeQuote(byte)} * with c = '"'.

*/ @QtUninvokable public final @NonNull QDebug maybeQuote() { return maybeQuote((byte)'"'); } /** *

Overloaded function for {@link #append(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final @NonNull QDebug append(java.nio.@NonNull ByteBuffer t) { return append(new io.qt.core.QByteArrayView(t)); } /** *

Overloaded function for {@link #append(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final @NonNull QDebug append(byte @NonNull[] t) { return append(new io.qt.core.QByteArrayView(t)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy