private boolean isHasCorrespondingReadProperty(Method readProperty, Class<?> c) { if (!FOLLOW_RMIC) return false; String readPropertyMethodName = readProperty.getName(); boolean foundIsProperty = false; try { // Look for a valid corresponding Read property String isPropertyMethodName = readPropertyMethodName.replaceFirst(IS_PROPERTY_PREFIX, GET_PROPERTY_PREFIX); Method isPropertyMethod = c.getMethod(isPropertyMethodName, new Class[]{}); foundIsProperty = isPropertyAccessorMethod(isPropertyMethod, c); } catch (Exception e) { // ignore. this means we didn't find a corresponding read property. } return foundIsProperty; }
private boolean isHasCorrespondingReadProperty(Method readProperty, Class<?> c) { if (!FOLLOW_RMIC) return false; String readPropertyMethodName = readProperty.getName(); boolean foundIsProperty = false; try { // Look for a valid corresponding Read property String isPropertyMethodName = readPropertyMethodName.replaceFirst(IS_PROPERTY_PREFIX, GET_PROPERTY_PREFIX); Method isPropertyMethod = c.getMethod(isPropertyMethodName, new Class[]{}); foundIsProperty = isPropertyAccessorMethod(isPropertyMethod, c); } catch (Exception e) { // ignore. this means we didn't find a corresponding read property. } return foundIsProperty; }
private boolean hasCorrespondingReadProperty(Method writeProperty, Class<?> c, String readPropertyPrefix) { String writePropertyMethodName = writeProperty.getName(); Class<?>[] writePropertyParameters = writeProperty.getParameterTypes(); boolean foundReadProperty = false; try { // Look for a valid corresponding Read property String readPropertyMethodName = writePropertyMethodName.replaceFirst(SET_PROPERTY_PREFIX, readPropertyPrefix); Method readPropertyMethod = c.getMethod(readPropertyMethodName, new Class[]{}); foundReadProperty = (isPropertyAccessorMethod(readPropertyMethod, c) && (readPropertyMethod.getReturnType() == writePropertyParameters[0])); } catch (Exception e) { // ignore. this means we didn't find a corresponding get property. } return foundReadProperty; }
private boolean hasCorrespondingReadProperty(Method writeProperty, Class<?> c, String readPropertyPrefix) { String writePropertyMethodName = writeProperty.getName(); Class<?>[] writePropertyParameters = writeProperty.getParameterTypes(); boolean foundReadProperty = false; try { // Look for a valid corresponding Read property String readPropertyMethodName = writePropertyMethodName.replaceFirst(SET_PROPERTY_PREFIX, readPropertyPrefix); Method readPropertyMethod = c.getMethod(readPropertyMethodName, new Class[]{}); foundReadProperty = (isPropertyAccessorMethod(readPropertyMethod, c) && (readPropertyMethod.getReturnType() == writePropertyParameters[0])); } catch (Exception e) { // ignore. this means we didn't find a corresponding get property. } return foundReadProperty; }
if (idlTypesUtil.isPropertyAccessorMethod(nextMethod, interf))
if (idlTypesUtil.isPropertyAccessorMethod(nextMethod, interf))