Class SimpleInputParser<E>
java.lang.Object
com.sk89q.worldedit.internal.registry.InputParser<E>
com.sk89q.worldedit.internal.registry.SimpleInputParser<E>
- Type Parameters:
E
- the element
- Direct Known Subclasses:
AirMaskParser
,ExistingMaskParser
,ExposedMaskParser
,LazyRegionMaskParser
,RegionMaskParser
,SolidMaskParser
An input parser that only performs a single function from aliases.
-
Field Summary
Fields inherited from class com.sk89q.worldedit.internal.registry.InputParser
worldEdit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe strings this parser matches.Gets the primary name of this matcher.getSuggestions
(String input) Gets a stream of suggestions of input to this parser.parseFromInput
(String input, ParserContext context) abstract E
parseFromSimpleInput
(String input, ParserContext context)
-
Constructor Details
-
SimpleInputParser
-
-
Method Details
-
getMatchedAliases
The strings this parser matches.- Returns:
- the matching aliases
-
parseFromInput
- Specified by:
parseFromInput
in classInputParser<E>
- Throws:
InputParseException
-
parseFromSimpleInput
public abstract E parseFromSimpleInput(String input, ParserContext context) throws InputParseException - Throws:
InputParseException
-
getPrimaryMatcher
Gets the primary name of this matcher.- Returns:
- the primary match
-
getSuggestions
Description copied from class:InputParser
Gets a stream of suggestions of input to this parser.- Overrides:
getSuggestions
in classInputParser<E>
- Returns:
- a stream of suggestions
-