io.qt.core.internal.QAbstractFileEngineIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.core.internal;
import io.qt.*;
/**
* Java wrapper for Qt class QAbstractFileEngineIterator
*/
public abstract class QAbstractFileEngineIterator extends QtObject
implements Iterable, java.util.Iterator
{
static {
QtJambi_LibraryUtilities.initialize();
}
@NativeAccess
private static final class ConcreteWrapper extends QAbstractFileEngineIterator {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
public java.lang.@NonNull String currentFileName(){
return currentFileName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String currentFileName_native_constfct(long __this__nativeId);
@Override
@QtUninvokable
public boolean hasNext(){
return hasNext_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasNext_native_constfct(long __this__nativeId);
@Override
@QtUninvokable
public java.lang.@NonNull String next(){
return next_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String next_native(long __this__nativeId);
}
/**
* Java wrapper for Qt enum QAbstractFileEngineIterator::EntryInfoType
*/
@QtExtensibleEnum
protected enum EntryInfoType implements QtEnumerator {
;
static {
QtJambi_LibraryUtilities.initialize();
}
private EntryInfoType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
* @throws QNoSuchEnumValueException if value not existent in the enum
*/
public static @NonNull EntryInfoType resolve(int value) {
switch (value) {
default: return QtJambi_LibraryUtilities.internal.resolveEnum(EntryInfoType.class, value, null);
}
}
/**
* Returns the corresponding enum entry for the given value and name.
* @param value
* @param name
* @return enum entry
* @throws QNoSuchEnumValueException if value not existent in the enum or name does not match.
*/
public static @NonNull EntryInfoType resolve(int value, @Nullable String name) {
if(name==null || name.isEmpty())
return resolve(value);
else
return QtJambi_LibraryUtilities.internal.resolveEnum(EntryInfoType.class, value, name);
}
private final int value;
}
/**
* See QAbstractFileEngineIterator:: QAbstractFileEngineIterator(QDir::Filters, QStringList)
*/
public QAbstractFileEngineIterator(io.qt.core.QDir.@NonNull Filters filters, java.util.@NonNull Collection nameFilters){
super((QPrivateConstructor)null);
initialize_native(this, filters, nameFilters);
}
private native static void initialize_native(QAbstractFileEngineIterator instance, io.qt.core.QDir.Filters filters, java.util.Collection nameFilters);
/**
* See QAbstractFileEngineIterator:: filters()const
*/
@QtUninvokable
public final io.qt.core.QDir.@NonNull Filters filters(){
return new io.qt.core.QDir.Filters(filters_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int filters_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngineIterator:: nameFilters()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList nameFilters(){
return nameFilters_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList nameFilters_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngineIterator:: path()const
*/
@QtUninvokable
public final java.lang.@NonNull String path(){
return path_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String path_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngineIterator:: currentFileInfo()const
*/
@QtUninvokable
public io.qt.core.@NonNull QFileInfo currentFileInfo(){
return currentFileInfo_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QFileInfo currentFileInfo_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngineIterator:: currentFileName()const
*/
@QtUninvokable
public abstract java.lang.@NonNull String currentFileName();
@QtUninvokable
private native java.lang.String currentFileName_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngineIterator:: currentFilePath()const
*/
@QtUninvokable
public java.lang.@NonNull String currentFilePath(){
return currentFilePath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String currentFilePath_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngineIterator:: entryInfo(QAbstractFileEngineIterator::EntryInfoType)const
*/
@QtUninvokable
protected java.lang.Object entryInfo(io.qt.core.internal.QAbstractFileEngineIterator.@NonNull EntryInfoType type){
return entryInfo_native_QAbstractFileEngineIterator_EntryInfoType_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), type.value());
}
@QtUninvokable
private native java.lang.Object entryInfo_native_QAbstractFileEngineIterator_EntryInfoType_constfct(long __this__nativeId, int type);
/**
* See QAbstractFileEngineIterator:: hasNext()const
*/
@QtUninvokable
public abstract boolean hasNext();
@QtUninvokable
private native boolean hasNext_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngineIterator:: next()
*/
@QtUninvokable
public abstract java.lang.@NonNull String next();
@QtUninvokable
private native java.lang.String next_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QAbstractFileEngineIterator(QPrivateConstructor p) { super(p); }
// TEMPLATE - core.self_iterator - START
@Override
@QtUninvokable
public final java.util.Iterator iterator() {
return this;
}
// TEMPLATE - core.self_iterator - END
}