sandmark.obfuscate.boolsplitter.dcfg
Class Handler
java.lang.Object
|
+--sandmark.obfuscate.boolsplitter.dcfg.Handler
- public class Handler
- extends java.lang.Object
Handler represents a try-catch block. It containes a set of
protected Blocks (the "try" blocks), a catch Block,
and the Type of exception that is caught by the catch block.
- See Also:
Block
,
Catch
,
TryCatch
Constructor Summary |
Handler(Block catchBlock,
EDU.purdue.cs.bloat.editor.Type type)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
protectedBlocks
java.util.Set protectedBlocks
catchBlock
Block catchBlock
type
EDU.purdue.cs.bloat.editor.Type type
Handler
public Handler(Block catchBlock,
EDU.purdue.cs.bloat.editor.Type type)
- Constructor.
- Parameters:
catchBlock
- The block of code that handles an exceptiontype
- The type of exception that is thrown
protectedBlocks
public java.util.Collection protectedBlocks()
- Returns a Collection of the "try" blocks.
setCatchBlock
public void setCatchBlock(Block block)
catchBlock
public Block catchBlock()
catchType
public EDU.purdue.cs.bloat.editor.Type catchType()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object