A stream of MarkupElement s, subclases of which are
ComponentTag and RawMarkup . A
markup stream has a current index in the list of markup elements. The next
markup element can be retrieved and the index advanced by calling next(). If
the index hits the end, hasMore() will return false.
The current markup element can be accessed with get() and as a ComponentTag
with getTag().
The stream can be seeked to a particular location with setCurrentIndex().
Convenience methods also exist to skip component tags (and any potentially
nested markup) or raw markup.
Several boolean methods of the form at*() return true if the markup stream is
positioned at a tag with a given set of characteristics.
The resource from which the markup was loaded can be retrieved with
getResource().
The current markup element can be accessed with get() and as a ComponentTag with getTag().
The stream can be seeked to a particular location with setCurrentIndex().
Convenience methods also exist to skip component tags (and any potentially nested markup) or raw markup.
Several boolean methods of the form at*() return true if the markup stream is positioned at a tag with a given set of characteristics.
The resource from which the markup was loaded can be retrieved with getResource().