Java Code Examples for android.os.PatternMatcher#PATTERN_SIMPLE_GLOB
The following examples show how to use
android.os.PatternMatcher#PATTERN_SIMPLE_GLOB .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AndroidManifestParser.java From Phantom with Apache License 2.0 | 5 votes |
/** * 获得 path 匹配类型 */ int getPatternMatcherType() { if (TextUtils.isEmpty(pathPattern) && TextUtils.isEmpty(pathPattern)) { return PatternMatcher.PATTERN_LITERAL; } else if (!TextUtils.isEmpty(pathPrefix)) { return PatternMatcher.PATTERN_PREFIX; } else { return PatternMatcher.PATTERN_SIMPLE_GLOB; } }
Example 2
Source File: DataBean.java From springreplugin with Apache License 2.0 | 5 votes |
/** * 获得 path 匹配类型 */ public int getPatternMatcherType() { if (TextUtils.isEmpty(pathPattern) && TextUtils.isEmpty(pathPattern)) { return PatternMatcher.PATTERN_LITERAL; } else if (!TextUtils.isEmpty(pathPrefix)) { return PatternMatcher.PATTERN_PREFIX; } else { return PatternMatcher.PATTERN_SIMPLE_GLOB; } }
Example 3
Source File: StringFilter.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
public PatternStringFilter(ValueProvider valueProvider, String attrValue) { super(valueProvider); mPattern = new PatternMatcher(attrValue, PatternMatcher.PATTERN_SIMPLE_GLOB); }