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

Examples of org.eclipse.jdt.internal.compiler.ast.AllocationExpression$ResolutionState


  if (isConstructor) {
    int start = -1;
    if(location instanceof AllocationExpression) {
      // omit the new keyword from the warning marker
      // https://bugs.eclipse.org/bugs/show_bug.cgi?id=300031
      AllocationExpression allocationExpression = (AllocationExpression) location;
      if (allocationExpression.enumConstant != null) {
        start = allocationExpression.enumConstant.sourceStart;
      }
      start = allocationExpression.type.sourceStart;
    }
View Full Code Here


      && (((ExplicitConstructorCall) statement).accessMode == ExplicitConstructorCall.ImplicitSuper);

  int sourceStart = statement.sourceStart;
  int sourceEnd = statement.sourceEnd;
  if (statement instanceof AllocationExpression) {
    AllocationExpression allocation = (AllocationExpression)statement;
    if (allocation.enumConstant != null) {
      sourceStart = allocation.enumConstant.sourceStart;
      sourceEnd = allocation.enumConstant.sourceEnd;
    }
  }
View Full Code Here

  if (!javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers)) return;
  int sourceStart = statement.sourceStart;
  int sourceEnd = statement.sourceEnd;
  if (statement instanceof AllocationExpression) {
    AllocationExpression allocation = (AllocationExpression)statement;
    if (allocation.enumConstant != null) {
      sourceStart = allocation.enumConstant.sourceStart;
      sourceEnd = allocation.enumConstant.sourceEnd;
    }
  }
View Full Code Here

  // ClassInstanceCreationExpression ::= 'new' ClassType '(' ArgumentListopt ')' ClassBodyopt

  // ClassBodyopt produces a null item on the astStak if it produces NO class body
  // An empty class body produces a 0 on the length stack.....

  AllocationExpression alloc;
  int length;
  if (((length = this.astLengthStack[this.astLengthPtr--]) == 1)
    && (this.astStack[this.astPtr] == null)) {
    //NO ClassBody
    this.astPtr--;
    if (isQualified) {
      alloc = new QualifiedAllocationExpression();
    } else {
      alloc = new AllocationExpression();
    }
    alloc.sourceEnd = this.endPosition; //the position has been stored explicitly

    if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) {
      this.expressionPtr -= length;
View Full Code Here

  qae.sourceStart = qae.enclosingInstance.sourceStart;
  consumeInvocationExpression();
}
protected void consumeClassInstanceCreationExpressionWithTypeArguments() {
  // ClassInstanceCreationExpression ::= 'new' TypeArguments ClassType '(' ArgumentListopt ')' ClassBodyopt
  AllocationExpression alloc;
  int length;
  if (((length = this.astLengthStack[this.astLengthPtr--]) == 1)
    && (this.astStack[this.astPtr] == null)) {
    //NO ClassBody
    this.astPtr--;
    alloc = new AllocationExpression();
    alloc.sourceEnd = this.endPosition; //the position has been stored explicitly

    if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) {
      this.expressionPtr -= length;
      System.arraycopy(
View Full Code Here

               0,
               length);
      }
      enumConstant.initialization = allocationExpression;
   } else {
      AllocationExpression allocationExpression = new AllocationExpression();
      allocationExpression.enumConstant = enumConstant;
      // fill arguments if needed
      int length;
      if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) {
         this.expressionPtr -= length;
View Full Code Here

  this.expressionStack[this.expressionPtr] = qae;
  qae.sourceStart = qae.enclosingInstance.sourceStart;
}
protected void consumeClassInstanceCreationExpressionWithTypeArguments() {
  // ClassInstanceCreationExpression ::= 'new' TypeArguments ClassType '(' ArgumentListopt ')' ClassBodyopt
  AllocationExpression alloc;
  int length;
  if (((length = this.astLengthStack[this.astLengthPtr]) == 1)
    && (this.astStack[this.astPtr] == null)) {

    if (this.indexOfAssistIdentifier() < 0) {
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.ast.AllocationExpression$ResolutionState

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.