org.jboss.jsfunit.analysis.el
Class SkipExpressionSpec
java.lang.Object
org.jboss.jsfunit.analysis.el.SkipExpressionSpec
public class SkipExpressionSpec
- extends Object
Sometimes you don't want a particular set of expressions to be checked.
Providing a SkipExpressionSpec gives you a simple way to express this set.
A SkipExpressionSpec has 2 coordinates: a commons-io file filter, and a
regular expression string. An empty spec (both coordinates null) will cause
everything to be skipped (this isn't really seen as a common use case, but
it keeps things conceptually simple). Additions to the spec narrow the set
of skipped items.
So, for instance, specifying a file filter, but no regular expression, will
cause all ELExpressions in the specified files to be skipped. Specifying a
regular expression, but no file filter, will cause the ELExpressions that
match the regular expression to be skipped in all files.
The reason we're choosing which expressions to skip, rather than those to
include, is that we're assuming that by default, we want an expression to be
checked.
We're using regular expressions to filter ELExpressions because I'm lazy.
- Since:
- 1.0
- Author:
- Jason
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SkipExpressionSpec
public SkipExpressionSpec(org.apache.commons.io.filefilter.IOFileFilter files,
String expr)
getFileFilter
public org.apache.commons.io.filefilter.IOFileFilter getFileFilter()
getExpressionFilter
public Pattern getExpressionFilter()
Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.