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() |
String |
createSnippet(int indent,
int maxLength) |
int[] |
getBuffer() |
int |
getColumn()
starts with 0
|
int |
getIndex()
starts with 0
|
int |
getLine()
starts with 0
|
String |
getName() |
int |
getPointer() |
String |
toString() |
public Mark(String name, int index, int line, int column, int[] buffer, int pointer)
Mark
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 linebuffer
- - the datapointer
- - the position of the mark from the beginning of the streampublic 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 streampublic String createSnippet(int indent, int maxLength)
public String createSnippet()
public String getName()
public int getLine()
public int getColumn()
public int getIndex()
public int[] getBuffer()
public int getPointer()
Copyright © 2020 Hazelcast, Inc.. All rights reserved.