Package ch.bailu.gtk.gtk
Class CssLocation
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gtk.CssLocation
- All Implemented Interfaces:
PointerInterface
Represents a location in a file or other source of data parsed
by the CSS engine.
The @bytes and @line_bytes offsets are meant to be used to
programmatically match data. The @lines and @line_chars offsets
can be used for printing the location in a file.
Note that the @lines parameter starts from 0 and is increased
whenever a CSS line break is encountered. (CSS defines the C character
sequences "\r\n", "\r", "\n" and "\f" as newlines.)
If your document uses different rules for line breaking, you might want
run into problems here.
by the CSS engine.
The @bytes and @line_bytes offsets are meant to be used to
programmatically match data. The @lines and @line_chars offsets
can be used for printing the location in a file.
Note that the @lines parameter starts from 0 and is increased
whenever a CSS line break is encountered. (CSS defines the C character
sequences "\r\n", "\r", "\n" and "\f" as newlines.)
If your document uses different rules for line breaking, you might want
run into problems here.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
number of bytes parsed since the beginningstatic final String
number of characters parsed since the beginningstatic final String
Number of bytes parsed since the last line breakstatic final String
Number of characters parsed since the last line breakstatic final String
number of full lines that have been parsed. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
long
number of bytes parsed since the beginninglong
number of characters parsed since the beginninglong
Number of bytes parsed since the last line breaklong
Number of characters parsed since the last line breaklong
number of full lines that have been parsed.void
setFieldBytes
(long bytes) number of bytes parsed since the beginningvoid
setFieldChars
(long chars) number of characters parsed since the beginningvoid
setFieldLineBytes
(long line_bytes) Number of bytes parsed since the last line breakvoid
setFieldLineChars
(long line_chars) Number of characters parsed since the last line breakvoid
setFieldLines
(long lines) number of full lines that have been parsed.Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
BYTES
number of bytes parsed since the beginning- See Also:
-
CHARS
number of characters parsed since the beginning- See Also:
-
LINES
number of full lines that have been parsed. If you want to
display this as a line number, you need to add 1 to this.- See Also:
-
LINE_BYTES
Number of bytes parsed since the last line break- See Also:
-
LINE_CHARS
Number of characters parsed since the last line break- See Also:
-
-
Constructor Details
-
CssLocation
-
CssLocation
public CssLocation()
-
-
Method Details
-
getClassHandler
-
setFieldBytes
public void setFieldBytes(long bytes) number of bytes parsed since the beginning -
getFieldBytes
public long getFieldBytes()number of bytes parsed since the beginning -
setFieldChars
public void setFieldChars(long chars) number of characters parsed since the beginning -
getFieldChars
public long getFieldChars()number of characters parsed since the beginning -
setFieldLines
public void setFieldLines(long lines) number of full lines that have been parsed. If you want to
display this as a line number, you need to add 1 to this. -
getFieldLines
public long getFieldLines()number of full lines that have been parsed. If you want to
display this as a line number, you need to add 1 to this. -
setFieldLineBytes
public void setFieldLineBytes(long line_bytes) Number of bytes parsed since the last line break -
getFieldLineBytes
public long getFieldLineBytes()Number of bytes parsed since the last line break -
setFieldLineChars
public void setFieldLineChars(long line_chars) Number of characters parsed since the last line break -
getFieldLineChars
public long getFieldLineChars()Number of characters parsed since the last line break
-