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
- All Implemented Interfaces:
AliasedParser
- Direct Known Subclasses:
AirMaskParser,DarkenPatternParser,ExistingMaskParser,ExistingPatternParser,ExpressionPatternParser,FalseMaskParser,HotbarParser,LazyRegionMaskParser,LightenPatternParser,LiquidMaskParser,RegionMaskParser,SolidMaskParser,SurfaceMaskParser,TrueMaskParser,WallMaskParser,XAxisMaskParser,YAxisMaskParser,ZAxisMaskParser
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets 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 EparseFromSimpleInput(String input, ParserContext context) Methods inherited from class com.sk89q.worldedit.internal.registry.InputParser
getSuggestionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.fastasyncworldedit.core.extension.factory.parser.AliasedParser
getMatchedAliases
-
Constructor Details
-
SimpleInputParser
-
-
Method Details
-
parseFromInput
- Specified by:
parseFromInputin 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:InputParserGets a stream of suggestions of input to this parser.- Overrides:
getSuggestionsin classInputParser<E>- Returns:
- a stream of suggestions
-