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