OffsetAttributeImpl

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun clear()

Clears the values in this AttributeImpl and resets it to its default value. If this implementation implements more than one Attribute interface it clears all.

Link copied to clipboard
open override fun clone(): AttributeImpl

In most cases the clone is, and should be, deep in order to be able to properly capture the state of all attributes.

Link copied to clipboard
open override fun copyTo(target: AttributeImpl)

Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the Attributes this implementation supports.

Link copied to clipboard
open fun end()

Clears the values in this AttributeImpl and resets it to its value at the end of the field. If this implementation implements more than one Attribute interface it clears all.

Link copied to clipboard
open override fun endOffset(): Int

Returns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text. The length of the token in the source text is ( endOffset() - .startOffset).

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun reflectAsString(prependAttClass: Boolean): String

This method returns the current attribute values as a string in the following format by calling the .reflectWith method:

Link copied to clipboard
open override fun reflectWith(reflector: AttributeReflector)

This method is for introspection of attributes, it should simply add the key/values this attribute holds to the given AttributeReflector.

Link copied to clipboard
open override fun setOffset(startOffset: Int, endOffset: Int)

Set the starting and ending offset.

Link copied to clipboard
open override fun startOffset(): Int

Returns this Token's starting offset, the position of the first character corresponding to this token in the source text.