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

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


            nameStarted = true;
          }
          break;
        case Signature.C_STAR:
          this.namePos++;
          Wildcard result = new Wildcard(Wildcard.UNBOUND);
          result.sourceStart = start;
          result.sourceEnd = end;
          return result;
        case Signature.C_EXTENDS:
          this.namePos++;
          result = new Wildcard(Wildcard.EXTENDS);
          result.bound = decodeType(typeSignature, length, start, end);
          result.sourceStart = start;
          result.sourceEnd = end;
          return result;
        case Signature.C_SUPER:
          this.namePos++;
          result = new Wildcard(Wildcard.SUPER);
          result.bound = decodeType(typeSignature, length, start, end);
          result.sourceStart = start;
          result.sourceEnd = end;
          return result;
        case Signature.C_ARRAY :
View Full Code Here


                  if (typeName[this.namePos+ahead] != TypeConstants.WILDCARD_SUPER[ahead+1]) {
                    break checkSuper;
                  }
                }
                this.namePos += max;
                Wildcard result = new Wildcard(Wildcard.SUPER);
                result.bound = decodeType(typeName, length, start, end, includeGenericsAnyway);
                result.sourceStart = start;
                result.sourceEnd = end;
                return result;
              }
              break;
            case 'e' :
              checkExtends: {
                int max = TypeConstants.WILDCARD_EXTENDS.length-1;
                for (int ahead = 1; ahead < max; ahead++) {
                  if (typeName[this.namePos+ahead] != TypeConstants.WILDCARD_EXTENDS[ahead+1]) {
                    break checkExtends;
                  }
                }
                this.namePos += max;
                Wildcard result = new Wildcard(Wildcard.EXTENDS);
                result.bound = decodeType(typeName, length, start, end, includeGenericsAnyway);
                result.sourceStart = start;
                result.sourceEnd = end;
                return result;
              }
              break;
          }
          Wildcard result = new Wildcard(Wildcard.UNBOUND);
          result.sourceStart = start;
          result.sourceEnd = end;
          return result;
        case '[' :
          if (dim == 0 && nameFragmentEnd < 0) nameFragmentEnd = this.namePos-1;
View Full Code Here

protected void consumeVariableInitializers() {
  // VariableInitializers ::= VariableInitializers ',' VariableInitializer
  concatExpressionLists();
}
protected void consumeWildcard() {
  final Wildcard wildcard = new Wildcard(Wildcard.UNBOUND);
  wildcard.sourceEnd = this.intStack[this.intPtr--];
  wildcard.sourceStart = this.intStack[this.intPtr--];
  annotateTypeReference(wildcard);
  pushOnGenericsStack(wildcard);
}
View Full Code Here

  wildcard.sourceStart = this.intStack[this.intPtr--];
  annotateTypeReference(wildcard);
  pushOnGenericsStack(wildcard);
}
protected void consumeWildcard1() {
  final Wildcard wildcard = new Wildcard(Wildcard.UNBOUND);
  wildcard.sourceEnd = this.intStack[this.intPtr--];
  wildcard.sourceStart = this.intStack[this.intPtr--];
  annotateTypeReference(wildcard);
  pushOnGenericsStack(wildcard);
}
View Full Code Here

protected void consumeWildcard1WithBounds() {
  // Nothing to do
  // The wildcard is created by the consumeWildcardBounds1Extends or by consumeWildcardBounds1Super
}
protected void consumeWildcard2() {
  final Wildcard wildcard = new Wildcard(Wildcard.UNBOUND);
  wildcard.sourceEnd = this.intStack[this.intPtr--];
  wildcard.sourceStart = this.intStack[this.intPtr--];
  annotateTypeReference(wildcard);
  pushOnGenericsStack(wildcard);
}
View Full Code Here

protected void consumeWildcard2WithBounds() {
  // Nothing to do
  // The wildcard is created by the consumeWildcardBounds2Extends or by consumeWildcardBounds2Super
}
protected void consumeWildcard3() {
  final Wildcard wildcard = new Wildcard(Wildcard.UNBOUND);
  wildcard.sourceEnd = this.intStack[this.intPtr--];
  wildcard.sourceStart = this.intStack[this.intPtr--];
  annotateTypeReference(wildcard);
  pushOnGenericsStack(wildcard);
}
View Full Code Here

protected void consumeWildcard3WithBounds() {
  // Nothing to do
  // The wildcard is created by the consumeWildcardBounds3Extends or by consumeWildcardBounds3Super
}
protected void consumeWildcardBounds1Extends() {
  Wildcard wildcard = new Wildcard(Wildcard.EXTENDS);
  wildcard.bound = (TypeReference) this.genericsStack[this.genericsPtr];
  wildcard.sourceEnd = wildcard.bound.sourceEnd;
  this.intPtr--; // remove end position of the '?'
  wildcard.sourceStart = this.intStack[this.intPtr--];
  annotateTypeReference(wildcard);
View Full Code Here

  wildcard.sourceStart = this.intStack[this.intPtr--];
  annotateTypeReference(wildcard);
  this.genericsStack[this.genericsPtr] = wildcard;
}
protected void consumeWildcardBounds1Super() {
  Wildcard wildcard = new Wildcard(Wildcard.SUPER);
  wildcard.bound = (TypeReference) this.genericsStack[this.genericsPtr];
  this.intPtr--; // remove the starting position of the super keyword
  wildcard.sourceEnd = wildcard.bound.sourceEnd;
  this.intPtr--; // remove end position of the '?'
  wildcard.sourceStart = this.intStack[this.intPtr--];
View Full Code Here

  wildcard.sourceStart = this.intStack[this.intPtr--];
  annotateTypeReference(wildcard);
  this.genericsStack[this.genericsPtr] = wildcard;
}
protected void consumeWildcardBounds2Extends() {
  Wildcard wildcard = new Wildcard(Wildcard.EXTENDS);
  wildcard.bound = (TypeReference) this.genericsStack[this.genericsPtr];
  wildcard.sourceEnd = wildcard.bound.sourceEnd;
  this.intPtr--; // remove end position of the '?'
  wildcard.sourceStart = this.intStack[this.intPtr--];
  annotateTypeReference(wildcard);
View Full Code Here

  wildcard.sourceStart = this.intStack[this.intPtr--];
  annotateTypeReference(wildcard);
  this.genericsStack[this.genericsPtr] = wildcard;
}
protected void consumeWildcardBounds2Super() {
  Wildcard wildcard = new Wildcard(Wildcard.SUPER);
  wildcard.bound = (TypeReference) this.genericsStack[this.genericsPtr];
  this.intPtr--; // remove the starting position of the super keyword
  wildcard.sourceEnd = wildcard.bound.sourceEnd;
  this.intPtr--; // remove end position of the '?'
  wildcard.sourceStart = this.intStack[this.intPtr--];
View Full Code Here

TOP

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

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.