@Override public boolean test(final SwitchSection s) { return !s.getCaseLabels().isEmpty() && all( s.getCaseLabels(), new Predicate<CaseLabel>() { @Override public boolean test(final CaseLabel c) { return c.getExpression().isNull() || (c.getExpression() instanceof PrimitiveExpression && ((PrimitiveExpression) c.getExpression()).getValue() instanceof Integer && tableInputMap.containsKey(((PrimitiveExpression) c.getExpression()).getValue())); } } ); } }
@Override public boolean test(final SwitchSection s) { return !s.getCaseLabels().isEmpty() && all( s.getCaseLabels(), new Predicate<CaseLabel>() { @Override public boolean test(final CaseLabel c) { return c.getExpression().isNull() || (c.getExpression() instanceof PrimitiveExpression && ((PrimitiveExpression) c.getExpression()).getValue() instanceof Integer && tableInputMap.containsKey(((PrimitiveExpression) c.getExpression()).getValue())); } } ); } }
@Override public boolean test(final SwitchSection s) { return !s.getCaseLabels().isEmpty() && all( s.getCaseLabels(), new Predicate<CaseLabel>() { @Override public boolean test(final CaseLabel c) { return c.getExpression().isNull() || (c.getExpression() instanceof PrimitiveExpression && ((PrimitiveExpression) c.getExpression()).getValue() instanceof Integer && tableInputMap.containsKey(((PrimitiveExpression) c.getExpression()).getValue())); } } ); } }
final boolean removeAll = all( monitorExitNodes, new Predicate<Node>() {
final boolean removeAll = all( monitorExitNodes, new Predicate<Node>() {
final boolean removeAll = all( monitorExitNodes, new Predicate<Node>() {
final boolean allCasesFound = all( tableSwitch.getSwitchSections(), new Predicate<SwitchSection>() {
final boolean allCasesFound = all( tableSwitch.getSwitchSections(), new Predicate<SwitchSection>() {
final boolean allCasesFound = all( tableSwitch.getSwitchSections(), new Predicate<SwitchSection>() {