Examples of Wildcard


Examples of net.sickill.off.common.Wildcard

    }

    @Override
    public Wildcard getIgnoreWildcard() {
        if (ignoreWildcard == null) {
            ignoreWildcard = new Wildcard("*.svn/*;*.git/*;" + getIgnoreMask().trim());
        }
        return ignoreWildcard;
    }
View Full Code Here

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

    this.mscope = mscope;
  }

  protected StringBuilder printTypeReference(TypeReference tr) {
    if (tr instanceof Wildcard) {
      Wildcard w = (Wildcard) tr;
      output.append('?');
      if (w.bound != null) {
        if (w.kind == Wildcard.EXTENDS) {
          output.append(" extends ");
        } else if (w.kind == Wildcard.SUPER) {
View Full Code Here

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

   * handle. Whether a type is qualified or unqualified in its source reference is actually reflected in the handle and this code
   * allows for that.
   */
  private void createHandleSigForReference(TypeReference ref, TypeBinding tb, MethodScope scope, StringBuffer handleSig) {
    if (ref instanceof Wildcard) {
      Wildcard w = (Wildcard) ref;
      if (w.bound == null) {
        handleSig.append('*');
      } else {
        handleSig.append('+');
        TypeBinding typeB = w.bound.resolvedType;
View Full Code Here

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

    return variableDeclarationStatement;
  }

  public Type convertType(TypeReference typeReference) {
    if (typeReference instanceof Wildcard) {
      final Wildcard wildcard = (Wildcard) typeReference;
      final WildcardType wildcardType = new WildcardType(this.ast);
      if (wildcard.bound != null) {
        final Type bound = convertType(wildcard.bound);
        wildcardType.setBound(bound, wildcard.kind == Wildcard.EXTENDS);
        int start = wildcard.sourceStart;
View Full Code Here

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

    return variableDeclarationStatement;
  }

  public Type convertType(TypeReference typeReference) {
    if (typeReference instanceof Wildcard) {
      final Wildcard wildcard = (Wildcard) typeReference;
      final WildcardType wildcardType = new WildcardType(this.ast);
      if (wildcard.bound != null) {
        final Type bound = convertType(wildcard.bound);
        wildcardType.setBound(bound, wildcard.kind == Wildcard.EXTENDS);
        int start = wildcard.sourceStart;
View Full Code Here

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

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

                  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);
                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);
                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 = this.namePos-1;
View Full Code Here

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

    return variableDeclarationStatement;
  }

  public Type convertType(TypeReference typeReference) {
    if (typeReference instanceof Wildcard) {
      final Wildcard wildcard = (Wildcard) typeReference;
      final WildcardType wildcardType = new WildcardType(this.ast);
      if (wildcard.bound != null) {
        final Type bound = convertType(wildcard.bound);
        wildcardType.setBound(bound, wildcard.kind == Wildcard.EXTENDS);
        int start = wildcard.sourceStart;
View Full Code Here

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

    HelpInfo info = new HelpInfo() {
    };

    // Pick an Expression subtype to pass in
    GWTProblem.recordError(new Wildcard(Wildcard.EXTENDS), cud, errorMessage,
        info);

    CategorizedProblem[] errors = compilationResult.getErrors();
    assertEquals(1, errors.length);
    GWTProblem problem = (GWTProblem) errors[0];
View Full Code Here

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

  }

  public Type convertType(TypeReference typeReference) {
    org.eclipse.jdt.internal.compiler.ast.Annotation[] annotations;
    if (typeReference instanceof Wildcard) {
      final Wildcard wildcard = (Wildcard) typeReference;
      final WildcardType wildcardType = new WildcardType(this.ast);
      if (wildcard.bound != null) {
        final Type bound = convertType(wildcard.bound);
        wildcardType.setBound(bound, wildcard.kind == Wildcard.EXTENDS);
        int start = wildcard.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.