Uses of Class
net.diversionmc.parser.expression.ExpressionPiece
| Package | Description |
|---|---|
| net.diversionmc.parser | |
| net.diversionmc.parser.expression | |
| net.diversionmc.parser.group | |
| net.diversionmc.parser.pattern |
-
Uses of ExpressionPiece in net.diversionmc.parser
Methods in net.diversionmc.parser with type parameters of type ExpressionPiece Modifier and Type Method Description <L extends ExpressionPiece, R extends ExpressionPiece>
Parser<T>Parser. group(java.util.function.Predicate<ExpressionPiece> left, java.util.function.Predicate<ExpressionPiece> right, GroupSupplier<L,R> supplier)Create a grouper for specific pieces.<L extends ExpressionPiece, R extends ExpressionPiece>
Parser<T>Parser. group(java.util.function.Predicate<ExpressionPiece> left, java.util.function.Predicate<ExpressionPiece> right, GroupSupplier<L,R> supplier)Create a grouper for specific pieces.Method parameters in net.diversionmc.parser with type arguments of type ExpressionPiece Modifier and Type Method Description <L extends ExpressionPiece, R extends ExpressionPiece>
Parser<T>Parser. group(java.util.function.Predicate<ExpressionPiece> left, java.util.function.Predicate<ExpressionPiece> right, GroupSupplier<L,R> supplier)Create a grouper for specific pieces.Parser<T>Parser. pieceFinish(java.util.function.Consumer<ExpressionPiece> event)Add an action to run after a piece is completed. -
Uses of ExpressionPiece in net.diversionmc.parser.expression
Subclasses of ExpressionPiece in net.diversionmc.parser.expression Modifier and Type Class Description classCharPiececlassCommentPieceCan be inline or multiline, reads until newline or ‘*/'.classGroupPieceList of pieces (called group content).classNamePieceReads letters, digits, and some predefined characters.classNumberPieceReads until it is no longer able to parse a number.classStringPieceReads a string with escape sequences until it meets an end character (typically double or single quote).Methods in net.diversionmc.parser.expression that return ExpressionPiece Modifier and Type Method Description ExpressionPiecePieceSupplier. apply(char c, FilePointer ptr)Apply function to character at a position.ExpressionPieceCommentPiece. replace(FilePointer ptr)ExpressionPieceExpressionPiece. replace(FilePointer ptr)Called wheneverPieceResult.REPLACE_LEAVEorPieceResult.REPLACE_TAKEare used.Methods in net.diversionmc.parser.expression that return types with arguments of type ExpressionPiece Modifier and Type Method Description java.util.List<ExpressionPiece>GroupPiece. content()Get all pieces that are inside the group.Constructors in net.diversionmc.parser.expression with parameters of type ExpressionPiece Constructor Description CommentPiece(FilePointer ptr, boolean inline, ExpressionPiece original)Construct a comment piece.Constructor parameters in net.diversionmc.parser.expression with type arguments of type ExpressionPiece Constructor Description GroupPiece(FilePointer ptr, java.util.List<ExpressionPiece> content)Construct a group piece. -
Uses of ExpressionPiece in net.diversionmc.parser.group
Classes in net.diversionmc.parser.group with type parameters of type ExpressionPiece Modifier and Type Class Description classGrouper<L extends ExpressionPiece,R extends ExpressionPiece>When all characters are converted successfully into Expression Pieces, some of the pieces are allowed to be converted again using a second pass.classGrouper<L extends ExpressionPiece,R extends ExpressionPiece>When all characters are converted successfully into Expression Pieces, some of the pieces are allowed to be converted again using a second pass.interfaceGroupSupplier<L extends ExpressionPiece,R extends ExpressionPiece>Function that creates a group from the given boundaries.interfaceGroupSupplier<L extends ExpressionPiece,R extends ExpressionPiece>Function that creates a group from the given boundaries.Methods in net.diversionmc.parser.group that return ExpressionPiece Modifier and Type Method Description ExpressionPieceGrouper. group(ExpressionPiece left, ExpressionPiece right, java.util.List<ExpressionPiece> content)Create a group from the given pieces.Methods in net.diversionmc.parser.group that return types with arguments of type ExpressionPiece Modifier and Type Method Description java.util.function.Predicate<ExpressionPiece>Grouper. end()Returns the value of theendrecord component.java.util.function.Predicate<ExpressionPiece>Grouper. start()Returns the value of thestartrecord component.Methods in net.diversionmc.parser.group with parameters of type ExpressionPiece Modifier and Type Method Description booleanGrouper. end(ExpressionPiece toTest)Check if a piece matches the ending boundary of the group.ExpressionPieceGrouper. group(ExpressionPiece left, ExpressionPiece right, java.util.List<ExpressionPiece> content)Create a group from the given pieces.booleanGrouper. start(ExpressionPiece toTest)Check if a piece matches the starting boundary of the group.Method parameters in net.diversionmc.parser.group with type arguments of type ExpressionPiece Modifier and Type Method Description GroupPieceGroupSupplier. apply(L left, R right, java.util.List<ExpressionPiece> content)Create a group from the given pieces.ExpressionPieceGrouper. group(ExpressionPiece left, ExpressionPiece right, java.util.List<ExpressionPiece> content)Create a group from the given pieces.Constructor parameters in net.diversionmc.parser.group with type arguments of type ExpressionPiece Constructor Description Grouper(java.util.function.Predicate<ExpressionPiece> start, java.util.function.Predicate<ExpressionPiece> end, GroupSupplier<L,R> supplier)Construct a grouper for specific pieces. -
Uses of ExpressionPiece in net.diversionmc.parser.pattern
Method parameters in net.diversionmc.parser.pattern with type arguments of type ExpressionPiece 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.PatternResult<T>ParsePattern. parse(java.util.List<ExpressionPiece> e)Apply this pattern piece conversion from a given piece list.