public class TryCatchDetails extends Object
Constructor | Description |
---|---|
TryCatchDetails(CFG cfg,
org.objectweb.asm.Label start,
org.objectweb.asm.Label end,
org.objectweb.asm.Label handler,
String type,
boolean isTriggerHandler) |
construct a try catch details instance
|
Modifier and Type | Method | Description |
---|---|---|
void |
addOpenEnter(CodeLocation openEnter) |
add a new monitor enter location to the list of open locations associated with this handler
maintaining the reverse position ordering
|
void |
addOpenLocations(List<CodeLocation> openMonitorEnters) |
add all the open locations associated with this handler to the supplied list of open locations
maintaining the reverse position ordering
|
void |
addShadowRegion(TryCatchDetails tryCatchDetails) |
add a shadowing region to the list of regions which shadow this one
|
boolean |
containsOpenEnter(CodeLocation openEnter) |
check if a monitor enter location belongs to the list of open locations associated with this handler
|
org.objectweb.asm.Label |
getEnd() |
|
org.objectweb.asm.Label |
getHandler() |
|
Iterator<CodeLocation> |
getOpenEnters() |
|
List<TryCatchDetails> |
getShadowRegions() |
|
org.objectweb.asm.Label |
getStart() |
|
String |
getType() |
|
boolean |
hasShadowRegion(TryCatchDetails tryCatchDetails) |
|
boolean |
isTriggerHandler() |
|
String |
toString() |
public TryCatchDetails(CFG cfg, org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, String type, boolean isTriggerHandler)
cfg
- the control flow graphstart
- the try block startend
- the try block endhandler
- the handler block starttype
- the handled exception typeisTriggerHandler
- true if this handler handles Byteman errorspublic org.objectweb.asm.Label getStart()
public org.objectweb.asm.Label getEnd()
public org.objectweb.asm.Label getHandler()
public String getType()
public boolean isTriggerHandler()
public void addOpenEnter(CodeLocation openEnter)
openEnter
- the location of the monitor enterpublic boolean containsOpenEnter(CodeLocation openEnter)
openEnter
- the location of the monitor enterpublic void addOpenLocations(List<CodeLocation> openMonitorEnters)
openMonitorEnters
- list of locations of the monitor enterspublic Iterator<CodeLocation> getOpenEnters()
public void addShadowRegion(TryCatchDetails tryCatchDetails)
tryCatchDetails
- detaisl of a try catch blockpublic List<TryCatchDetails> getShadowRegions()
public boolean hasShadowRegion(TryCatchDetails tryCatchDetails)
Copyright © 2018. All rights reserved.