public final class Mark extends Object implements Serializable
| Constructor and Description |
|---|
Mark(String name,
int index,
int line,
int column,
char[] str,
int pointer)
This constructor is only for test
|
Mark(String name,
int index,
int line,
int column,
int[] buffer,
int pointer)
Creates
Mark |
| Modifier and Type | Method and Description |
|---|---|
String |
createSnippet()
Create readable YAML with indent 4 and n ot longer that 75 characters long
|
String |
createSnippet(int indent,
int maxLength)
Create readable snippet
|
int[] |
getBuffer()
getter
|
int |
getColumn()
starts with 0
|
int |
getIndex()
starts with 0
|
int |
getLine()
starts with 0
|
String |
getName()
getter
|
int |
getPointer()
getter
|
String |
toString() |
public Mark(String name, int index, int line, int column, int[] buffer, int pointer)
Markname - - the name to be used as identifierindex - - the index from the beginning of the streamline - - line of the mark from beginning of the streamcolumn - - column of the mark from beginning of the linebuffer - - the datapointer - - the position of the mark from the beginning of the datapublic Mark(String name, int index, int line, int column, char[] str, int pointer)
name - - the name to be used as identifierindex - - the index from the beginning of the streamline - - line of the mark from beginning of the streamcolumn - - column of the mark from beginning of the linestr - - the datapointer - - the position of the mark from the beginning of the datapublic String createSnippet(int indent, int maxLength)
indent - - the indentmaxLength - - cut data after this lengthpublic String createSnippet()
public String getName()
public int getLine()
public int getColumn()
public int getIndex()
public int[] getBuffer()
public int getPointer()
Copyright © 2018–2022. All rights reserved.