/** * Creates a new WarningPrinter that prints to the given print stream, * except if the names of any involved classes matches the given filter. */ public WarningPrinter(PrintStream printStream, List classFilter) { this.printStream = printStream; this.classFilter = classFilter == null ? null : new ListParser(new ClassNameParser()).parse(classFilter); }
/** * Creates a new NameFilteredDataEntryWriter that delegates to either of * the two given writers, depending on the given list of filters. */ public NameFilteredDataEntryWriter(List regularExpressions, DataEntryWriter acceptedDataEntryWriter, DataEntryWriter rejectedDataEntryWriter) { this(new ListParser(new FileNameParser()).parse(regularExpressions), acceptedDataEntryWriter, rejectedDataEntryWriter); }
public StringMatcher parse(String regularExpression) { // Does the regular expression contain a ',' list separator? return parse(ListUtil.commaSeparatedList(regularExpression)); }
/** * Creates a new AttributeNameFilter. * @param regularExpression the regular expression against which attribute * names will be matched. * @param attributeVisitor the <code>AttributeVisitor</code> to which * visits will be delegated. */ public AttributeNameFilter(List regularExpression, AttributeVisitor attributeVisitor) { this(new ListParser(new NameParser()).parse(regularExpression), attributeVisitor); }
/** * Creates a StringMatcher for the given regular expression, which is a * an optionally negated simple expression. */ private StringMatcher parseEntry(String regularExpression) { // Wrap the matcher if the regular expression starts with a '!' negator. return isNegated(regularExpression) ? new NotMatcher(stringParser.parse(regularExpression.substring(1))) : stringParser.parse(regularExpression); }
/** * Creates a new WarningPrinter that prints to the given print stream, * except if the names of any involved classes matches the given filter. */ public WarningPrinter(PrintStream printStream, List classFilter) { this.printStream = printStream; this.classFilter = classFilter == null ? null : new ListParser(new ClassNameParser()).parse(classFilter); }
/** * Creates a new NameFilteredDataEntryWriter that delegates to either of * the two given writers, depending on the given list of filters. */ public NameFilteredDataEntryWriter(String regularExpression, DataEntryWriter acceptedDataEntryWriter, DataEntryWriter rejectedDataEntryWriter) { this(new ListParser(new FileNameParser()).parse(regularExpression), acceptedDataEntryWriter, rejectedDataEntryWriter); }
public StringMatcher parse(String regularExpression) { // Does the regular expression contain a ',' list separator? return parse(ListUtil.commaSeparatedList(regularExpression)); }
/** * Creates a new AttributeNameFilter. * @param regularExpression the regular expression against which attribute * names will be matched. * @param attributeVisitor the <code>AttributeVisitor</code> to which * visits will be delegated. */ public AttributeNameFilter(String regularExpression, AttributeVisitor attributeVisitor) { this(new ListParser(new NameParser()).parse(regularExpression), attributeVisitor); }
/** * Creates a new WarningPrinter that prints to the given print stream, * except if the names of any involved classes matches the given filter. */ public WarningPrinter(PrintStream printStream, List classFilter) { this.printStream = printStream; this.classFilter = classFilter == null ? null : new ListParser(new ClassNameParser()).parse(classFilter); }
/** * Creates a new NameFilteredDataEntryWriter that delegates to either of * the two given writers, depending on the given list of filters. */ public NameFilteredDataEntryWriter(String regularExpression, DataEntryWriter acceptedDataEntryWriter, DataEntryWriter rejectedDataEntryWriter) { this(new ListParser(new FileNameParser()).parse(regularExpression), acceptedDataEntryWriter, rejectedDataEntryWriter); }
public StringMatcher parse(String regularExpression) { // Does the regular expression contain a ',' list separator? return parse(ListUtil.commaSeparatedList(regularExpression)); }
/** * Creates a new WarningPrinter that prints to the given print stream, * except if the names of any involved classes matches the given filter. */ public WarningPrinter(PrintStream printStream, List classFilter) { this.printStream = printStream; this.classFilter = classFilter == null ? null : new ListParser(new ClassNameParser()).parse(classFilter); }
/** * Creates a new NameFilteredDataEntryWriter that delegates to either of * the two given writers, depending on the given list of filters. */ public NameFilteredDataEntryWriter(List regularExpressions, DataEntryWriter acceptedDataEntryWriter, DataEntryWriter rejectedDataEntryWriter) { this(new ListParser(new FileNameParser()).parse(regularExpressions), acceptedDataEntryWriter, rejectedDataEntryWriter); }
public StringMatcher parse(String regularExpression) { // Does the regular expression contain a ',' list separator? return parse(ListUtil.commaSeparatedList(regularExpression)); }
/** * Creates a new ClassNameFilter. * @param regularExpression the regular expression against which annotation * type names will be matched. * @param annotationVisitor the <code>annotationVisitor</code> to which * visits will be delegated. */ public AnnotationTypeFilter(String regularExpression, AnnotationVisitor annotationVisitor) { this.regularExpressionMatcher = new ListParser(new ClassNameParser()).parse(regularExpression); this.annotationVisitor = annotationVisitor; }
/** * Creates a new NameFilteredDataEntryWriter that delegates to either of * the two given writers, depending on the given list of filters. */ public NameFilteredDataEntryWriter(List regularExpressions, DataEntryWriter acceptedDataEntryWriter, DataEntryWriter rejectedDataEntryWriter) { this(new ListParser(new FileNameParser()).parse(regularExpressions), acceptedDataEntryWriter, rejectedDataEntryWriter); }
/** * Creates a new ClassNameFilter. * @param regularExpression the regular expression against which class names * will be matched. * @param classVisitor the <code>ClassVisitor</code> to which visits * will be delegated. */ public ClassNameFilter(List regularExpression, ClassVisitor classVisitor) { this(new ListParser(new ClassNameParser()).parse(regularExpression), classVisitor); }
/** * Creates a new NameFilteredDataEntryWriter that delegates to either of * the two given writers, depending on the given list of filters. */ public NameFilteredDataEntryWriter(String regularExpression, DataEntryWriter acceptedDataEntryWriter, DataEntryWriter rejectedDataEntryWriter) { this(new ListParser(new FileNameParser()).parse(regularExpression), acceptedDataEntryWriter, rejectedDataEntryWriter); }
/** * Creates a new ClassNameFilter. * @param regularExpression the regular expression against which class names * will be matched. * @param classVisitor the <code>ClassVisitor</code> to which visits * will be delegated. */ public ClassNameFilter(String regularExpression, ClassVisitor classVisitor) { this(new ListParser(new ClassNameParser()).parse(regularExpression), classVisitor); }