Examples of Wildcard


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.exist.xquery.modules.ngram.query.Wildcard

        if (queryTokens.isEmpty())
            return new EmptyExpression();

        for (String token : queryTokens) {
            if (token.startsWith(".")) {
                Wildcard wildcard = null;
                if (token.length() == 1) {
                    wildcard = new Wildcard(1, 1);
            } else {
                    String qualifier = token.substring(1);
                    if (qualifier.equals("?"))
                        wildcard = new Wildcard(0, 1);
                    else if (qualifier.equals("*"))
                        wildcard = new Wildcard(0, Integer.MAX_VALUE);
                    else if (qualifier.equals("+"))
                        wildcard = new Wildcard(1, Integer.MAX_VALUE);
                    else {
                        Pattern p = Pattern.compile(INTERVAL_QUALIFIER_PATTERN);
                        Matcher m = p.matcher(qualifier);
                        if (!m.matches()) // Should not happen
                            throw new XPathException(
                            this,
                            ErrorCodes.FTDY0020,
                            "query string violates wildcard qualifier syntax"
                        );
                        try {
                          wildcard = new Wildcard(Integer.parseInt(m.group(1)), Integer.parseInt(m.group(2)));
                        } catch (NumberFormatException nfe) {
                            throw new XPathException(this,
                            ErrorCodes.FTDY0020,
                            "query string violates wildcard qualifier syntax",
                            new StringValue(query),
View Full Code Here

Examples of org.exolab.castor.xml.schema.Wildcard

          group = new Group();
          group.setOrder(Order.sequence);
          group.setMinOccurs(0);
          group.setMaxOccurs(-1);
          Wildcard any = new Wildcard(group);
          group.addWildcard(any);
          complexType.addGroup(group);

       } else if (dtdElement.isElemOnlyContent()) {
View Full Code Here

Examples of org.exolab.castor.xml.schema.Wildcard

        //-- have unmarshaller perform any necessary clean up
        unmarshaller.finish();

        //-- <anyAttribute>
        if (SchemaNames.ANY_ATTRIBUTE.equals(name)) {
            Wildcard wildcard =
                 ((WildcardUnmarshaller)unmarshaller).getWildcard();
            try {
                _complexType.setAnyAttribute(wildcard);
            } catch (SchemaException e) {
                throw new IllegalArgumentException(e.getMessage());
View Full Code Here

Examples of org.exolab.castor.xml.schema.Wildcard

        //-- have unmarshaller perform any necessary clean up
        unmarshaller.finish();

         //-- <any>
        if (SchemaNames.ANY.equals(name)) {
           Wildcard wildcard =
                 ((WildcardUnmarshaller)unmarshaller).getWildcard();
            try {
                _group.addWildcard(wildcard);
            } catch (SchemaException e) {
                throw new IllegalArgumentException(e.getMessage());
View Full Code Here

Examples of org.exolab.castor.xml.schema.Wildcard

            final SchemaContext schemaContext,
            final ComplexType complexType,
            final Schema schema,
            final String element,
            final AttributeSet atts) {
        this(schemaContext, schema, element, atts, new Wildcard(complexType));
    }
View Full Code Here

Examples of org.exolab.castor.xml.schema.Wildcard

            final SchemaContext schemaContext,
            final Group group,
            final Schema schema,
            final String element,
            final AttributeSet atts) {
        this(schemaContext, schema, element, atts, new Wildcard(group));
    }
View Full Code Here

Examples of org.exolab.castor.xml.schema.Wildcard

            final SchemaContext schemaContext,
            final AttributeGroup attGroup,
            final Schema schema,
            final String element,
            final AttributeSet atts) {
        this(schemaContext, schema, element, atts, new Wildcard(attGroup));
    }
View Full Code Here

Examples of org.exolab.castor.xml.schema.Wildcard

            Annotation ann = ((AnnotationUnmarshaller)unmarshaller).getAnnotation();
            _complexType.addAnnotation(ann);
        }
        //-- <anyAttribute>
        else if (SchemaNames.ANY_ATTRIBUTE.equals(name)) {
            Wildcard wildcard =
                 ((WildcardUnmarshaller)unmarshaller).getWildcard();
            try {
                _complexType.setAnyAttribute(wildcard);
            } catch (SchemaException e) {
                throw new IllegalArgumentException(e.getMessage());
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.