Examples of resolve()


Examples of org.eclipse.emf.common.util.URI.resolve()

    {
      // TODO... there's some default resolving we'll need to do here
      // see XSDSchemaDirective
      URI baseLocationURI = createURI(definition.getDocumentBaseURI());
      URI locationURI = URI.createURI(schemaLocation);
      return locationURI.resolve(baseLocationURI).toString();
    }
    return result;
  }

  //TODO... push down to EMF
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve()

    if (originalMethod.declaringClass instanceof SourceTypeBinding) {
      SourceTypeBinding sourceType = (SourceTypeBinding) originalMethod.declaringClass;
      if (sourceType.scope != null) {
        AbstractMethodDeclaration methodDeclaration = originalMethod.sourceMethod();
        if (methodDeclaration != null && methodDeclaration.isAnnotationMethod()) {
          methodDeclaration.resolve(sourceType.scope);
        }
      }
    }
    originalMethod.tagBits |= TagBits.DefaultValueResolved;
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve()

                // verify inherited methods
                if (unit.scope != null)
                    unit.scope
                            .verifyMethods(lookupEnvironment.methodVerifier());
                // type checking
                unit.resolve();
                // flow analysis
                unit.analyseCode();

                requestor.acceptResult(unit.compilationResult.tagAsAccepted());
            }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall.resolve()

    this.restartRecovery  = true// force to restart in recovery mode
    this.lastIgnoredToken = -1;
  } else {
    pushOnExpressionStack(new Expression(){
      public TypeBinding resolveType(BlockScope scope) {
        constructorCall.resolve(scope);
        return null;
      }
      public StringBuffer printExpression(int indent, StringBuffer output) {
        return output;
      }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.resolve()

          FieldDeclaration fieldDecl = typeDecl.declarationOf(originalField);
          MethodScope initScope = originalField.isStatic() ? typeDecl.staticInitializerScope : typeDecl.initializerScope;
          boolean old = initScope.insideTypeAnnotation;
          try {
            initScope.insideTypeAnnotation = false;
            fieldDecl.resolve(initScope); //side effect on binding
          } finally {
            initScope.insideTypeAnnotation = old;
          }
          fieldConstant = originalField.constant == null ? Constant.NotAConstant : originalField.constant;
        } else {
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.file.FileRepository.resolve()

    }

    String hashid = "";
    try {
      Repository repository = new FileRepository(gitDir);
      ObjectId objectId = repository
          .resolve(org.eclipse.jgit.lib.Constants.HEAD);
      hashid = objectId.getName().toString();
      repository.close();
    } catch (IOException io) {
      io.printStackTrace();
View Full Code Here

Examples of org.eclipse.jgit.lib.ObjectReader.resolve()

      ObjectReader or = repo.newObjectReader();

      List<Step> steps = loadSteps();
      for (Step step : steps) {
        popSteps(1);
        Collection<ObjectId> ids = or.resolve(step.commit);
        if (ids.size() != 1)
          throw new JGitInternalException(
              "Could not resolve uniquely the abbreviated object ID");
        RevCommit commitToPick = walk
            .parseCommit(ids.iterator().next());
View Full Code Here

Examples of org.eclipse.jgit.lib.Repository.resolve()

     */
    public static boolean addCommitProperties(Transformer transformer, File baseDir, int abbrevLen, Log log) {
        try {
            RepositoryBuilder builder = new RepositoryBuilder();
            Repository repository = builder.findGitDir(baseDir).readEnvironment().build();
            ObjectId objectId = repository.resolve(Constants.HEAD);
            if (objectId != null) {
                transformer.setParameter("repository.commit", objectId.getName());
                transformer.setParameter("repository.commit.short", objectId.abbreviate(abbrevLen).name());
                return true;
            } else {
View Full Code Here

Examples of org.eclipse.jgit.storage.file.FileRepository.resolve()

                "Invalid repository directory provided: " + repoDirectory.getAbsolutePath());
        // open repo, jgit has some problems with not canonical paths
        File canonicalRepo = repoDirectory.getCanonicalFile();
        FileRepository repo = new FileRepositoryBuilder().findGitDir(canonicalRepo).build();
        // extract HEAD revision
        ObjectId revisionObject = repo.resolve(Constants.HEAD);
        if (null == revisionObject) throw new IOException("Cannot read current revision from repository: " + repo);
        String revision = revisionObject.name();
        // extract current branch
        String branch = readCurrentBranch(repo, revision);
        // extract current tag
View Full Code Here

Examples of org.eclipse.jgit.util.FS.resolve()

      String path = repository.getConfig().get(CoreConfig.KEY)
          .getExcludesFile();
      if (path != null) {
        File excludesfile;
        if (path.startsWith("~/"))
          excludesfile = fs.resolve(fs.userHome(), path.substring(2));
        else
          excludesfile = fs.resolve(null, path);
        loadRulesFromFile(r, excludesfile);
      }
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.