Package org.yaml.snakeyaml.error
Class Mark
- java.lang.Object
-
- org.yaml.snakeyaml.error.Mark
-
- All Implemented Interfaces:
java.io.Serializable
public final class Mark extends java.lang.Object implements java.io.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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
get_snippet()
java.lang.String
get_snippet(int indent, int max_length)
int[]
getBuffer()
int
getColumn()
starts with 0int
getIndex()
starts with 0int
getLine()
starts with 0java.lang.String
getName()
int
getPointer()
java.lang.String
toString()
-
-
-
Method Detail
-
get_snippet
public java.lang.String get_snippet(int indent, int max_length)
-
get_snippet
public java.lang.String get_snippet()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getName
public java.lang.String 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()
-
-