io.qt.core.QRegularExpressionMatch Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
/**
* The results of a matching a QRegularExpression against a string
* Java wrapper for Qt class QRegularExpressionMatch
*/
public class QRegularExpressionMatch extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QRegularExpressionMatch::QRegularExpressionMatch()
*/
public QRegularExpressionMatch(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRegularExpressionMatch instance);
/**
* See QRegularExpressionMatch::captured(QString)const
*/
@io.qt.QtUninvokable
public final java.lang.String captured(java.lang.String name){
return captured_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@io.qt.QtUninvokable
private native java.lang.String captured_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* Overloaded function for {@link #captured(int)}
* with nth = 0
.
*/
@io.qt.QtUninvokable
public final java.lang.String captured() {
return captured((int)0);
}
/**
* See QRegularExpressionMatch::captured(int)const
*/
@io.qt.QtUninvokable
public final java.lang.String captured(int nth){
return captured_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), nth);
}
@io.qt.QtUninvokable
private native java.lang.String captured_native_int_constfct(long __this__nativeId, int nth);
/**
* See QRegularExpressionMatch::capturedEnd(QString)const
*/
@io.qt.QtUninvokable
public final long capturedEnd(java.lang.String name){
return capturedEnd_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@io.qt.QtUninvokable
private native long capturedEnd_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* Overloaded function for {@link #capturedEnd(int)}
* with nth = 0
.
*/
@io.qt.QtUninvokable
public final long capturedEnd() {
return capturedEnd((int)0);
}
/**
* See QRegularExpressionMatch::capturedEnd(int)const
*/
@io.qt.QtUninvokable
public final long capturedEnd(int nth){
return capturedEnd_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), nth);
}
@io.qt.QtUninvokable
private native long capturedEnd_native_int_constfct(long __this__nativeId, int nth);
/**
* See QRegularExpressionMatch::capturedLength(QString)const
*/
@io.qt.QtUninvokable
public final long capturedLength(java.lang.String name){
return capturedLength_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@io.qt.QtUninvokable
private native long capturedLength_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* Overloaded function for {@link #capturedLength(int)}
* with nth = 0
.
*/
@io.qt.QtUninvokable
public final long capturedLength() {
return capturedLength((int)0);
}
/**
* See QRegularExpressionMatch::capturedLength(int)const
*/
@io.qt.QtUninvokable
public final long capturedLength(int nth){
return capturedLength_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), nth);
}
@io.qt.QtUninvokable
private native long capturedLength_native_int_constfct(long __this__nativeId, int nth);
/**
* See QRegularExpressionMatch::capturedStart(QString)const
*/
@io.qt.QtUninvokable
public final long capturedStart(java.lang.String name){
return capturedStart_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@io.qt.QtUninvokable
private native long capturedStart_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* Overloaded function for {@link #capturedStart(int)}
* with nth = 0
.
*/
@io.qt.QtUninvokable
public final long capturedStart() {
return capturedStart((int)0);
}
/**
* See QRegularExpressionMatch::capturedStart(int)const
*/
@io.qt.QtUninvokable
public final long capturedStart(int nth){
return capturedStart_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), nth);
}
@io.qt.QtUninvokable
private native long capturedStart_native_int_constfct(long __this__nativeId, int nth);
/**
* See QRegularExpressionMatch::capturedTexts()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList capturedTexts(){
return capturedTexts_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList capturedTexts_native_constfct(long __this__nativeId);
/**
* See QRegularExpressionMatch::hasMatch()const
*/
@io.qt.QtUninvokable
public final boolean hasMatch(){
return hasMatch_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean hasMatch_native_constfct(long __this__nativeId);
/**
* See QRegularExpressionMatch::hasPartialMatch()const
*/
@io.qt.QtUninvokable
public final boolean hasPartialMatch(){
return hasPartialMatch_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean hasPartialMatch_native_constfct(long __this__nativeId);
/**
* See QRegularExpressionMatch::isValid()const
*/
@io.qt.QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See QRegularExpressionMatch::lastCapturedIndex()const
*/
@io.qt.QtUninvokable
public final int lastCapturedIndex(){
return lastCapturedIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int lastCapturedIndex_native_constfct(long __this__nativeId);
/**
* See QRegularExpressionMatch::matchOptions()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRegularExpression.MatchOptions matchOptions(){
return new io.qt.core.QRegularExpression.MatchOptions(matchOptions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int matchOptions_native_constfct(long __this__nativeId);
/**
* See QRegularExpressionMatch::matchType()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRegularExpression.MatchType matchType(){
return io.qt.core.QRegularExpression.MatchType.resolve(matchType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int matchType_native_constfct(long __this__nativeId);
/**
* See QRegularExpressionMatch::regularExpression()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRegularExpression regularExpression(){
return regularExpression_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QRegularExpression regularExpression_native_constfct(long __this__nativeId);
/**
* See QRegularExpressionMatch::swap(QRegularExpressionMatch&)
*/
@io.qt.QtUninvokable
public final void swap(io.qt.core.QRegularExpressionMatch other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QRegularExpressionMatch(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void swap_native_ref_QRegularExpressionMatch(long __this__nativeId, long other);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QRegularExpressionMatch(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
@Override
public QRegularExpressionMatch clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QRegularExpressionMatch clone_native(long __this_nativeId);
}