Class Namespace
-
- All Implemented Interfaces:
-
com.skillw.asahi.api.member.AsahiRegistrable,kotlin.Comparable
public class Namespace implements AsahiRegistrable<String>, Comparable<Namespace>
Namespace
-
-
Method Summary
Modifier and Type Method Description StringgetKey()final BooleangetShared()final IntegergetPriority()final BooleanhasPrefix(String token)有无前缀解释器 final BasePrefix<?>getPrefix(String token)获取前缀解释器 final UnitregisterPrefix(BasePrefix<?> prefix)注册前缀解释器 final <T extends Any> BaseInfix<T>getInfix(Class<T> type)获取中缀解释器 final UnitregisterInfix(BaseInfix<?> infix)注册中缀解释器 final BooleanhasInfix(String token)有无此中缀Token final BooleanhasInfix(Class<?> type)有无此类型的中缀解释器 final <T extends Any> BaseInfix<T>infixOf(T any)获取一个对象的类型的中缀解释器 Unitregister()IntegercompareTo(Namespace other)-
-
Method Detail
-
getPriority
final Integer getPriority()
-
getPrefix
final BasePrefix<?> getPrefix(String token)
获取前缀解释器
- Parameters:
token- token
-
registerPrefix
final Unit registerPrefix(BasePrefix<?> prefix)
注册前缀解释器
- Parameters:
prefix- 前缀解释器
-
registerInfix
final Unit registerInfix(BaseInfix<?> infix)
注册中缀解释器
- Parameters:
infix- 中缀解释器
-
hasInfix
final Boolean hasInfix(String token)
有无此中缀Token
- Parameters:
token- 中缀Token- Returns:
有无此中缀token
-
hasInfix
final Boolean hasInfix(Class<?> type)
有无此类型的中缀解释器
- Parameters:
type- 对象类型- Returns:
有无此类型的中缀解释器
-
infixOf
final <T extends Any> BaseInfix<T> infixOf(T any)
获取一个对象的类型的中缀解释器
- Parameters:
any- 对象- Returns:
对象类型的中缀解释器
-
-
-
-