Examples of WildCardPattern


Examples of classycle.util.WildCardPattern

      {
        throwException("Patterns without a '.' and a '*' should not start "
                         + "with a lower-case letter: " + term,
                       lineNumber, tokenIndex);
      }
      pattern = new WildCardPattern(term);
    }
    return pattern;
  }
View Full Code Here

Examples of com.quickwebframework.util.pattern.WildcardPattern

   * @return
   */
  public static Servlet getServletByPath(String alias) {
    for (String path : pathServletMap.keySet()) {
      if (path.startsWith("*.") || path.endsWith("*")) {
        WildcardPattern pattern = pathWildcardPatternMap.get(path);
        if (pattern == null) {
          pattern = new WildcardPattern(path);
          pathWildcardPatternMap.put(path, pattern);
        }
        if (pattern.implies(alias)) {
          return pathServletMap.get(path);
        }
      } else {
        if (path.equals(alias)) {
          return pathServletMap.get(alias);
View Full Code Here

Examples of org.apache.metamodel.util.WildcardPattern

        } else if (_operator == OperatorType.GREATER_THAN || _operator == OperatorType.HIGHER_THAN) {
            return comparator.compare(selectItemValue, operandValue) > 0;
        } else if (_operator == OperatorType.LESS_THAN || _operator == OperatorType.LOWER_THAN) {
            return comparator.compare(selectItemValue, operandValue) < 0;
        } else if (_operator == OperatorType.LIKE) {
            WildcardPattern matcher = new WildcardPattern((String) operandValue, '%');
            return matcher.matches((String) selectItemValue);
        } else if (_operator == OperatorType.IN) {
            Set<?> inValues = getInValues();
            return inValues.contains(selectItemValue);
        } else {
            throw new IllegalStateException("Operator could not be determined");
View Full Code Here

Examples of org.codenarc.util.WildcardPattern

        String applyTo = getApplyToClassNames();
        String doNotApplyTo = getDoNotApplyToClassNames();

        if (applyTo != null  && applyTo.length() > 0) {
            WildcardPattern pattern = new WildcardPattern(applyTo, true);
            shouldApply = pattern.matches(classNode.getNameWithoutPackage()) || pattern.matches(classNode.getName());
        }

        if (shouldApply && doNotApplyTo != null && doNotApplyTo.length() > 0) {
            WildcardPattern pattern = new WildcardPattern(doNotApplyTo, true);
            shouldApply = !pattern.matches(classNode.getNameWithoutPackage()) && !pattern.matches(classNode.getName());
        }

        return shouldApply;
    }
View Full Code Here

Examples of org.jboss.as.jdr.util.WildcardPattern

        };
    }

    public static VirtualFileFilter wildcard(final String p){
        return new VirtualFileFilter() {
            private WildcardPattern pattern = new WildcardPattern(p);
            @Override
            public boolean accepts(VirtualFile file) {
                return pattern.matches(file.getPathName());
            }
        };
    }
View Full Code Here

Examples of org.jboss.as.jdr.util.WildcardPattern

        private final List<WildcardPattern> patterns;

        public WildcardBlacklistFilter() {
            patterns = new ArrayList<WildcardPattern>();
            patterns.add(new WildcardPattern("*-users.properties"));
        }
View Full Code Here

Examples of org.jboss.as.jdr.util.WildcardPattern

            return true;
        }

        public void add(final String... patterns){
            for(String p: patterns) {
                this.patterns.add(new WildcardPattern(p));
            }
        }
View Full Code Here

Examples of org.jboss.as.jdr.util.WildcardPattern

        };
    }

    public static VirtualFileFilter wildcard(final String p){
        return new VirtualFileFilter() {
            private WildcardPattern pattern = new WildcardPattern(p);
            @Override
            public boolean accepts(VirtualFile file) {
                return pattern.matches(file.getPathName());
            }
        };
    }
View Full Code Here

Examples of org.jboss.as.jdr.util.WildcardPattern

        private final List<WildcardPattern> patterns;

        public WildcardBlacklistFilter() {
            patterns = new ArrayList<WildcardPattern>();
            patterns.add(new WildcardPattern("*-users.properties"));
        }
View Full Code Here

Examples of org.jboss.as.jdr.util.WildcardPattern

            return true;
        }

        public void add(final String... patterns){
            for(String p: patterns) {
                this.patterns.add(new WildcardPattern(p));
            }
        }
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.