private boolean isNeedsDelegateToWidget(JClassType type) { if (needsDelegateToWidget.containsKey(type)) { return true; } else { return previousBundle != null && previousBundle.isNeedsDelegateToWidget(type); } }
private boolean isNeedsOnStateChangeHandler(JClassType type, JMethod method) { if (hasMapping(needsOnStateChange, type, method)) { return true; } else { return previousBundle != null && previousBundle.isNeedsOnStateChangeHandler(type, method); } }
private boolean isNeedsDelayedInfo(JClassType type, JMethod method) { if (hasMapping(needsDelayedInfo, type, method)) { return true; } else { return previousBundle != null && previousBundle.isNeedsDelayedInfo(type, method); } }
private boolean hasSerializeSupport(JType type) { if (hasSerializeSupport.contains(type)) { return true; } else { return previousBundle != null && previousBundle.hasSerializeSupport(type); } }
private boolean isNeedsParamTypes(JClassType type, JMethod method) { if (hasMapping(needsParamTypes, type, method)) { return true; } else { return previousBundle != null && previousBundle.isNeedsParamTypes(type, method); } }
private boolean isNeedsProxySupport(JClassType type) { if (needsProxySupport.contains(type)) { return true; } else { return previousBundle != null && previousBundle.isNeedsProxySupport(type); } }
private boolean isNeedsSuperClass(JClassType typeAsClass) { if (needsSuperClass.contains(typeAsClass)) { return true; } else { return previousBundle != null && previousBundle.isNeedsSuperClass(typeAsClass); } }
private boolean isNeedsProperty(Property property) { if (needsProperty.contains(property)) { return true; } else { return previousBundle != null && previousBundle.isNeedsProperty(property); } }
private boolean hasSerializer(JType type) { if (serializers.containsKey(type)) { return true; } else { return previousBundle != null && previousBundle.hasSerializer(type); } }
private boolean isTypeVisited(JClassType type) { if (visitedTypes.contains(type)) { return true; } else { return previousBundle != null && previousBundle.isTypeVisited(type); } }
private boolean hasIdentifier(JClassType type, String identifier) { if (hasMapping(identifiers, type, identifier)) { return true; } else { return previousBundle != null && previousBundle.hasIdentifier(type, identifier); } }
private boolean needsGwtConstructor(JClassType type) { if (needsGwtConstructor.contains(type)) { return true; } else { return previousBundle != null && previousBundle.needsGwtConstructor(type); } }
private boolean isNeedsDelegateToWidget(Property property) { if (needsDelegateToWidget.contains(property)) { return true; } else { return previousBundle != null && previousBundle.isNeedsDelegateToWidget(property); } }
@Override public void visitClientRpc(TreeLogger logger, JClassType type, ConnectorBundle bundle) throws UnableToCompleteException { checkGenericType(logger, type); Set<? extends JClassType> hierarchy = type.getFlattenedSupertypeHierarchy(); for (JClassType subType : hierarchy) { JMethod[] methods = subType.getMethods(); for (JMethod method : methods) { checkReturnType(logger, method); bundle.setNeedsInvoker(type, method); bundle.setNeedsParamTypes(type, method); if (method.getAnnotation(NoLayout.class) != null) { bundle.setMethodAttribute(type, method, MethodAttribute.NO_LAYOUT); } JType[] parameterTypes = method.getParameterTypes(); for (JType paramType : parameterTypes) { bundle.setNeedsSerialize(paramType); } } } }