示例#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);
        }
      }
    }
  }