/** * Returns the jar filter currently represented in this dialog. */ public List getJarFilter() { String filter = jarFilterTextField.getText(); return filter.equals(DEFAULT_JAR_FILTER) ? null : ListUtil.commaSeparatedList(filter); }
/** * Returns the filter currently represented in this dialog. */ public List getFilter() { String filter = filterTextField.getText(); return filter.equals(DEFAULT_FILTER) ? null : ListUtil.commaSeparatedList(filter); }
/** * Returns the zip filter currently represented in this dialog. */ public List getZipFilter() { String filter = zipFilterTextField.getText(); return filter.equals(DEFAULT_ZIP_FILTER) ? null : ListUtil.commaSeparatedList(filter); }
/** * Returns the aar filter currently represented in this dialog. */ public List getAarFilter() { String filter = aarFilterTextField.getText(); return filter.equals(DEFAULT_AAR_FILTER) ? null : ListUtil.commaSeparatedList(filter); }
/** * Returns the jmod filter currently represented in this dialog. */ public List getJmodFilter() { String filter = jmodFilterTextField.getText(); return filter.equals(DEFAULT_JMOD_FILTER) ? null : ListUtil.commaSeparatedList(filter); }
/** * Returns the apk filter currently represented in this dialog. */ public List getApkFilter() { String filter = apkFilterTextField.getText(); return filter.equals(DEFAULT_APK_FILTER) ? null : ListUtil.commaSeparatedList(filter); }
/** * Returns the war filter currently represented in this dialog. */ public List getWarFilter() { String filter = warFilterTextField.getText(); return filter.equals(DEFAULT_WAR_FILTER) ? null : ListUtil.commaSeparatedList(filter); }
/** * Returns the ear filter currently represented in this dialog. */ public List getEarFilter() { String filter = earFilterTextField.getText(); return filter.equals(DEFAULT_EAR_FILTER) ? null : ListUtil.commaSeparatedList(filter); }
public StringMatcher parse(String regularExpression) { // Does the regular expression contain a ',' list separator? return parse(ListUtil.commaSeparatedList(regularExpression)); }
public StringMatcher parse(String regularExpression) { // Does the regular expression contain a ',' list separator? return parse(ListUtil.commaSeparatedList(regularExpression)); }
public StringMatcher parse(String regularExpression) { // Does the regular expression contain a ',' list separator? return parse(ListUtil.commaSeparatedList(regularExpression)); }
public StringMatcher parse(String regularExpression) { // Does the regular expression contain a ',' list separator? return parse(ListUtil.commaSeparatedList(regularExpression)); }
@Override public void dontwarn(@NonNull String dontwarn) { if (configuration.warn == null) { configuration.warn = Lists.newArrayList(); } dontwarn = ClassUtil.internalClassName(dontwarn); //noinspection unchecked configuration.warn.addAll(ListUtil.commaSeparatedList(dontwarn)); }
public static void main(String[] args) { if (args.length == 1) { System.out.println("Input string: ["+args[0]+"]"); List list = commaSeparatedList(args[0]); System.out.println("Resulting list:"); for (int index = 0; index < list.size(); index++) { System.out.println("["+list.get(index)+"]"); } } else { List list = Arrays.asList(args); System.out.println("Input list:"); for (int index = 0; index < list.size(); index++) { System.out.println("["+list.get(index)+"]"); } String string = commaSeparatedString(list); System.out.println("Resulting string: ["+string+"]"); } } }
public static void main(String[] args) { if (args.length == 1) { System.out.println("Input string: ["+args[0]+"]"); List list = commaSeparatedList(args[0]); System.out.println("Resulting list:"); for (int index = 0; index < list.size(); index++) { System.out.println("["+list.get(index)+"]"); } } else { List list = Arrays.asList(args); System.out.println("Input list:"); for (int index = 0; index < list.size(); index++) { System.out.println("["+list.get(index)+"]"); } String string = commaSeparatedString(list, true); System.out.println("Resulting string: ["+string+"]"); } } }
public static void main(String[] args) { if (args.length == 1) { System.out.println("Input string: ["+args[0]+"]"); List list = commaSeparatedList(args[0]); System.out.println("Resulting list:"); for (int index = 0; index < list.size(); index++) { System.out.println("["+list.get(index)+"]"); } } else { List list = Arrays.asList(args); System.out.println("Input list:"); for (int index = 0; index < list.size(); index++) { System.out.println("["+list.get(index)+"]"); } String string = commaSeparatedString(list, true); System.out.println("Resulting string: ["+string+"]"); } } }
public static void main(String[] args) { if (args.length == 1) { System.out.println("Input string: ["+args[0]+"]"); List list = commaSeparatedList(args[0]); System.out.println("Resulting list:"); for (int index = 0; index < list.size(); index++) { System.out.println("["+list.get(index)+"]"); } } else { List list = Arrays.asList(args); System.out.println("Input list:"); for (int index = 0; index < list.size(); index++) { System.out.println("["+list.get(index)+"]"); } String string = commaSeparatedString(list, true); System.out.println("Resulting string: ["+string+"]"); } } }
/** * Adds the given filter to the given list, creating a new list if * necessary. External class names are converted to internal class names, * if requested. */ private List extendFilter(List filter, String filterString, boolean convertExternalClassNames) { if (filter == null) { filter = new ArrayList(); } if (filterString == null) { // Clear the filter to keep all names. filter.clear(); } else { if (convertExternalClassNames) { filterString = ClassUtil.internalClassName(filterString); } // Append the filter. filter.addAll(ListUtil.commaSeparatedList(filterString)); } return filter; }
classPathEntry.setFilter(ListUtil.commaSeparatedList((String)filterArgs.get("filter"))); classPathEntry.setApkFilter(ListUtil.commaSeparatedList((String)filterArgs.get("apkfilter"))); classPathEntry.setJarFilter(ListUtil.commaSeparatedList((String)filterArgs.get("jarfilter"))); classPathEntry.setAarFilter(ListUtil.commaSeparatedList((String)filterArgs.get("aarfilter"))); classPathEntry.setWarFilter(ListUtil.commaSeparatedList((String)filterArgs.get("warfilter"))); classPathEntry.setEarFilter(ListUtil.commaSeparatedList((String)filterArgs.get("earfilter"))); classPathEntry.setZipFilter(ListUtil.commaSeparatedList((String)filterArgs.get("zipfilter")));
/** * Adds the contents of this element to the given name filter. * @param filter the list of attributes to be extended. * @param internal specifies whether the filter string should be converted * to internal types. */ public void appendTo(List filter, boolean internal) { // Get the referenced element, or else this one. FilterElement filterElement = isReference() ? (FilterElement)getCheckedRef(this.getClass(), this.getClass().getName()) : this; String filterString = filterElement.filter; if (filterString == null) { // Clear the filter to keep all names. filter.clear(); } else { if (internal) { filterString = ClassUtil.internalClassName(filterString); } // Append the filter. filter.addAll(ListUtil.commaSeparatedList(filterString)); } }