Skip to content

Commit

Permalink
adding missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Bodden committed Aug 7, 2012
1 parent 883c6f7 commit c65c963
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/soot/tagkit/TryCatchTag.java
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();
}

}

0 comments on commit c65c963

Please sign in to comment.