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
FieldsModifier and TypeFieldDescriptionstatic final Stringnumber of bytes parsed since the beginningstatic final Stringnumber of characters parsed since the beginningstatic final StringNumber of bytes parsed since the last line breakstatic final StringNumber of characters parsed since the last line breakstatic final Stringnumber of full lines that have been parsed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerlongnumber of bytes parsed since the beginninglongnumber of characters parsed since the beginninglongNumber of bytes parsed since the last line breaklongNumber of characters parsed since the last line breaklongnumber of full lines that have been parsed.voidsetFieldBytes(long bytes) number of bytes parsed since the beginningvoidsetFieldChars(long chars) number of characters parsed since the beginningvoidsetFieldLineBytes(long line_bytes) Number of bytes parsed since the last line breakvoidsetFieldLineChars(long line_chars) Number of characters parsed since the last line breakvoidsetFieldLines(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, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-