public class TryCatchFinallyProcessorImpl extends Object implements TryCatchFinallyProcessor
| 限定符和类型 | 字段和说明 |
|---|---|
private List<TryCatchFinallyNode.CatchMapper> |
catchMapperList |
private BranchNode |
finallyBranch |
private BranchNode |
tryBranch |
| 构造器和说明 |
|---|
TryCatchFinallyProcessorImpl(BranchNode tryBranch,
List<TryCatchFinallyNode.CatchMapper> catchMapperList,
BranchNode finallyBranch) |
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
checkCatchGrammar(List<TryCatchFinallyNode.CatchMapper> catchMapperList)
检查是否满足catch语法
|
void |
destroy() |
List<TryCatchFinallyNode.CatchMapper> |
getCatchMapperList() |
BranchNode |
getFinallyBranch() |
BranchNode |
getTryBranch() |
void |
initialize() |
@NotNull ProcessStatus |
process(@NotNull Context context) |
private ProcessStatus |
runCatchBranch(Context context,
Exception e) |
private void |
runFinallyBranch(Context context) |
void |
setCatchMapperList(List<TryCatchFinallyNode.CatchMapper> catchMapperList) |
void |
setFinallyBranch(BranchNode finallyBranch) |
void |
setTryBranch(BranchNode tryBranch) |
private BranchNode tryBranch
private List<TryCatchFinallyNode.CatchMapper> catchMapperList
private BranchNode finallyBranch
public TryCatchFinallyProcessorImpl(BranchNode tryBranch, List<TryCatchFinallyNode.CatchMapper> catchMapperList, BranchNode finallyBranch)
public BranchNode getTryBranch()
getTryBranch 在接口中 TryCatchFinallyProcessorpublic void setTryBranch(BranchNode tryBranch)
setTryBranch 在接口中 TryCatchFinallyProcessorpublic List<TryCatchFinallyNode.CatchMapper> getCatchMapperList()
getCatchMapperList 在接口中 TryCatchFinallyProcessorpublic void setCatchMapperList(List<TryCatchFinallyNode.CatchMapper> catchMapperList)
setCatchMapperList 在接口中 TryCatchFinallyProcessorpublic BranchNode getFinallyBranch()
getFinallyBranch 在接口中 TryCatchFinallyProcessorpublic void setFinallyBranch(BranchNode finallyBranch)
setFinallyBranch 在接口中 TryCatchFinallyProcessorprivate void checkCatchGrammar(List<TryCatchFinallyNode.CatchMapper> catchMapperList)
catchMapperList - catchMapperList@NotNull public @NotNull ProcessStatus process(@NotNull @NotNull Context context) throws Exception
process 在接口中 Processor<ProcessStatus>Exceptionprivate ProcessStatus runCatchBranch(Context context, Exception e) throws Exception
Exceptionpublic void initialize()
initialize 在接口中 LifecycleCopyright © 2021. All rights reserved.