Package com.google.gwt.dev.jdt

Examples of com.google.gwt.dev.jdt.TypeRefVisitor


    return GENERATED_CLASSNAME_PATTERN.matcher(className).matches();
  }

  private static Set<String> computeFileNameRefs(CompilationUnitDeclaration cud) {
    final Set<String> result = new HashSet<String>();
    cud.traverse(new TypeRefVisitor(cud) {
      @Override
      protected void onBinaryTypeRef(BinaryTypeBinding referencedType,
          CompilationUnitDeclaration unitOfReferrer, Expression expression) {
        String fileName = String.valueOf(referencedType.getFileName());
        if (fileName.endsWith(".java")) {
View Full Code Here


    }
  }

  private static Set<String> computeFileNameRefs(CompilationUnitDeclaration cud) {
    final Set<String> result = new HashSet<String>();
    cud.traverse(new TypeRefVisitor() {
      @Override
      protected void onTypeRef(SourceTypeBinding referencedType,
          CompilationUnitDeclaration unitOfReferrer) {
        // Map the referenced type to the target compilation unit file.
        result.add(String.valueOf(referencedType.getFileName()));
View Full Code Here

    }
  }

  private static Set<String> computeFileNameRefs(CompilationUnitDeclaration cud) {
    final Set<String> result = new HashSet<String>();
    cud.traverse(new TypeRefVisitor() {
      @Override
      protected void onTypeRef(SourceTypeBinding referencedType,
          CompilationUnitDeclaration unitOfReferrer) {
        // Map the referenced type to the target compilation unit file.
        result.add(String.valueOf(referencedType.getFileName()));
View Full Code Here

  private static Set<String> computeFileNameRefs(
      CompilationUnitDeclaration cud,
      final Map<String, String> binaryTypeToSourceFileMap) {
    final Set<String> result = new HashSet<String>();
    cud.traverse(new TypeRefVisitor(cud) {
      @Override
      protected void onBinaryTypeRef(BinaryTypeBinding referencedType,
          CompilationUnitDeclaration unitOfReferrer, Expression expression) {
        String fileName = binaryTypeToSourceFileMap.get(String.valueOf(referencedType.getFileName()));
        if (fileName != null) {
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.jdt.TypeRefVisitor

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.