Package com.google.gwt.core.ext.linker.impl

Examples of com.google.gwt.core.ext.linker.impl.StandardSymbolData


      int queryId = program.getQueryId(x);
      JsonObject castableTypeMapObj = program.getCastableTypeMap(x);
      CastableTypeMap castableTypeMap = new StandardCastableTypeMap(
          castableTypeMapObj.toString());

      StandardSymbolData symbolData = StandardSymbolData.forClass(x.getName(),
          x.getSourceInfo().getFileName(), x.getSourceInfo().getStartLine(),
          queryId, castableTypeMap);
      assert !symbolTable.containsKey(symbolData);
      symbolTable.put(symbolData, jsName);
    }
View Full Code Here


        methodSig = StringInterner.get().intern(sb.toString());
      } else {
        methodSig = null;
      }

      StandardSymbolData symbolData = StandardSymbolData.forMember(
          x.getEnclosingType().getName(), x.getName(), methodSig,
          makeUriString(x), x.getSourceInfo().getStartLine());
      assert !symbolTable.containsKey(symbolData) : "Duplicate symbol "
          + "recorded " + jsName.getIdent() + " for " + x.getName()
          + " and key " + symbolData.getJsniIdent();
      symbolTable.put(symbolData, jsName);
    }
View Full Code Here

      Map<StandardSymbolData, JsName> symbolTable) {

    SymbolData[] result = new SymbolData[symbolTable.size()];
    int i = 0;
    for (Map.Entry<StandardSymbolData, JsName> entry : symbolTable.entrySet()) {
      StandardSymbolData symbolData = entry.getKey();
      symbolData.setSymbolName(entry.getValue().getShortIdent());
      result[i++] = symbolData;
    }
    return result;
  }
View Full Code Here

      }
      sb.append('}');
      CastableTypeMap castableTypeMap = new StandardCastableTypeMap(sb.toString());

      String typeId = getRuntimeTypeReference(x).toSource();
      StandardSymbolData symbolData =
          StandardSymbolData.forClass(x.getName(), x.getSourceInfo().getFileName(),
              x.getSourceInfo().getStartLine(), castableTypeMap, typeId);
      assert !symbolTable.containsKey(symbolData);
      symbolTable.put(symbolData, jsName);
    }
View Full Code Here

        JMethod method = ((JMethod) x);
        methodSig = StringInterner.get().intern(
            method.getSignature().substring(method.getName().length()));
      }

      StandardSymbolData symbolData =
          StandardSymbolData.forMember(x.getEnclosingType().getName(), x.getName(), methodSig,
              makeUriString(x), x.getSourceInfo().getStartLine());
      assert !symbolTable.containsKey(symbolData) : "Duplicate symbol " + "recorded "
          + jsName.getIdent() + " for " + x.getName() + " and key " + symbolData.getJsniIdent();
      symbolTable.put(symbolData, jsName);
    }
View Full Code Here

      Map<StandardSymbolData, JsName> symbolTable) {

    SymbolData[] result = new SymbolData[symbolTable.size()];
    int i = 0;
    for (Map.Entry<StandardSymbolData, JsName> entry : symbolTable.entrySet()) {
      StandardSymbolData symbolData = entry.getKey();
      symbolData.setSymbolName(entry.getValue().getShortIdent());
      result[i++] = symbolData;
    }
    return result;
  }
View Full Code Here

      // Or we should just consider serializing it as an ArrayList if
      // it is that much trouble to determine the true size.
      List<SymbolData> result = new ArrayList<SymbolData>();

      for (Map.Entry<StandardSymbolData, JsName> entry : symbolTable.entrySet()) {
        StandardSymbolData symbolData = entry.getKey();
        symbolData.setSymbolName(entry.getValue().getShortIdent());
        Integer fragNum = nameToFragment.get(entry.getValue());
        if (fragNum != null) {
          symbolData.setFragmentNumber(fragNum);
        }
        if (nameUsed.contains(entry.getValue().getIdent()) || entry.getKey().isClass()) {
          result.add(symbolData);
        }
      }
View Full Code Here

      Map<StandardSymbolData, JsName> symbolTable) {

    SymbolData[] result = new SymbolData[symbolTable.size()];
    int i = 0;
    for (Map.Entry<StandardSymbolData, JsName> entry : symbolTable.entrySet()) {
      StandardSymbolData symbolData = entry.getKey();
      symbolData.setSymbolName(entry.getValue().getShortIdent());
      result[i++] = symbolData;
    }
    return result;
  }
View Full Code Here

      scopeStack.push(scope);
    }

    private void recordSymbol(JReferenceType x, JsName jsName) {
      int typeId = program.getTypeId(x);
      StandardSymbolData symbolData = StandardSymbolData.forClass(x.getName(),
          x.getSourceInfo().getFileName(), x.getSourceInfo().getStartLine(),
          typeId);
      assert !symbolTable.containsKey(symbolData);
      symbolTable.put(symbolData, jsName);
    }
View Full Code Here

        methodSig = sb.toString();
      } else {
        methodSig = null;
      }

      StandardSymbolData symbolData = StandardSymbolData.forMember(
          x.getEnclosingType().getName(), x.getName(), methodSig,
          makeUriString(x), x.getSourceInfo().getStartLine());
      assert !symbolTable.containsKey(symbolData) : "Duplicate symbol "
          + "recorded " + jsName.getIdent() + " for " + x.getName()
          + " and key " + symbolData.getJsniIdent();
      symbolTable.put(symbolData, jsName);
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.core.ext.linker.impl.StandardSymbolData

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.