Package com.google.gwt.core.ext.typeinfo

Examples of com.google.gwt.core.ext.typeinfo.TypeOracle.findType()


        .getQualifiedSourceName().replace('.', '_')
        + "_jsonbundle.txt", "text/plain", data.toString().getBytes(),
        true);

    TypeOracle typeOracle = context.getGeneratorContext().getTypeOracle();
    JClassType stringType = typeOracle.findType(String.class.getName());
    assert stringType != null;

    externalSVGUrlIdent = fields.define(stringType, "externalSVGUrl",
        urlExpression, true, true);
View Full Code Here


    assert stringType != null;

    externalSVGUrlIdent = fields.define(stringType, "externalSVGUrl",
        urlExpression, true, true);

    JClassType textResourceType = typeOracle.findType(SVGResource.class
        .getName());
    assert textResourceType != null;
    JType textResourceArrayType = typeOracle.getArrayType(textResourceType);

    externalSVGCacheIdent = fields.define(textResourceArrayType,
View Full Code Here

    }

    // Find all of the types that we care about in the type system
    TypeOracle typeOracle = context.getGeneratorContext().getTypeOracle();

    cssResourceType = typeOracle.findType(CssResource.class.getName());
    assert cssResourceType != null;

    elementType = typeOracle.findType(Element.class.getName());
    assert elementType != null;
View Full Code Here

    TypeOracle typeOracle = context.getGeneratorContext().getTypeOracle();

    cssResourceType = typeOracle.findType(CssResource.class.getName());
    assert cssResourceType != null;

    elementType = typeOracle.findType(Element.class.getName());
    assert elementType != null;

    stringType = typeOracle.findType(String.class.getName());
    assert stringType != null;
View Full Code Here

    assert cssResourceType != null;

    elementType = typeOracle.findType(Element.class.getName());
    assert elementType != null;

    stringType = typeOracle.findType(String.class.getName());
    assert stringType != null;

    replacementsByClassAndMethod = new IdentityHashMap<JClassType, Map<JMethod, String>>();
    replacementsForSharedMethods = new IdentityHashMap<JMethod, String>();
    stylesheetMap = new IdentityHashMap<JMethod, CssStylesheet>();
View Full Code Here

                ginjectorInspector);
        proxyOutputterFactory = new ProxyOutputterFactory(oracle, logger, classCollection,
                ginjectorInspector, presenterInspector);

        // Find the requested class
        JClassType proxyInterface = oracle.findType(requestedClass);

        if (proxyInterface == null) {
            logger.log(TreeLogger.ERROR, "Unable to find metadata for type '"
                    + requestedClass + "'", null);
View Full Code Here

  private static JUnitFatalLaunchException checkTestClassInCurrentModule(TreeLogger logger,
      CompilationState compilationState, String moduleName, TestCase testCase) {
    TypeOracle typeOracle = compilationState.getTypeOracle();
    String typeName = testCase.getClass().getName();
    typeName = typeName.replace('$', '.');
    JClassType foundType = typeOracle.findType(typeName);
    if (foundType != null) {
      return null;
    }
    Map<String, CompilationUnit> unitMap = compilationState.getCompilationUnitMap();
    CompilationUnit unit = unitMap.get(typeName);
View Full Code Here

  public String generate(TreeLogger logger, GeneratorContext context,
      String typeName) throws UnableToCompleteException {
    TypeOracle typeOracle = context.getTypeOracle();
    assert (typeOracle != null);

    JClassType validatorType = typeOracle.findType(typeName);
    if (validatorType == null) {
      logger.log(TreeLogger.ERROR, "Unable to find metadata for type '"
          + typeName + "'", null);
      throw new UnableToCompleteException();
    }
View Full Code Here

      String typeName) throws UnableToCompleteException {
    JClassType validatorType = context.getTypeOracle().findType(typeName);
    TypeOracle typeOracle = context.getTypeOracle();
    assert (typeOracle != null);

    JClassType validator = typeOracle.findType(typeName);
    if (validator == null) {
      logger.log(TreeLogger.ERROR, "Unable to find metadata for type '"
          + typeName + "'", null);
      throw new UnableToCompleteException();
    }
View Full Code Here

    TypeOracle typeOracle = compilationState.getTypeOracle();

    // Sanity check the seed types and don't even start it they're missing.
    boolean seedTypesMissing = false;
    if (typeOracle.findType("java.lang.Object") == null) {
      Util.logMissingTypeErrorWithHints(logger, "java.lang.Object");
      seedTypesMissing = true;
    } else {
      branch = logger.branch(TreeLogger.TRACE, "Finding entry point classes",
          null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.