@Test public void shouldNotGetClass() throws Exception { ReflectorFactory reflectorFactory = new DefaultReflectorFactory(); Reflector reflector = reflectorFactory.findForClass(Section.class); Assert.assertFalse(reflector.hasGetter("class")); }
public boolean hasGetter(String propertyName) { return getMethods.keySet().contains(propertyName); }
Reflector { public boolean hasGetter(String propertyName) { return getMethods.keySet().contains(propertyName); } }
Reflector { public boolean hasGetter(String propertyName) { return getMethods.keySet().contains(propertyName); } Reflector(Class<?> clazz); }
Reflector { public boolean hasGetter(String propertyName) { return getMethods.keySet().contains(propertyName); } Reflector(Class<?> clazz); static boolean canControlMemberAccessible(); Class<?> getType(); Constructor<?> getDefaultConstructor(); boolean hasDefaultConstructor(); Invoker getSetInvoker(String propertyName); Invoker getGetInvoker(String propertyName); Class<?> getSetterType(String propertyName); Class<?> getGetterType(String propertyName); String[] getGetablePropertyNames(); String[] getSetablePropertyNames(); boolean hasSetter(String propertyName); boolean hasGetter(String propertyName); String findPropertyName(String name); }
Reflector { public boolean hasGetter(String propertyName) { return getMethods.keySet().contains(propertyName); } Reflector(Class<?> clazz); static boolean canControlMemberAccessible(); Class<?> getType(); Constructor<?> getDefaultConstructor(); boolean hasDefaultConstructor(); Invoker getSetInvoker(String propertyName); Invoker getGetInvoker(String propertyName); Class<?> getSetterType(String propertyName); Class<?> getGetterType(String propertyName); String[] getGetablePropertyNames(); String[] getSetablePropertyNames(); boolean hasSetter(String propertyName); boolean hasGetter(String propertyName); String findPropertyName(String name);  }