Package org.scijava.parse
Class Position
java.lang.Object
org.scijava.parse.Position
A mutable parse position. Similar to
ParsePosition
, but
less complex.- Author:
- Curtis Rueden
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertThat
(boolean condition, String message) ThrowsIllegalStateException
if something goes wrong.char
ch
(CharSequence s) char
ch
(CharSequence s, int offset) void
ThrowsIllegalArgumentException
when syntax is incorrect.void
ThrowsIllegalStateException
when something is wrong.int
get()
void
inc()
void
inc
(int count) void
set
(int index) toString()
-
Constructor Details
-
Position
public Position()
-
-
Method Details
-
get
public int get() -
set
public void set(int index) -
inc
public void inc() -
inc
public void inc(int count) -
ch
-
ch
-
die
ThrowsIllegalArgumentException
when syntax is incorrect. -
assertThat
ThrowsIllegalStateException
if something goes wrong. -
fail
ThrowsIllegalStateException
when something is wrong. -
toString
-