Uses of Class
com.j3d.engine.interact.cmd.CmdToken
Packages that use CmdToken
Package
Description
Package that holds all classes related to command-line interaction and processing.
Provides classes and interfaces for command auto-completion and suggestion functionality.
-
Uses of CmdToken in com.j3d.engine.interact.cmd
Fields in com.j3d.engine.interact.cmd with type parameters of type CmdTokenModifier and TypeFieldDescriptionCommandParser.tokensA list ofCmdTokenobjects representing the parsed input line.Methods in com.j3d.engine.interact.cmd that return types with arguments of type CmdTokenMethods in com.j3d.engine.interact.cmd with parameters of type CmdTokenModifier and TypeMethodDescriptionprivate voidCommandParser.addArg(CmdToken cmdToken, Object arg, CmdToken.Type t, boolean injected) Adds an argument to the internal list of arguments and updates the command palette's input field if the argument was "injected" (i.e., programmatically added rather than typed by the user).private voidCommandParser.argAddUUID(CmdToken tok, UUID uuid, boolean injected) Attempts to finder a GObject or Thing with the given UUID and adds it to the arguments list.private voidParses a single command token, attempting to convert its string representation into a specific object type (String, Vector3, Colour, UUID-referenced object, number, boolean, or tagged argument).private voidCommandParser.parseAsNumberOrBool(CmdToken token, String accumulator, Consumer<String> otherwise) Attempt to parse the given token as an integer or double and add the resulting number toCommandParser.arguments.Method parameters in com.j3d.engine.interact.cmd with type arguments of type CmdToken -
Uses of CmdToken in com.j3d.engine.interact.cmd.complete
Methods in com.j3d.engine.interact.cmd.complete that return types with arguments of type CmdTokenModifier and TypeMethodDescriptionTypingHints.onTabComplete()Provides aQuadConsumerthat handles tab completion logic for the command palette.Methods in com.j3d.engine.interact.cmd.complete with parameters of type CmdTokenModifier and TypeMethodDescriptionprivate InlineHTMLTypingHints.argSetMatch(String arg, CmdToken token) Type checks a givenStringvalue as to be at least partially or fully matched within the given argument set.private InlineHTMLType checks a given value as to expect aBooleanprivate InlineHTMLTypingHints.colourMatch(String arg, CmdToken token) Type checks a given value as to expect aColorprivate InlineHTMLTypingHints.idReferenceMatch(String arg, CmdToken token) private InlineHTMLTypingHints.numberMatch(String arg, CmdToken token) private SamePair<ArrayList<InlineHTML>> TypingHints.possibleCommandAliasMatches(CmdToken token) Finds and styles possible command alias matches based on the given command token.booleanTypingHints.similarTypes(CmdToken token, String usage) Determines if a given command token's type is compatible with a specified usage string.private InlineHTMLType checks a given value as to expect aVector3Method parameters in com.j3d.engine.interact.cmd.complete with type arguments of type CmdTokenModifier and TypeMethodDescriptionTypingHints.colourGivenUsage(String usage, ArrayList<CmdToken> tokens) Styles a given command usage string based on the provided user input tokens.private InlineHTMLTypingHints.colourTaggedArgs(InlineHTML rich, Command command, ArrayList<CmdToken> init) Appends a hint for tagged arguments to the givenInlineHTMLbased on the command's support for tagged arguments and whether any tagged arguments are present in the input.voidParses the given command tokens and provides typing hints or suggestions based on the current input.