Class Line

  • All Implemented Interfaces:

    
    public final class Line
    extends ParseText
                        

    An 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Line(Integer lineNumber, String line)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getLineNumber()
      final Boolean matchColon() Match a colon - must be followed by end of line or whitespace
      final Boolean matchDash() Match a dash - must be followed by end of line or whitespace
      final Boolean matchHash() Match a hash - must be preceded by start of line or whitespace
      final Boolean atEnd()
      final Unit skipBackSpaces()
      • 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