Package org.auraframework.util.text

Examples of org.auraframework.util.text.GlobMatcher


            name = split.get(1);
        } else if (remainder.length() > 0) {
            namespace = remainder;
        }
        try {
            this.prefixMatch = new GlobMatcher(prefix);
        } catch (IllegalArgumentException iae) {
            throw new IllegalArgumentException("Illegal prefix in " + matcher);
        }
        try {
            this.namespaceMatch = new GlobMatcher(namespace);
        } catch (IllegalArgumentException iae) {
            throw new IllegalArgumentException("Illegal namespace in " + matcher);
        }
        try {
            this.nameMatch = new GlobMatcher(name);
        } catch (IllegalArgumentException iae) {
            throw new IllegalArgumentException("Illegal name in " + matcher);
        }
        if ("*".equals(typeStr)) {
            this.defTypes = null;
View Full Code Here


    /**
     * Return true if the descriptor filter meets all requirements for the result of find to be cached
     */
    private boolean shouldCache(DescriptorFilter filter) {
        GlobMatcher p = filter.getPrefixMatch();
        String prefix = ((p.isConstant()) ? p.toString() : null);

        GlobMatcher ns = filter.getNamespaceMatch();
        String namespace = ((ns.isConstant()) ? ns.toString() : null);

        return (prefix != null || namespace != null) && shouldCache(prefix, namespace);
    }
View Full Code Here

TOP

Related Classes of org.auraframework.util.text.GlobMatcher

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.