public class ContextImpl extends ParameterImpl implements Context
| 构造器和说明 |
|---|
ContextImpl() |
ContextImpl(@Nullable Block block) |
ContextImpl(@Nullable Block block,
@Nullable Map<Key<?>,Object> params) |
| 限定符和类型 | 方法和说明 |
|---|---|
Context |
cloneContext()
克隆流程上下文,新建流程上下文,并复制当前上下文中的参数至新的上下文对象。
|
boolean |
equals(Object o) |
Block |
getBlock()
获取当前区块
|
Throwable |
getCurrentException()
获取当前异常对象
|
KeyMapper |
getMapper()
获取参数映射器
|
int |
hashCode() |
boolean |
readableKey(Key<?> key)
当前key是否可读。
|
void |
setCurrentException(Throwable t)
设置当前异常对象
|
boolean |
writableKey(Key<?> key)
当前key是否可写。
|
containsKey, containsValue, get, get, getParameters, isEmpty, put, putAll, putIfAbsent, remove, sizecontainsKey, containsValue, get, get, getParameters, isEmpty, put, putAll, putIfAbsent, remove, sizepublic ContextImpl()
public ContextImpl(@Nullable
@Nullable Block block)
public Context cloneContext()
ContextcloneContext 在接口中 Contextpublic boolean readableKey(Key<?> key)
ContextreadableKey 在接口中 Contextkey - 参数keypublic boolean writableKey(Key<?> key)
ContextwritableKey 在接口中 Contextkey - 参数keypublic Throwable getCurrentException()
ContextgetCurrentException 在接口中 Contextpublic void setCurrentException(Throwable t)
ContextsetCurrentException 在接口中 Contextt - 当前异常对象Copyright © 2021. All rights reserved.