Examples of ReferenceExpression


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

  consumeReferenceExpression(referenceExpression);
}
protected void consumeReferenceExpressionPrimaryForm() {
  // ReferenceExpression ::= Primary '::' NonWildTypeArgumentsopt Identifier

  ReferenceExpression referenceExpression = newReferenceExpression();
  TypeReference [] typeArguments = null;
  char [] selector;
  int sourceEnd;

  sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  selector = this.identifierStack[this.identifierPtr--];
  this.identifierLengthPtr--;

  int length = this.genericsLengthStack[this.genericsLengthPtr--];
  if (length > 0) {
    this.genericsPtr -= length;
    System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
    this.intPtr--;  // pop type arguments source start.
  }
 
  Expression primary = this.expressionStack[this.expressionPtr--];
  this.expressionLengthPtr--;
  referenceExpression.initialize(this.compilationUnit.compilationResult, primary, typeArguments, selector, sourceEnd);
  consumeReferenceExpression(referenceExpression);
}
View Full Code Here

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

  consumeReferenceExpression(referenceExpression);
}
protected void consumeReferenceExpressionSuperForm() {
  // ReferenceExpression ::= 'super' '::' NonWildTypeArgumentsopt Identifier

  ReferenceExpression referenceExpression = newReferenceExpression();
  TypeReference [] typeArguments = null;
  char [] selector;
  int sourceEnd;

  sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  selector = this.identifierStack[this.identifierPtr--];
  this.identifierLengthPtr--;

  int length = this.genericsLengthStack[this.genericsLengthPtr--];
  if (length > 0) {
    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.ReferenceExpression

}
protected void consumeReferenceExpressionGenericTypeForm() {

  // ReferenceExpression ::= Name BeginTypeArguments ReferenceExpressionTypeArgumentsAndTrunk '::' NonWildTypeArgumentsopt IdentifierOrNew
 
  ReferenceExpression referenceExpression = newReferenceExpression();
  TypeReference type;
  TypeReference [] typeArguments = null;
  char [] selector;
  int sourceEnd;

  sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  selector = this.identifierStack[this.identifierPtr--];
  this.identifierLengthPtr--;

  int length = this.genericsLengthStack[this.genericsLengthPtr--];
  if (length > 0) {
    this.genericsPtr -= length;
    System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
    this.intPtr--;  // pop type arguments source start.
  }
 
  int typeSourceEnd = this.intStack[this.intPtr--];
  boolean qualified = this.intStack[this.intPtr--] != 0;
  int dims = this.intStack[this.intPtr--];
  if (qualified) {
    Annotation [][] annotationsOnDimensions = dims == 0 ? null : getAnnotationsOnDimensions(dims);
    TypeReference rightSide = getTypeReference(0);
    type = computeQualifiedGenericsFromRightSide(rightSide, dims, annotationsOnDimensions);
  } else {   
    pushOnGenericsIdentifiersLengthStack(this.identifierLengthStack[this.identifierLengthPtr]);
    type = getTypeReference(dims);
  }
  this.intPtr--; // pop '<' position
  type.sourceEnd = typeSourceEnd;
 
  referenceExpression.initialize(this.compilationUnit.compilationResult, type, typeArguments, selector, sourceEnd);

  consumeReferenceExpression(referenceExpression);
}
View Full Code Here

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

public ReferenceExpression newReferenceExpression() {
  char[] selector = this.identifierStack[this.identifierPtr];
  if (selector != assistIdentifier()){
    return super.newReferenceExpression();
  }
  ReferenceExpression referenceExpression = new SelectionOnReferenceExpressionName();
  this.assistNode = referenceExpression;
  return referenceExpression;
}
View Full Code Here

Examples of org.jpox.store.mapped.expression.ReferenceExpression

        return expr;
    }

    public ScalarExpression newScalarExpression(QueryExpression qs, LogicSetExpression te)
    {
        ScalarExpression expr = new ReferenceExpression(qs, this, te);
        return expr;
    }
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.