Package net.pwall.yaml.parser
Class Line
-
- All Implemented Interfaces:
public final class Line extends ParseTextAn extension to ParseText for parsing YAML lines. The class includes a line number (principally for error reporting) and on initialisation, positions the index after any leading spaces.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerlineNumberprivate CharSequencetextprivate Integerindexprivate Integerstart
-
Method Summary
Modifier and Type Method Description final IntegergetLineNumber()final BooleanmatchColon()Match a colon - must be followed by end of line or whitespace final BooleanmatchDash()Match a dash - must be followed by end of line or whitespace final BooleanmatchHash()Match a hash - must be preceded by start of line or whitespace final BooleanatEnd()final UnitskipBackSpaces()-
Methods inherited from class net.pwall.util.ParseText
appendResultTo, appendResultTo, available, back, charAt, convertDecDigit, convertHexDigit, equals, getChar, getCodePoint, getHexInt, getHexLong, getIndex, getInt, getLong, getResultChar, getResultHexInt, getResultHexLong, getResultInt, getResultLength, getResultLong, getResultSequence, getResultString, getStart, getString, getText, getTextLength, hashCode, isDigit, isExhausted, isHexDigit, isNameContinuation, isNameStart, isSpace, length, match, match, match, matchAnyOf, matchAnyOf, matchAnyOf, matchAnyOf, matchDec, matchDec, matchDec, matchDecFixed, matchHex, matchHex, matchHex, matchHexFixed, matchIgnoreCase, matchIgnoreCase, matchName, matchName, matchRange, matchSpaces, reset, revert, setIndex, setStart, setText, setText, skip, skipPast, skipSpaces, skipTo, skipTo, skipTo, skipToAnyOf, skipToAnyOf, skipToEnd, skipToSpace, toString, unescape -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getLineNumber
final Integer getLineNumber()
-
matchColon
final Boolean matchColon()
Match a colon - must be followed by end of line or whitespace
-
skipBackSpaces
final Unit skipBackSpaces()
-
-
-
-