Examples of SuperReference


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.SuperReference

 

  private Expression fixReceiver(Expression expression, BlockScope scope) {
    if (depthCounter!=0) return expression; // Don't mess with super calls down in nested local type declarations (pr90143)
    if (expression instanceof SuperReference) {
      SuperReference superRef = (SuperReference) expression;
      if (superType == null) {
        ISourceLocation location =
          new EclipseSourceLocation(scope.problemReporter().referenceContext.compilationResult(),
                    expression.sourceStart, expression.sourceEnd);
       
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.SuperReference

 

  private Expression fixReceiver(Expression expression, BlockScope scope) {
    if (depthCounter!=0) return expression; // Don't mess with super calls down in nested local type declarations (pr90143)
    if (expression instanceof SuperReference) {
      SuperReference superRef = (SuperReference) expression;
      if (superType == null) {
        ISourceLocation location =
          new EclipseSourceLocation(scope.problemReporter().referenceContext.compilationResult(),
                    expression.sourceStart, expression.sourceEnd);
       
View Full Code Here

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

      this.identifierPositionStack[this.identifierPtr--]);
  this.identifierLengthPtr--;
  if (isSuperAccess) {
    //considers the fieldReference beginning at the 'super' ....
    fr.sourceStart = this.intStack[this.intPtr--];
    fr.receiver = new SuperReference(fr.sourceStart, this.endPosition);
    pushOnExpressionStack(fr);
  } else {
    //optimize push/pop
    fr.receiver = this.expressionStack[this.expressionPtr];
    //field reference begins at the receiver
View Full Code Here

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

  m.sourceStart = this.intStack[this.intPtr--]; // start position of the super keyword
  m.sourceEnd = this.rParenPos;
  m.nameSourcePosition = this.identifierPositionStack[this.identifierPtr];
  m.selector = this.identifierStack[this.identifierPtr--];
  this.identifierLengthPtr--;
  m.receiver = new SuperReference(m.sourceStart, this.endPosition);
  pushOnExpressionStack(m);
  consumeInvocationExpression();
}
View Full Code Here

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

  int length = this.genericsLengthStack[this.genericsLengthPtr--];
  this.genericsPtr -= length;
  System.arraycopy(this.genericsStack, this.genericsPtr + 1, m.typeArguments = new TypeReference[length], 0, length);
  m.sourceStart = this.intStack[this.intPtr--]; // start position of the super keyword

  m.receiver = new SuperReference(m.sourceStart, this.endPosition);
  pushOnExpressionStack(m);
  consumeInvocationExpression();
}
View Full Code Here

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

    this.genericsPtr -= length;
    System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
    this.intPtr--;  // pop type arguments source start.
  }
 
  SuperReference superReference = new SuperReference(this.intStack[this.intPtr--], this.endPosition);
  referenceExpression.initialize(this.compilationUnit.compilationResult, superReference, typeArguments, selector, sourceEnd);
  consumeReferenceExpression(referenceExpression);
}
View Full Code Here

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

      this.identifierStack[this.identifierPtr],
      this.identifierPositionStack[this.identifierPtr--]);
  this.identifierLengthPtr--;
  if (isSuperAccess) { //considerates the fieldReferenceerence beginning at the 'super' ....
    fieldReference.sourceStart = this.intStack[this.intPtr--];
    fieldReference.receiver = new SuperReference(fieldReference.sourceStart, this.endPosition);
    pushOnExpressionStack(fieldReference);
  } else { //optimize push/pop
    if ((fieldReference.receiver = this.expressionStack[this.expressionPtr]).isThis()) { //fieldReferenceerence begins at the this
      fieldReference.sourceStart = fieldReference.receiver.sourceStart;
    }
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.