- java.lang.Object
-
- com.github.jezza.lang.TomlParser
-
public class TomlParser extends java.lang.Object- Author:
- Jezza
-
-
Constructor Summary
Constructors Constructor Description TomlParser(java.io.InputStream in)TomlParser(java.io.Reader in)TomlParser(java.lang.String in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TomlArrayarray()protected Tokenconsume()protected Tokenconsume(int type)protected Tokencurrent()protected TomlTableinlineTable()protected static java.lang.DoubleintoDouble(Token token)protected static java.lang.LongintoLong(Token token, int offset, int radix)protected booleanis(int type)protected java.util.List<java.lang.String>key()protected booleanmatch(int type)protected booleannot(int type)TomlTableparse()TomlTableparse(TomlTable root)protected java.lang.Objectvalue()
-
-
-
Method Detail
-
current
protected final Token current() throws java.io.IOException
- Throws:
java.io.IOException
-
match
protected final boolean match(int type) throws java.io.IOException- Throws:
java.io.IOException
-
is
protected final boolean is(int type) throws java.io.IOException- Throws:
java.io.IOException
-
not
protected final boolean not(int type) throws java.io.IOException- Throws:
java.io.IOException
-
consume
protected final Token consume() throws java.io.IOException
- Throws:
java.io.IOException
-
consume
protected final Token consume(int type) throws java.io.IOException
- Throws:
java.io.IOException
-
parse
public final TomlTable parse() throws java.io.IOException
- Throws:
java.io.IOException
-
parse
public TomlTable parse(TomlTable root) throws java.io.IOException
- Throws:
java.io.IOException
-
array
protected TomlArray array() throws java.io.IOException
- Throws:
java.io.IOException
-
inlineTable
protected TomlTable inlineTable() throws java.io.IOException
- Throws:
java.io.IOException
-
key
protected java.util.List<java.lang.String> key() throws java.io.IOException- Throws:
java.io.IOException
-
value
protected java.lang.Object value() throws java.io.IOException- Throws:
java.io.IOException
-
intoLong
protected static java.lang.Long intoLong(Token token, int offset, int radix)
-
intoDouble
protected static java.lang.Double intoDouble(Token token)
-
-