@Override public String inferName(JMethod method) { if (isBooleanProperty(method) && method.getName().startsWith(IS_PREFIX)) { return Introspector.decapitalize(method.getName().substring(2)); } return super.inferName(method); }
@Override public boolean matches(JMethod method) { if (method.getParameters().length > 0) { return false; } if (isBooleanProperty(method)) { return true; } String name = method.getName(); if (name.startsWith(GET_PREFIX) && name.length() > 3) { return true; } return false; }
@Override public boolean matches(JMethod method) { if (method.getParameters().length > 0) { return false; } if (isBooleanProperty(method)) { return true; } String name = method.getName(); if (name.startsWith(GET_PREFIX) && name.length() > 3) { return true; } return false; }
@Override public String inferName(JMethod method) { if (isBooleanProperty(method) && method.getName().startsWith(IS_PREFIX)) { return Introspector.decapitalize(method.getName().substring(2)); } return super.inferName(method); }