Package io.kjson.yaml.parser
Class Line
-
- All Implemented Interfaces:
public final class Line extends TextMatcherAn extension of TextMatcher to represent a YAML line.
Peter Wall
-
-
Method Summary
Modifier and Type Method Description final IntegergetLineNumber()final BooleanmatchColon()final BooleanmatchDash()final BooleanisComment()Test whether character at index is a #preceded by space or start of line.final BooleanmatchSpace()final BooleanmatchSpaces()final UnitskipSpaces()final UnitskipToSpace()final BooleanatEnd()final UnitskipBackSpaces()StringtoString()Return the co-ordinates of the current location, to allow the Lineobject 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
-
-
Method Detail
-
getLineNumber
final Integer getLineNumber()
-
matchColon
final Boolean matchColon()
-
isComment
final Boolean isComment()
Test whether character at index is a
#preceded by space or start of line. This does not increment the index in the case of a match.
-
matchSpace
final Boolean matchSpace()
-
matchSpaces
final Boolean matchSpaces()
-
skipSpaces
final Unit skipSpaces()
-
skipToSpace
final Unit skipToSpace()
-
skipBackSpaces
final Unit skipBackSpaces()
-
toString
String toString()
Return the co-ordinates of the current location, to allow the
Lineobject to be used in a YAMLParseException.
-
-
-
-