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

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


*/
  String[] arguments = new String[] {new String(binding.readableName())};
  int end = nameRef.sourceEnd;
  int sourceStart = nameRef.sourceStart;
  if (nameRef instanceof QualifiedNameReference) {
    QualifiedNameReference ref = (QualifiedNameReference) nameRef;
    if (isRecoveredName(ref.tokens)) return;
    if (ref.indexOfFirstFieldBinding >= 1)
      end = (int) ref.sourcePositions[ref.indexOfFirstFieldBinding - 1];
  } else {
    SingleNameReference ref = (SingleNameReference) nameRef;
View Full Code Here


    ref.sourceEnd = (int) positions;
    return ref;
  }

  protected QualifiedNameReference newQualifiedNameReference(char[][] tokens, long[] positions, int sourceStart, int sourceEnd) {
    QualifiedNameReference ref = this.qualifiedNameReference;
    ref.tokens = tokens;
    ref.sourcePositions = positions;
    ref.sourceStart = sourceStart;
    ref.sourceEnd = sourceEnd;
    return ref;
View Full Code Here

    nodeSourceStart(field, fieldRef),
    nodeSourceEnd(field, fieldRef));
}
public void invalidField(NameReference nameRef, FieldBinding field) {
  if (nameRef instanceof QualifiedNameReference) {
    QualifiedNameReference ref = (QualifiedNameReference) nameRef;
    if (isRecoveredName(ref.tokens)) return;
  } else {
    SingleNameReference ref = (SingleNameReference) nameRef;
    if (isRecoveredName(ref.token)) return;
  }
View Full Code Here

      break;
  }

  int end = location.sourceEnd;
  if (location instanceof QualifiedNameReference) {
    QualifiedNameReference ref = (QualifiedNameReference) location;
    if (isRecoveredName(ref.tokens)) return;
    if (ref.indexOfFirstFieldBinding >= 1)
      end = (int) ref.sourcePositions[ref.indexOfFirstFieldBinding - 1];
  } else if (location instanceof ParameterizedQualifiedTypeReference) {
    // must be before instanceof ArrayQualifiedTypeReference
View Full Code Here

}
private int nodeSourceEnd(Binding field, ASTNode node, int index) {
  if (node instanceof ArrayTypeReference) {
    return ((ArrayTypeReference) node).originalSourceEnd;
  } else if (node instanceof QualifiedNameReference) {
    QualifiedNameReference ref = (QualifiedNameReference) node;
    if (ref.binding == field) {
      if (index == 0) {
        return (int) (ref.sourcePositions[ref.indexOfFirstFieldBinding-1]);
      } else {
        int length = ref.sourcePositions.length;
View Full Code Here

private int nodeSourceStart(Binding field, ASTNode node, int index) {
  if (node instanceof FieldReference) {
    FieldReference fieldReference = (FieldReference) node;
    return (int) (fieldReference.nameSourcePosition >> 32);
  } else   if (node instanceof QualifiedNameReference) {
    QualifiedNameReference ref = (QualifiedNameReference) node;
    if (ref.binding == field) {
      if (index == 0) {
        return (int) (ref.sourcePositions[ref.indexOfFirstFieldBinding-1] >> 32);
      } else {
        return (int) (ref.sourcePositions[index] >> 32);
View Full Code Here

*/
  String[] arguments = new String[] {new String(binding.readableName())};
  int end = nameRef.sourceEnd;
  int sourceStart = nameRef.sourceStart;
  if (nameRef instanceof QualifiedNameReference) {
    QualifiedNameReference ref = (QualifiedNameReference) nameRef;
    if (isRecoveredName(ref.tokens)) return;
    if (ref.indexOfFirstFieldBinding >= 1)
      end = (int) ref.sourcePositions[ref.indexOfFirstFieldBinding - 1];
  } else {
    SingleNameReference ref = (SingleNameReference) nameRef;
View Full Code Here

    this.identifierPtr -= length;
    System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
    long[] positions = new long[length];
    System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
    ref =
      new QualifiedNameReference(tokens,
        positions,
        (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
        (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  }
  return ref;
View Full Code Here

  char[][] tokens = new char[length][];
  this.identifierPtr -= length;
  System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
  long[] positions = new long[length];
  System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
  ref = new QualifiedNameReference(
      tokens,
      positions,
      (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
      (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  ref.bits &= ~ASTNode.RestrictiveFlagMASK;
View Full Code Here

TOP

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

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.