Class TopPrefixParser
-
- All Implemented Interfaces:
-
com.skillw.asahi.api.member.AsahiRegistrable
,com.skillw.asahi.api.member.parser.prefix.PrefixParser
,kotlin.Comparable
public abstract class TopPrefixParser<R extends Object> implements AsahiRegistrable<String>, PrefixParser<R>, Comparable<TopPrefixParser<?>>
Glom
-
-
Constructor Summary
Constructors Constructor Description TopPrefixParser(String key, Integer priority)
-
Method Summary
Modifier and Type Method Description String
getKey()
键 final Integer
getPriority()
final Boolean
canParseWith(AsahiLexer lexer, String token)
能否解释 final Quester<R>
parseWith(AsahiLexer lexer, String token)
解释 Quester<R>
parseWith(AsahiLexer lexer)
前缀解释器执行内容 Integer
compareTo(TopPrefixParser<?> other)
String
toString()
Unit
register()
final static Quester<out Object>
tryLangParse(AsahiLexer $self, String token)
-
-
Method Detail
-
getPriority
final Integer getPriority()
-
canParseWith
final Boolean canParseWith(AsahiLexer lexer, String token)
能否解释
- Parameters:
lexer
- 词法器token
- token- Returns:
能否解释
-
parseWith
final Quester<R> parseWith(AsahiLexer lexer, String token)
解释
- Parameters:
lexer
- 词法器token
- token- Returns:
结果
-
parseWith
Quester<R> parseWith(AsahiLexer lexer)
前缀解释器执行内容
- Parameters:
lexer
- 词法器- Returns:
结果
-
compareTo
Integer compareTo(TopPrefixParser<?> other)
-
tryLangParse
final static Quester<out Object> tryLangParse(AsahiLexer $self, String token)
-
-
-
-