public class Position extends Object
ParsePosition, but
less complex.| Constructor and Description |
|---|
Position() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertThat(boolean condition,
String message)
Calls
fail(String) if a condition is not met. |
char |
ch(CharSequence s) |
char |
ch(CharSequence s,
int offset) |
void |
die(String message)
Throws an exception with an informative message.
|
void |
fail(String message)
Throws an exception.
|
int |
get() |
void |
inc() |
void |
inc(int count) |
void |
set(int index) |
String |
toString() |
public int get()
public void set(int index)
public void inc()
public void inc(int count)
public char ch(CharSequence s)
public char ch(CharSequence s, int offset)
public void die(String message)
message - The text to use as a basis for the error message.IllegalArgumentException - Always.public void assertThat(boolean condition,
String message)
fail(String) if a condition is not met. Called by the
parsing infrastructure to assert that things are going OK.condition - If false, throw the exception.message - The text to use as a basis for the error message.IllegalStateException - If the condition is not met.public void fail(String message)
message - The text to use as a basis for the error message.IllegalStateException - Always.Copyright © 2015–2021 SciJava. All rights reserved.