Beispiel #1
0
 private boolean isNeedsDelegateToWidget(JClassType type) {
   if (needsDelegateToWidget.containsKey(type)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.isNeedsDelegateToWidget(type);
   }
 }
Beispiel #2
0
 private boolean isNeedsOnStateChangeHandler(JClassType type, JMethod method) {
   if (hasMapping(needsOnStateChange, type, method)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.isNeedsOnStateChangeHandler(type, method);
   }
 }
Beispiel #3
0
 private boolean isNeedsDelayedInfo(JClassType type, JMethod method) {
   if (hasMapping(needsDelayedInfo, type, method)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.isNeedsDelayedInfo(type, method);
   }
 }
Beispiel #4
0
 private boolean hasSerializeSupport(JType type) {
   if (hasSerializeSupport.contains(type)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.hasSerializeSupport(type);
   }
 }
Beispiel #5
0
 private boolean isNeedsParamTypes(JClassType type, JMethod method) {
   if (hasMapping(needsParamTypes, type, method)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.isNeedsParamTypes(type, method);
   }
 }
Beispiel #6
0
 private boolean isNeedsProxySupport(JClassType type) {
   if (needsProxySupport.contains(type)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.isNeedsProxySupport(type);
   }
 }
Beispiel #7
0
 private boolean isNeedsSuperClass(JClassType typeAsClass) {
   if (needsSuperClass.contains(typeAsClass)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.isNeedsSuperClass(typeAsClass);
   }
 }
Beispiel #8
0
 private boolean isNeedsProperty(Property property) {
   if (needsProperty.contains(property)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.isNeedsProperty(property);
   }
 }
Beispiel #9
0
 private boolean hasSerializer(JType type) {
   if (serializers.containsKey(type)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.hasSerializer(type);
   }
 }
Beispiel #10
0
 private boolean isTypeVisited(JClassType type) {
   if (visitedTypes.contains(type)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.isTypeVisited(type);
   }
 }
Beispiel #11
0
 private boolean hasIdentifier(JClassType type, String identifier) {
   if (hasMapping(identifiers, type, identifier)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.hasIdentifier(type, identifier);
   }
 }
Beispiel #12
0
 private boolean needsGwtConstructor(JClassType type) {
   if (needsGwtConstructor.contains(type)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.needsGwtConstructor(type);
   }
 }
Beispiel #13
0
 private boolean isNeedsDelegateToWidget(Property property) {
   if (needsDelegateToWidget.contains(property)) {
     return true;
   } else {
     return previousBundle != null && previousBundle.isNeedsDelegateToWidget(property);
   }
 }
Beispiel #14
0
  @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);
        }
      }
    }
  }