Package com.gwtent.reflection.client

Examples of com.gwtent.reflection.client.Reflectable


  }

  protected void createSource(SourceWriter source, JClassType classType) {
    String className = getSimpleUnitName(classType);
    Reflectable reflectable = GenUtils
        .getClassTypeAnnotationWithMataAnnotation(
            getReflectionType(classType), Reflectable.class);
    if (reflectable == null)
      reflectable = ReflectableHelper.getFullSettings(typeOracle);
View Full Code Here


    addClassIfNotExists(typeOracle.getType(Deprecated.class.getCanonicalName()), ReflectableHelper.getDefaultSettings(typeOracle));
    //typeOracle.getType("com.gwtent.client.test.reflection.TestReflectionGenerics.TestReflection1");
   
    //=====GWT0.7
    for (JClassType classType : typeOracle.getTypes()) {
      Reflectable reflectable = GenUtils.getClassTypeAnnotationWithMataAnnotation(classType, Reflectable.class);
      if (reflectable != null){
        processClass(classType, reflectable);
       
        if (reflectable.assignableClasses()){
          for (JClassType type : classType.getSubtypes()){
            processClass(type, reflectable);
          }
        }
      }
View Full Code Here

   * @param classType
   * @param defaultSetting
   * @return
   */
  private Reflectable getNearestSetting(JClassType classType, Reflectable defaultSetting){
    Reflectable result = GenUtils.getClassTypeAnnotationWithMataAnnotation(classType, Reflectable.class);
    if (result != null)
      return result;
    else
      return defaultSetting;
  }
View Full Code Here

    else
      return defaultSetting;
  }
 
  private void processRelationClass(JClassType classType, Reflectable reflectable){
    Reflectable nearest = getNearestSetting(classType, reflectable);
    processRelationClasses(classType, nearest);
    processAnnotationClasses(classType, nearest);
    addClassIfNotExists(classType, nearest);
  }
View Full Code Here

TOP

Related Classes of com.gwtent.reflection.client.Reflectable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.