Package org.yaml.snakeyaml.error
Class Mark
java.lang.Object
org.yaml.snakeyaml.error.Mark
- All Implemented Interfaces:
Serializable
It's just a record and its only use is producing nice error messages. Parser
does not use it for any other purposes.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget_snippet
(int indent, int max_length) int[]
int
starts with 0int
getIndex()
starts with 0int
getLine()
starts with 0getName()
int
private boolean
isLineBreak
(int c) private static int[]
toCodePoints
(char[] str) toString()
-
Field Details
-
name
-
index
private int index -
line
private int line -
column
private int column -
buffer
private int[] buffer -
pointer
private int pointer
-
-
Constructor Details
-
Mark
-
Mark
Deprecated. -
Mark
-
-
Method Details
-
toCodePoints
private static int[] toCodePoints(char[] str) -
isLineBreak
private boolean isLineBreak(int c) -
get_snippet
-
get_snippet
-
toString
-
getName
-
getLine
public int getLine()starts with 0- Returns:
- line number
-
getColumn
public int getColumn()starts with 0- Returns:
- column number
-
getIndex
public int getIndex()starts with 0- Returns:
- character number
-
getBuffer
public int[] getBuffer() -
getPointer
public int getPointer()
-