java.lang.Object
io.qt.QtObject
io.qt.xmlpatterns.QSourceLocation
- All Implemented Interfaces:
io.qt.QtObjectInterface,Cloneable
Identifies a location in a resource by URI, line, and column
Java wrapper for Qt's class QSourceLocation
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
io.qt.QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionQSourceLocation(io.qt.core.QUrl uri) Overloaded constructor forQSourceLocation(io.qt.core.QUrl, int, int)QSourceLocation(io.qt.core.QUrl uri, int line) Overloaded constructor forQSourceLocation(io.qt.core.QUrl, int, int)withcolumn = -1.QSourceLocation(io.qt.core.QUrl uri, int line, int column) QSourceLocation(QSourceLocation other) protectedQSourceLocation(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidassign(QSourceLocation other) clone()Creates and returns a copy of this object.final longcolumn()booleanUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.inthashCode()final booleanisNull()final longline()final voidsetColumn(long newColumn) final voidsetLine(long newLine) final voidsetUri(io.qt.core.QUrl newUri) toString()final io.qt.core.QUrluri()Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QSourceLocation
public QSourceLocation() -
QSourceLocation
-
QSourceLocation
public QSourceLocation(io.qt.core.QUrl uri, int line) Overloaded constructor for
QSourceLocation(io.qt.core.QUrl, int, int)withcolumn = -1. -
QSourceLocation
public QSourceLocation(io.qt.core.QUrl uri) -
QSourceLocation
public QSourceLocation(io.qt.core.QUrl uri, int line, int column) -
QSourceLocation
protected QSourceLocation(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only.- Parameters:
p- expected to benull.
-
-
Method Details
-
column
@QtUninvokable public final long column() -
isNull
@QtUninvokable public final boolean isNull() -
line
@QtUninvokable public final long line() -
assign
-
setColumn
@QtUninvokable public final void setColumn(long newColumn) -
setLine
@QtUninvokable public final void setLine(long newLine) -
setUri
@QtUninvokable public final void setUri(io.qt.core.QUrl newUri) -
uri
@QtUninvokable public final io.qt.core.QUrl uri() -
equals
Description copied from class:io.qt.QtObjectUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation.- Overrides:
equalsin classio.qt.QtObject- Parameters:
other- other object- Returns:
- true if the native counterpart of the two objects are one and the same.
-
hashCode
@QtUninvokable public int hashCode() -
toString
-
clone
Creates and returns a copy of this object.
-