Class Line

  • All Implemented Interfaces:

    
    public final class Line
    extends TextMatcher
                        

    An extension of TextMatcher to represent a YAML line.

    Author:

    Peter Wall

    • 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()
      final Boolean matchDash()
      final Boolean isComment() Test whether character at index is a # preceded by space or start of line.
      final Boolean matchSpace()
      final Boolean matchSpaces()
      final Unit skipSpaces()
      final Unit skipToSpace()
      final Boolean atEnd()
      final Unit skipBackSpaces()
      String toString() Return the co-ordinates of the current location, to allow the Line object to be used in a YAMLParseException.
      • Methods inherited from class io.jstuff.text.TextMatcher

        appendResultTo, appendResultTo, appendSubstringTo, appendSubstringTo, getChar, getCharSeq, getHexInt, getHexLong, getIndex, getInt, getInt, getLength, getLong, getLong, getResult, getResultChar, getResultCharSeq, getResultHexInt, getResultHexLong, getResultInt, getResultInt, getResultLength, getResultLong, getResultLong, getStart, getString, getText, isAtEnd, match, match, match, matchAny, matchContinue, matchContinue, matchContinue, matchDec, matchDec, matchDec, matchHex, matchHex, matchHex, matchSeq, matchSeq, matchSeq, nextChar, revert, setIndex, setStart, skip, skip, skipAny, skipFixed, skipTo, skipTo, skipToEnd
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait