Package org.eclipse.jdt.internal.compiler.ast

Examples of org.eclipse.jdt.internal.compiler.ast.ImportReference


    super(requestor, problemFactory, options, reportLocalDeclarations,
        optimizeStringLiterals, useSourceJavadocParser);
  }

  protected ImportReference newImportReference(char[][] tokens, long[] sourcePositions, boolean onDemand, int mod) {
    ImportReference ref = this.importReference;
    ref.tokens = tokens;
    ref.sourcePositions = sourcePositions;
    if (onDemand) {
      ref.bits |= ASTNode.OnDemand;
    }
View Full Code Here


        }
      }
      continue;
    }
    if (node instanceof ImportReference){
      ImportReference importRef = (ImportReference) node;
      element = element.add(importRef, 0);
      this.lastCheckPoint = importRef.declarationSourceEnd + 1;
    }
  }
  if (this.currentToken == TokenNameRBRACE && !isIndirectlyInsideLambdaExpression()) {
View Full Code Here

    positions,
    0,
    length);

  /* build specific assist node on package statement */
  ImportReference reference = createAssistPackageReference(subset, positions);
  this.assistNode = reference;
  this.lastCheckPoint = reference.sourceEnd + 1;
  this.compilationUnit.currentPackage = reference;

  if (this.currentToken == TokenNameSEMICOLON){
View Full Code Here

    0,
    length);

  this.intPtr--; // we don't need the modifiers start
  this.intPtr--; // we don't need the package modifiers
  ImportReference reference = createAssistPackageReference(subset, positions);
  // consume annotations
  if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) {
    System.arraycopy(
      this.expressionStack,
      (this.expressionPtr -= length) + 1,
View Full Code Here

    positions,
    0,
    length);

  /* build specific assist node on import statement */
  ImportReference reference = createAssistImportReference(subset, positions, ClassFileConstants.AccStatic);
  this.assistNode = reference;
  this.lastCheckPoint = reference.sourceEnd + 1;

  pushOnAstStack(reference);

View Full Code Here

    positions,
    0,
    length);

  /* build specific assist node on import statement */
  ImportReference reference = createAssistImportReference(subset, positions, ClassFileConstants.AccDefault);
  this.assistNode = reference;
  this.lastCheckPoint = reference.sourceEnd + 1;

  pushOnAstStack(reference);

View Full Code Here

    positions,
    0,
    length);

  /* build specific assist node on import statement */
  ImportReference reference = createAssistImportReference(subset, positions, ClassFileConstants.AccStatic);
  reference.bits |= ASTNode.OnDemand;
  // star end position
  reference.trailingStarPosition = this.intStack[this.intPtr--];
  this.assistNode = reference;
  this.lastCheckPoint = reference.sourceEnd + 1;
View Full Code Here

    positions,
    0,
    length);

  /* build specific assist node on import statement */
  ImportReference reference = createAssistImportReference(subset, positions, ClassFileConstants.AccDefault);
  reference.bits |= ASTNode.OnDemand;
  // star end position
  reference.trailingStarPosition = this.intStack[this.intPtr--];
  this.assistNode = reference;
  this.lastCheckPoint = reference.sourceEnd + 1;
View Full Code Here

        this.lastCheckPoint = type.declarationSourceEnd + 1;
      }
      continue;
    }
    if (node instanceof ImportReference){
      ImportReference importRef = (ImportReference) node;
      element = element.add(importRef, 0);
      this.lastCheckPoint = importRef.declarationSourceEnd + 1;
    }
    if(this.statementRecoveryActivated) {
      if(node instanceof Block) {
View Full Code Here

  concatGenericsLists();
  this.intPtr--;  // pop the null dimension pushed in by consumeReferenceType, as we have no type between <>, getTypeReference won't kick in
}
protected void consumeImportDeclaration() {
  // SingleTypeImportDeclaration ::= SingleTypeImportDeclarationName ';'
  ImportReference impt = (ImportReference) this.astStack[this.astPtr];
  // flush annotations defined prior to import statements
  impt.declarationEnd = this.endStatementPosition;
  impt.declarationSourceEnd =
    flushCommentsDefinedPriorTo(impt.declarationSourceEnd);
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.ast.ImportReference

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.