Package org.tomlj
Interface TomlElement
- All Known Subinterfaces:
MutableTomlEntry,MutableTomlKeyValue,TomlEntry,TomlKeyValue,TomlValue
- All Known Implementing Classes:
TomlComment
public interface TomlElement
Something written in a table or array: an entry, or an unattached comment.
TomlTable.elements() and TomlArray.elements() list the elements of a table or array in document
order. Each is an entry, a TomlKeyValue in a table or a plain TomlEntry in an array, or an unattached
TomlComment.
-
Method Summary
Modifier and TypeMethodDescription@Nullable TomlPositionposition()Where this element was written in the document.
-
Method Details
-
position
@Nullable TomlPosition position()Where this element was written in the document.- Returns:
- The position, or
nullif this element was not read from a document, or is a table that a dotted key created before any header defined it.
-