Class InfixContext
-
- All Implemented Interfaces:
-
com.skillw.asahi.api.member.context.AsahiContext
,com.skillw.asahi.api.member.lexer.AsahiLexer
,com.skillw.asahi.api.member.namespace.NamespaceHolder
,com.skillw.asahi.api.script.linking.InvokerHolder
,javax.script.Bindings
,kotlin.collections.Map
,kotlin.collections.MutableMap
public class InfixContext implements AsahiContext, AsahiLexer
Glom
-
-
Field Summary
Fields Modifier and Type Field Description private final AsahiContext
context
private final AsahiLexer
reader
private String
token
-
Constructor Summary
Constructors Constructor Description InfixContext(AsahiContext context, AsahiLexer reader, String token)
-
Method Summary
Modifier and Type Method Description final AsahiContext
getContext()
final AsahiLexer
getReader()
final String
getToken()
final Unit
setToken(String token)
final <R extends Any> R
parse()
final String
parseString()
final Integer
parseInt()
解析 int final Double
parseDouble()
解析 double final Float
parseFloat()
解析 float final Byte
parseByte()
解析 byte final Short
parseShort()
解析 short final Boolean
parseBoolean()
解析 boolean final Long
parseLong()
解析 long final List<Object>
parseList()
解析 list final Array<Object>
parseArray()
解析 array final Map<String, Object>
parseMap()
解析 map final Object
parseObj()
解析 tokenizer final Object
parseAny()
final LazyQuester<Object>
parseLazy()
解析 map final Time
parseTime()
解析 Time final Long
parseTick()
解析 Tick Unit
debugOn()
开启执行时调试 Unit
debugOff()
关闭执行时调试 Unit
reset()
重置上下文 InfixContext
clone()
Clone -
-
Constructor Detail
-
InfixContext
InfixContext(AsahiContext context, AsahiLexer reader, String token)
-
-
Method Detail
-
getContext
final AsahiContext getContext()
-
getReader
final AsahiLexer getReader()
-
parseString
final String parseString()
-
parseDouble
final Double parseDouble()
解析 double
-
parseFloat
final Float parseFloat()
解析 float
-
parseShort
final Short parseShort()
解析 short
-
parseBoolean
final Boolean parseBoolean()
解析 boolean
-
parseArray
final Array<Object> parseArray()
解析 array
-
parseLazy
final LazyQuester<Object> parseLazy()
解析 map
-
clone
InfixContext clone()
Clone
-
-
-
-