Package org.eclipse.imp.pdb.facts

Examples of org.eclipse.imp.pdb.facts.ISourceLocation


    if (binding == null) {
        return makeBinding("unresolved", null, null);
      }
    if (EclipseJavaCompiler.cache.containsKey(binding.getKey()))
      return EclipseJavaCompiler.cache.get(binding.getKey());
    ISourceLocation result = makeBinding("java+package", null, binding.getName().replaceAll("\\.", "/"));
    EclipseJavaCompiler.cache.put(binding.getKey(), result);
    return result;
  }
View Full Code Here


        qualifiedName += "$anonymous" + anonCounter;
        resolvedAnonymousClasses.put(key, qualifiedName);
      }
      scheme = "java+anonymousClass";
    }
    ISourceLocation result = makeBinding(scheme, null, qualifiedName.replaceAll("\\.", "/"));
    EclipseJavaCompiler.cache.put(binding.getKey(), result);
    return result;
  }
View Full Code Here

        scheme = "java+parameter";
      } else if (binding.isField()) {
        scheme = "java+field";
      }
   
    ISourceLocation result = makeBinding(scheme, null, qualifiedName.concat(binding.getName()));
    EclipseJavaCompiler.cache.put(binding.getKey(), result);
    return result;
  }
View Full Code Here

    }
    return null;
  }
 
  public String getPath() {
    ISourceLocation loc = getLocation();
    if (loc != null) {
      return loc.getURI().getPath();
    }
    return null;
  }
View Full Code Here

    }
    return null;
  }
 
  public int getBeginColumn() {
    ISourceLocation loc = getLocation();
    if (loc != null) {
      return loc.getBeginColumn();
    }
    return 0;
  }
View Full Code Here

    }
    return 0;
  }
 
  public int getEndColumn() {
    ISourceLocation loc = getLocation();
    if (loc != null) {
      return loc.getEndColumn();
    }
    return 0;
  }
View Full Code Here

    }
    return 0;
  }
 
  public int getBeginLine() {
    ISourceLocation loc = getLocation();
    if (loc != null) {
      return loc.getBeginLine();
    }
    return 1;
  }
View Full Code Here

    }
    return 1;
  }
 
  public int getEndLine() {
    ISourceLocation loc = getLocation();
    if (loc != null) {
      return loc.getEndLine();
    }
    return 1;
  }
View Full Code Here

    }
    return 1;
  }
 
  public int getOffset() {
    ISourceLocation loc = getLocation();
    if (loc != null) {
      return loc.getOffset();
    }
    return 0;
  }
View Full Code Here

    this.reg = function.getEval().getResolverRegistry();
  }
 
  public URI resolve(URI uri) {
    args[0] = function.getEval().getValueFactory().sourceLocation(uri);
    ISourceLocation result = (ISourceLocation) function.call(types, args, null);
    return result.getURI();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.imp.pdb.facts.ISourceLocation

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.