@Test public void testHandle() throws Exception { List<Element> fields = TestUtils.getTestFields(); ElementHandler handler = new EnumHandler(); Assert.assertFalse(handler.handle(fields.get(0))); Assert.assertFalse(handler.handle(fields.get(1))); Assert.assertFalse(handler.handle(fields.get(2))); Assert.assertFalse(handler.handle(fields.get(3))); Assert.assertTrue(handler.handle(fields.get(4))); }
public boolean handle(Element element) { try { return element.getWrappedType().isEnum(); } catch (Exception e) { } return false; }
EnumHandler implements ElementHandler { public boolean handle(Element element) { try { return element.getWrappedType().isEnum(); } catch (Exception e) { } return false; } }
EnumHandler implements ElementHandler { public boolean handle(Element element) { try { return element.getWrappedType().isEnum(); } catch (Exception e) { } return false; }  }
EnumHandler implements ElementHandler { public boolean handle(Element element) { try { return element.getWrappedType().isEnum(); } catch (Exception e) { } return false; }  boolean handle(Element element); }
EnumHandler implements ElementHandler { public boolean handle(Element element) { try { return element.getWrappedType().isEnum(); } catch (Exception e) { } return false; }  boolean handle(Element element);  }