Uses of Class
net.diversionmc.parser.pattern.Sentence
| Package | Description |
|---|---|
| net.diversionmc.parser | |
| net.diversionmc.parser.pattern |
-
Uses of Sentence in net.diversionmc.parser
Classes in net.diversionmc.parser with type parameters of type Sentence Modifier and Type Class Description classParser<T extends Sentence>Parser - convert any written language into custom formatMethods in net.diversionmc.parser with type parameters of type Sentence Modifier and Type Method Description static <T extends Sentence>
Parser<T>Parser. parser()Create Parser without any input attached and automatically set name.static <T extends Sentence>
Parser<T>Parser. parser(java.io.File f)Create Parser from a file.static <T extends Sentence>
Parser<T>Parser. parser(java.lang.String name)Create Parser of a text with a title.static <T extends Sentence>
Parser<T>Parser. parser(java.lang.String name, java.io.InputStream is)Create Parser from an input stream with a title.static <T extends Sentence>
Parser<T>Parser. parser(java.lang.String name, java.lang.String text)Create Parser of a text with a title. -
Uses of Sentence in net.diversionmc.parser.pattern
Classes in net.diversionmc.parser.pattern with type parameters of type Sentence Modifier and Type Interface Description interfaceParsePattern<T extends Sentence>Pattern is a function which consumes Expression Pieces and converts them into aSentencelist.classPatternResult<T extends Sentence>Represents a result of a sentence parse.Methods in net.diversionmc.parser.pattern with type parameters of type Sentence Modifier and Type Method Description static <T extends Sentence>
java.util.LinkedList<T>ParsePattern. match(java.util.List<ExpressionPiece> expressions, ParsePattern<T>... patterns)Match all the given patterns or fail.static <T extends Sentence>
PatternResult<T>ParsePattern. matchOne(java.util.List<ExpressionPiece> expressions, ParsePattern<T>... patterns)Try to match at least one pattern from the given patterns.