
io.qt.core.QDebug Maven / Gradle / Ivy
package io.qt.core;
/**
* Output stream for debugging information
* Java wrapper for Qt class QDebug
*/
public class QDebug extends io.qt.QtObject
implements io.qt.core.QIODeviceBase,
java.lang.Cloneable,
java.lang.AutoCloseable
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.QtPropertyMember(enabled=false)
private Object __rcDevice = null;
/**
* Java wrapper for Qt enum QDebug::VerbosityLevel
*/
public static class VerbosityLevel{
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(QIODevice*)
*/
public QDebug(io.qt.core.QIODevice device){
super((QPrivateConstructor)null);
initialize_native(this, device);
__rcDevice = device;
}
private native static void initialize_native(QDebug instance, io.qt.core.QIODevice device);
/**
*
*/
public QDebug(io.qt.core.QtMsgType t){
super((QPrivateConstructor)null);
initialize_native(this, t);
}
private native static void initialize_native(QDebug instance, io.qt.core.QtMsgType t);
/**
*
*/
public QDebug(io.qt.core.QDebug o){
super((QPrivateConstructor)null);
__rcDevice = o.__rcDevice;
initialize_native(this, o);
}
private native static void initialize_native(QDebug instance, io.qt.core.QDebug o);
/**
* See QDebug::autoInsertSpaces()const
*/
@io.qt.QtUninvokable
public final boolean autoInsertSpaces(){
return autoInsertSpaces_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean autoInsertSpaces_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #maybeQuote(byte)}
* with c = '"'
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug maybeQuote() {
return maybeQuote((byte)'"');
}
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug maybeQuote(byte c){
maybeQuote_native_char(QtJambi_LibraryUtilities.internal.nativeId(this), c);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug maybeQuote_native_char(long __this__nativeId, byte c);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug maybeSpace(){
maybeSpace_native(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug maybeSpace_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug noquote(){
noquote_native(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug noquote_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug nospace(){
nospace_native(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug nospace_native(long __this__nativeId);
/**
* See QDebug::operator<<(QByteArrayView)
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(io.qt.core.QByteArrayView t){
append_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(t));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_QByteArrayView(long __this__nativeId, long t);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(char t){
append_native_QChar(QtJambi_LibraryUtilities.internal.nativeId(this), t);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_QChar(long __this__nativeId, char t);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(boolean t){
append_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), t);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_bool(long __this__nativeId, boolean t);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(byte t){
append_native_char(QtJambi_LibraryUtilities.internal.nativeId(this), t);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_char(long __this__nativeId, byte t);
/**
* See QDebug::operator<<(QByteArray)
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(io.qt.core.QByteArray t){
append_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(t));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_cref_QByteArray(long __this__nativeId, long t);
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(java.lang.String t){
append_native_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), t);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_const_char_ptr(long __this__nativeId, java.lang.String t);
/**
* See QDebug::operator<<(double)
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(double t){
append_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), t);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_double(long __this__nativeId, double t);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(float t){
append_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), t);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_float(long __this__nativeId, float t);
/**
* See QDebug::operator<<(qint64)
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(long t){
append_native_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), t);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_long_long(long __this__nativeId, long t);
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(int t){
append_native_signed_int(QtJambi_LibraryUtilities.internal.nativeId(this), t);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_signed_int(long __this__nativeId, int t);
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(short t){
append_native_signed_short(QtJambi_LibraryUtilities.internal.nativeId(this), t);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug append_native_signed_short(long __this__nativeId, short t);
/**
* See QDebug::quote()
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug quote(){
quote_native(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug quote_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug resetFormat(){
resetFormat_native(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug resetFormat_native(long __this__nativeId);
/**
* See QDebug::setAutoInsertSpaces(bool)
*/
@io.qt.QtUninvokable
public final void setAutoInsertSpaces(boolean b){
setAutoInsertSpaces_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b);
}
@io.qt.QtUninvokable
private native void setAutoInsertSpaces_native_bool(long __this__nativeId, boolean b);
/**
*
*/
@io.qt.QtUninvokable
public final void setVerbosity(int verbosityLevel){
setVerbosity_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), verbosityLevel);
}
@io.qt.QtUninvokable
private native void setVerbosity_native_int(long __this__nativeId, int verbosityLevel);
/**
* See QDebug::space()
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug space(){
space_native(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug space_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final void swap(io.qt.core.QDebug other){
Object __rcDevice = this.__rcDevice;
this.__rcDevice = other.__rcDevice;
other.__rcDevice = __rcDevice;
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QDebug(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void swap_native_ref_QDebug(long __this__nativeId, long other);
/**
*
*/
@io.qt.QtUninvokable
public final int verbosity(){
return verbosity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int verbosity_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug verbosity(int verbosityLevel){
verbosity_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), verbosityLevel);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QDebug verbosity_native_int(long __this__nativeId, int verbosityLevel);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QDebug(QPrivateConstructor p) { super(p); }
@Override
public void close(){
dispose();
}
/**
* See Qt::endl
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug endl(){
endl(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void endl(long __this__nativeId);
/**
* See Qt::flush
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug flush(){
flush(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void flush(long __this__nativeId);
/**
* See Qt::reset
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug reset(){
reset(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void reset(long __this__nativeId);
/**
* See Qt::bin
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug bin(){
bin(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void bin(long __this__nativeId);
/**
* See Qt::oct
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug oct(){
oct(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void oct(long __this__nativeId);
/**
* See Qt::hex
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug hex(){
hex(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void hex(long __this__nativeId);
/**
* See Qt::dec
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug dec(){
dec(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void dec(long __this__nativeId);
/**
* See Qt::showbase
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug showbase(){
showbase(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void showbase(long __this__nativeId);
/**
* See Qt::forcesign
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug forcesign(){
forcesign(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void forcesign(long __this__nativeId);
/**
* See Qt::forcepoint
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug forcepoint(){
forcepoint(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void forcepoint(long __this__nativeId);
/**
* See Qt::noshowbase
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug noshowbase(){
noshowbase(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void noshowbase(long __this__nativeId);
/**
* See Qt::noforcesign
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug noforcesign(){
noforcesign(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void noforcesign(long __this__nativeId);
/**
* See Qt::noforcepoint
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug noforcepoint(){
noforcepoint(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void noforcepoint(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug uppercasebase(){
uppercasebase(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void uppercasebase(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug uppercasedigits(){
uppercasedigits(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void uppercasedigits(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug lowercasebase(){
lowercasebase(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void lowercasebase(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug lowercasedigits(){
lowercasedigits(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void lowercasedigits(long __this__nativeId);
/**
* See Qt::fixed
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug fixed(){
fixed(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void fixed(long __this__nativeId);
/**
* See Qt::scientific
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug scientific(){
scientific(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void scientific(long __this__nativeId);
/**
* See Qt::left
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug left(){
left(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void left(long __this__nativeId);
/**
* See Qt::right
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug right(){
right(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void right(long __this__nativeId);
/**
* See Qt::center
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug center(){
center(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void center(long __this__nativeId);
/**
* See Qt::bom
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug bom(){
bom(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void bom(long __this__nativeId);
/**
* See Qt::ws
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug ws(){
ws(QtJambi_LibraryUtilities.internal.nativeId(this));
return this;
}
@io.qt.QtUninvokable
private native void ws(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug qSetFieldWidth(int width){
setFieldWidth(QtJambi_LibraryUtilities.internal.nativeId(this), width);
return this;
}
@io.qt.QtUninvokable
private native void setFieldWidth(long __this__nativeId, int width);
/**
* See qSetRealNumberPrecision(int precision)
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug qSetRealNumberPrecision(int precision){
setRealNumberPrecision(QtJambi_LibraryUtilities.internal.nativeId(this), precision);
return this;
}
@io.qt.QtUninvokable
private native void setRealNumberPrecision(long __this__nativeId, int precision);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDebug qSetPadChar(char ch){
setPadChar(QtJambi_LibraryUtilities.internal.nativeId(this), ch);
return this;
}
@io.qt.QtUninvokable
private native void setPadChar(long __this__nativeId, char ch);
/**
*
*/
@SuppressWarnings("hiding")
public QDebug(String string){
this(new QTextStream.StringDevice(java.util.Objects.requireNonNull(string, "Argument 'string': null not expected."), io.qt.core.QIODevice.OpenModeFlag.WriteOnly.asFlags()));
}
@io.qt.QtUninvokable
public final io.qt.core.QDebug append(java.lang.Object obj){
QMetaType metaType = QList.getMetaType(obj);
debugStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(metaType), obj);
return this;
}
@io.qt.QtUninvokable
private native static void debugStream(long debug, long metaType, Object value);
@Override
public QDebug clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QDebug clone_native(long __this_nativeId);
}