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
-
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 E
parseFromSimpleInput
(String input, ParserContext context) Methods inherited from class com.sk89q.worldedit.internal.registry.InputParser
getSuggestions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fastasyncworldedit.core.extension.factory.parser.AliasedParser
getMatchedAliases
-
Constructor Details
-
SimpleInputParser
-
-
Method Details
-
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
-