public class ThrownExceptionFeature extends BinaryFeature
| Modifier and Type | Field and Description | 
|---|---|
private Sort[] | 
filteredExceptions  | 
TOP_COST, ZERO_COST| Modifier | Constructor and Description | 
|---|---|
private  | 
ThrownExceptionFeature(java.lang.String[] p_filteredExceptions,
                      Services services)
creates a feature filtering first active throw statements where the
 thrown exception is of one of the given types (or their subtypes) 
 | 
| Modifier and Type | Method and Description | 
|---|---|
private boolean | 
blockedExceptions(Sort excType)  | 
static Feature | 
create(java.lang.String[] blockedExceptions,
      Services services)  | 
protected boolean | 
filter(RuleApp app,
      PosInOccurrence pos,
      Goal goal)
Compute whether the result of the feature is zero ( 
true)
 or infinity (false) | 
protected boolean | 
filter(Term term,
      Services services,
      ExecutionContext ec)  | 
private ProgramElement | 
getFirstExecutableStatement(Term term)
returns the first executable statement (often identical with the first
 active statement) 
 | 
computeCostprivate final Sort[] filteredExceptions
private ThrownExceptionFeature(java.lang.String[] p_filteredExceptions,
                               Services services)
p_filteredExceptions - the String array with the types of the thrown exceptionsservices - the Servicesprivate boolean blockedExceptions(Sort excType)
protected boolean filter(RuleApp app, PosInOccurrence pos, Goal goal)
BinaryFeaturetrue)
 or infinity (false)filter in class BinaryFeatureapp - the RuleApppos - position where app is to be appliedgoal - the goal on which app is to be appliedprotected boolean filter(Term term, Services services, ExecutionContext ec)
private ProgramElement getFirstExecutableStatement(Term term)
term - the Term with the program at top level