Package com.skillw.asahi.util
Class AsahiDataMap
-
- All Implemented Interfaces:
-
com.skillw.asahi.api.member.context.AsahiContext
,com.skillw.asahi.api.script.linking.InvokerHolder
,javax.script.Bindings
,kotlin.collections.Map
,kotlin.collections.MutableMap
public class AsahiDataMap implements AsahiContext
Glom
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
AsahiDataMap.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Boolean
analysis
public final static AsahiDataMap.Companion
Companion
-
Constructor Summary
Constructors Constructor Description AsahiDataMap(Boolean analysis)
-
Method Summary
Modifier and Type Method Description final Boolean
getAnalysis()
final Object
getValue(Object thisRef, KProperty<?> property)
final Unit
setValue(Object thisRef, KProperty<?> property, Object value)
final <T extends Any> T
get(String key, T default)
获取任意对象 final <T extends Any> T
getAs(String key)
final <T extends Any> T
getOrDefault(String key, Function0<T> defaultFunc)
获取任意对象 final Object
getAny(String key)
根据键获取any final List<Object>
getList(String key)
根据键获取list final Short
getShort(String key)
根据键获取short final Byte
getByte(String key)
根据键获取byte final Boolean
getBoolean(String key)
根据键获取boolean final Double
getDouble(String key)
根据键获取double final Float
getFloat(String key)
根据键获取float final Long
getLong(String key)
根据键获取long final Integer
getInt(String key)
根据键获取int final String
getString(String key)
根据键获取string -
-
Constructor Detail
-
AsahiDataMap
AsahiDataMap(Boolean analysis)
-
-
Method Detail
-
getAnalysis
final Boolean getAnalysis()
-
get
final <T extends Any> T get(String key, T default)
获取任意对象
- Parameters:
key
- String 键default
- T?- Returns:
T 类型值11
-
getOrDefault
final <T extends Any> T getOrDefault(String key, Function0<T> defaultFunc)
获取任意对象
- Parameters:
key
- String 键- Returns:
T 类型值11
-
getBoolean
final Boolean getBoolean(String key)
根据键获取boolean
-
-
-
-