-
-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric Bodden
committed
Aug 7, 2012
1 parent
883c6f7
commit c65c963
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package soot.tagkit; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class TryCatchTag implements soot.tagkit.Tag { | ||
|
||
public static final String NAME = "TryCatchTag"; | ||
|
||
protected Map<soot.Unit,soot.Unit> handlerUnitToFallThroughUnit = new HashMap<soot.Unit, soot.Unit>(); | ||
|
||
public void register(soot.Unit handler, soot.Unit fallThrough) { | ||
handlerUnitToFallThroughUnit.put(handler, fallThrough); | ||
} | ||
|
||
public soot.Unit getFallThroughUnitOf(soot.Unit handlerUnit) { | ||
return handlerUnitToFallThroughUnit.get(handlerUnit); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return NAME; | ||
} | ||
|
||
@Override | ||
public byte[] getValue() throws AttributeValueException { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
} |