Examples of ImportReference


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

    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

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

    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

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

    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

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

    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

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

    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

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

    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

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

        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

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

  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

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

protected void consumePackageDeclaration() {
  // PackageDeclaration ::= 'package' Name ';'
  /* build an ImportRef build from the last name
  stored in the identifier stack. */

  ImportReference impt = this.compilationUnit.currentPackage;
  this.compilationUnit.javadoc = this.javadoc;
  this.javadoc = null;
  // flush comments defined prior to import statements
  impt.declarationEnd = this.endStatementPosition;
  impt.declarationSourceEnd = flushCommentsDefinedPriorTo(impt.declarationSourceEnd);
View Full Code Here

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

protected void consumePackageDeclarationName() {
  // PackageDeclarationName ::= PackageComment 'package' Name RejectTypeAnnotations
  /* build an ImportRef build from the last name
  stored in the identifier stack. */

  ImportReference impt;
  int length;
  char[][] tokens =
    new char[length = this.identifierLengthStack[this.identifierLengthPtr--]][];
  this.identifierPtr -= length;
  long[] positions = new long[length];
  System.arraycopy(this.identifierStack, ++this.identifierPtr, tokens, 0, length);
  System.arraycopy(
    this.identifierPositionStack,
    this.identifierPtr--,
    positions,
    0,
    length);

  impt = new ImportReference(tokens, positions, false, ClassFileConstants.AccDefault);
  this.compilationUnit.currentPackage = impt;

  if (this.currentToken == TokenNameSEMICOLON){
    impt.declarationSourceEnd = this.scanner.currentPosition - 1;
  } else {
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.