Uses of Class
net.diversionmc.parser.expression.ExpressionPiece
Packages that use ExpressionPiece
Package
Description
-
Uses of ExpressionPiece in net.diversionmc.parser
Methods in net.diversionmc.parser with type parameters of type ExpressionPieceModifier and TypeMethodDescription<L extends ExpressionPiece,R extends ExpressionPiece>
Parser<T>Parser.group(Predicate<ExpressionPiece> left, Predicate<ExpressionPiece> right, GroupSupplier<L, R> supplier) Create a grouper for specific pieces.<L extends ExpressionPiece,R extends ExpressionPiece>
Parser<T>Parser.group(Predicate<ExpressionPiece> left, Predicate<ExpressionPiece> right, GroupSupplier<L, R> supplier) Create a grouper for specific pieces.Methods in net.diversionmc.parser that return types with arguments of type ExpressionPieceModifier and TypeMethodDescriptionParser.buildExpressions()Convert input text into a list of ExpressionPieces.Parser.buildExpressionsGrouped()Convert input text into a list of ExpressionPieces, grouped up with registered groupers.Parser.group(List<ExpressionPiece> content) Group up ExpressionPieces in the given list into ExpressionPieces which represent such groups.Method parameters in net.diversionmc.parser with type arguments of type ExpressionPieceModifier and TypeMethodDescription<L extends ExpressionPiece,R extends ExpressionPiece>
Parser<T>Parser.group(Predicate<ExpressionPiece> left, Predicate<ExpressionPiece> right, GroupSupplier<L, R> supplier) Create a grouper for specific pieces.Parser.group(List<ExpressionPiece> content) Group up ExpressionPieces in the given list into ExpressionPieces which represent such groups.Parser.pieceFinish(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.expressionModifier and TypeClassDescriptionclassclassCan be inline or multiline, reads until newline or ‘*/'.classList of pieces (called group content).classReads letters, digits, and some predefined characters.classReads until it is no longer able to parse a number.classReads a string with escape sequences until it meets an end character (typically double or single quote).Methods in net.diversionmc.parser.expression that return ExpressionPieceModifier and TypeMethodDescriptionPieceSupplier.apply(char c, FilePointer ptr) Apply function to character at a position.CommentPiece.replace(FilePointer ptr) ExpressionPiece.replace(FilePointer ptr) Called wheneverPieceResult.REPLACE_LEAVEorPieceResult.REPLACE_TAKEare used.Methods in net.diversionmc.parser.expression that return types with arguments of type ExpressionPieceConstructors in net.diversionmc.parser.expression with parameters of type ExpressionPieceModifierConstructorDescriptionCommentPiece(FilePointer ptr, boolean inline, ExpressionPiece original) Construct a comment piece.Constructor parameters in net.diversionmc.parser.expression with type arguments of type ExpressionPieceModifierConstructorDescriptionGroupPiece(FilePointer ptr, 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 ExpressionPieceModifier and TypeClassDescriptionfinal recordGrouper<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.final recordGrouper<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 ExpressionPieceModifier and TypeMethodDescriptionGrouper.group(ExpressionPiece left, ExpressionPiece right, List<ExpressionPiece> content) Create a group from the given pieces.Methods in net.diversionmc.parser.group that return types with arguments of type ExpressionPieceModifier and TypeMethodDescriptionGrouper.end()Returns the value of theendrecord component.Grouper.start()Returns the value of thestartrecord component.Methods in net.diversionmc.parser.group with parameters of type ExpressionPieceModifier and TypeMethodDescriptionbooleanGrouper.end(ExpressionPiece toTest) Check if a piece matches the ending boundary of the group.Grouper.group(ExpressionPiece left, ExpressionPiece right, 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 ExpressionPieceModifier and TypeMethodDescriptionGroupSupplier.apply(L left, R right, List<ExpressionPiece> content) Create a group from the given pieces.Grouper.group(ExpressionPiece left, ExpressionPiece right, List<ExpressionPiece> content) Create a group from the given pieces.Constructor parameters in net.diversionmc.parser.group with type arguments of type ExpressionPieceModifierConstructorDescriptionGrouper(Predicate<ExpressionPiece> start, 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 ExpressionPieceModifier and TypeMethodDescriptionstatic <T extends Sentence>
LinkedList<T>ParsePattern.match(List<ExpressionPiece> expressions, ParsePattern<T>... patterns) Match all the given patterns or fail.static <T extends Sentence>
PatternResult<T>ParsePattern.matchOne(List<ExpressionPiece> expressions, ParsePattern<T>... patterns) Try to match at least one pattern from the given patterns.ParsePattern.parse(List<ExpressionPiece> e) Apply this pattern piece conversion from a given piece list.