Modifier and Type | Field and Description |
---|---|
public static final char | END
Character representing the end of input source (or outside of the text in case of the "previous" methods). |
private int | |
private SourceLine | |
private int | |
private int | |
private final List |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
private void | |
public int | |
public int | |
public SourceLines | |
public boolean | |
public int | |
public int | |
public void | |
public boolean | Returns: true if matched and position was advanced, false otherwisethe char to check (including newline characters) c)Check if the specified char is next and advance the position. |
public boolean | |
public static Scanner | |
public char | |
public int | |
public int | |
public Position | |
private void | |
public void | |
public int |
END | back to summary |
---|---|
public static final char END Character representing the end of input source (or outside of the text in case of the "previous" methods). Note that we can use NULL to represent this because CommonMark does not allow those in the input (we replace them in the beginning of parsing). |
index | back to summary |
---|---|
private int index |
line | back to summary |
---|---|
private SourceLine line |
lineIndex | back to summary |
---|---|
private int lineIndex |
lineLength | back to summary |
---|---|
private int lineLength |
lines | back to summary |
---|---|
private final List<SourceLine> lines |
Scanner | back to summary |
---|---|
pack-priv Scanner(List<SourceLine> lines, int lineIndex, int index) |
checkPosition | back to summary |
---|---|
private void checkPosition(int lineIndex, int index) |
find | back to summary |
---|---|
public int find(char c) |
find | back to summary |
---|---|
public int find(CharMatcher matcher) |
getSource | back to summary |
---|---|
public SourceLines getSource(Position begin, Position end) |
hasNext | back to summary |
---|---|
public boolean hasNext() |
match | back to summary |
---|---|
public int match(CharMatcher matcher) |
matchMultiple | back to summary |
---|---|
public int matchMultiple(char c) |
next | back to summary |
---|---|
public void next() |
next | back to summary |
---|---|
public boolean next(char c) Check if the specified char is next and advance the position.
|
next | back to summary |
---|---|
public boolean next(String content) Check if we have the specified content on the line and advanced the position. Note that if you want to match
newline characters, use
|
of | back to summary |
---|---|
public static Scanner of(SourceLines lines) |
peek | back to summary |
---|---|
public char peek() |
peekCodePoint | back to summary |
---|---|
public int peekCodePoint() |
peekPreviousCodePoint | back to summary |
---|---|
public int peekPreviousCodePoint() |
position | back to summary |
---|---|
public Position position() |
setLine | back to summary |
---|---|
private void setLine(SourceLine line) |
setPosition | back to summary |
---|---|
public void setPosition(Position position) |
whitespace | back to summary |
---|---|
public int whitespace() |