AnyLogic
Expand
Font size
All Known Implementing Classes:
GISCoordinatesParser, GISCoordinatesParser.DirectionParser, NaturalParser, OneOfParser, SkipParser

public interface Parser<T>

Method Summary

Modifier and TypeMethodDescription
default voiderror(Scanner s) 
static <T> Tmust(Parser<T> p, Scanner s) 
Optional<T>parse(Scanner s) 

Method Details

parse

Optional<T> parse(Scanner s)
           throws ParseException
Throws:
ParseException

must

static <T> T must(Parser<T> p,
 Scanner s)
           throws ParseException
Throws:
ParseException

error

default void error(Scanner s)
            throws ParseException
Throws:
ParseException