Class Parsers
- java.lang.Object
-
- ca.stellardrift.permissionsex.minecraft.command.argument.Parsers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContextValueParsercontextValue()static <C> PatternParser<C>greedyPattern()Get a parser for a greedy patternstatic <C> OptionValueParser<C>optionValue()Get a parser for an option value.static <C> PatternParser<C>pattern()Get a parser for a non-greedy patternstatic <C> PermissionValueParser<C>permissionValue()static <C> RankLadderParser<C>rankLadder()static <C,I>
SubjectIdentifierParser<C,I>subjectIdentifier(ca.stellardrift.permissionsex.subject.SubjectType<I> type)static <C> SubjectIdentifierParser<C,Object>subjectIdentifier(Function<cloud.commandframework.context.CommandContext<C>,ca.stellardrift.permissionsex.subject.SubjectType<?>> typeExtractor)static <C> SubjectTypeParser<C>subjectType()
-
-
-
Method Detail
-
contextValue
public static ContextValueParser contextValue()
-
permissionValue
public static <C> PermissionValueParser<C> permissionValue()
-
rankLadder
public static <C> RankLadderParser<C> rankLadder()
-
subjectType
public static <C> SubjectTypeParser<C> subjectType()
-
subjectIdentifier
public static <C,I> SubjectIdentifierParser<C,I> subjectIdentifier(ca.stellardrift.permissionsex.subject.SubjectType<I> type)
-
subjectIdentifier
public static <C> SubjectIdentifierParser<C,Object> subjectIdentifier(Function<cloud.commandframework.context.CommandContext<C>,ca.stellardrift.permissionsex.subject.SubjectType<?>> typeExtractor)
-
pattern
public static <C> PatternParser<C> pattern()
Get a parser for a non-greedy pattern- Type Parameters:
C- the sender type- Returns:
- a parser
-
greedyPattern
public static <C> PatternParser<C> greedyPattern()
Get a parser for a greedy pattern- Type Parameters:
C- the sender type- Returns:
- a parser
-
optionValue
public static <C> OptionValueParser<C> optionValue()
Get a parser for an option value.This will read a greedy string up until a flag start character is found, or the end of a quoted block is found
- Type Parameters:
C- the sender type- Returns:
- a parser
-
-