|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.selectors.BaseSelector
it.haefelinger.flaka.dep.Select
public class Select
| Field Summary | |
|---|---|
protected Pattern |
alias
|
protected String |
alias_regex
|
protected Pattern |
bname
|
protected String |
bname_regex
|
protected String |
errmsg
|
protected int |
flags
|
protected Pattern |
gid
|
protected String |
gid_regex
|
protected boolean |
glob
|
protected static short |
GLOB
|
protected boolean |
invert
|
protected Pattern |
path
|
protected String |
path_regex
|
protected String |
refid
|
protected static short |
REGEX
|
protected Pattern |
scope
|
protected String |
scope_regex
|
protected Pattern |
type
|
protected String |
type_regex
|
protected Pattern |
version
|
protected String |
version_regex
|
| Fields inherited from class org.apache.tools.ant.types.DataType |
|---|
checked, ref |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
Select()
|
|
| Method Summary | |
|---|---|
protected Pattern |
compile(String S)
compile a string a regular expression pattern. |
protected Dependency[] |
getdeps()
|
protected Object |
getref()
|
protected Object |
getref(String s)
return s as reference. |
boolean |
hasattribs()
|
protected Dependency |
haveDependency(String filename)
|
protected void |
init()
Init this instance. |
boolean |
isSelected(File basedir,
String filename,
File file)
Implements a selector which can be used to restrict a given fileset. |
protected boolean |
match(Dependency d)
|
protected boolean |
match(Pattern regex,
String s)
Match a string against a (precompiled) regular expression. |
void |
setAlias(String s)
|
void |
setBasename(String s)
|
void |
setCaseSensitive(boolean b)
|
void |
setGlob(boolean b)
|
void |
setGroup(String s)
|
void |
setGroupid(String s)
|
void |
setGroupname(String s)
|
void |
setIgnore(boolean b)
|
void |
setIgnoreCase(boolean b)
|
void |
setInvert(boolean b)
|
void |
setName(String s)
|
void |
setPath(String s)
|
void |
setRef(String s)
Use attribute ref to change the reference holding all known
dependencies. |
void |
setRefid(String s)
Use attribute refid to change the reference holding all known
dependencies. |
void |
setScope(String s)
|
void |
setType(String s)
|
void |
setVersion(String s)
|
| Methods inherited from class org.apache.tools.ant.types.selectors.BaseSelector |
|---|
getError, setError, validate, verifySettings |
| Methods inherited from class org.apache.tools.ant.types.DataType |
|---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, tooManyAttributes, toString |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final short GLOB
protected static final short REGEX
protected boolean invert
protected int flags
protected boolean glob
protected String alias_regex
protected String scope_regex
protected String bname_regex
protected String type_regex
protected String gid_regex
protected String path_regex
protected String version_regex
protected Pattern alias
protected Pattern scope
protected Pattern bname
protected Pattern type
protected Pattern gid
protected Pattern path
protected Pattern version
protected String errmsg
protected String refid
| Constructor Detail |
|---|
public Select()
| Method Detail |
|---|
public void setRefid(String s)
refid to change the reference holding all known
dependencies.
s - public void setRef(String s)
ref to change the reference holding all known
dependencies.
s - public void setGlob(boolean b)
public void setInvert(boolean b)
public void setCaseSensitive(boolean b)
public void setIgnore(boolean b)
public void setIgnoreCase(boolean b)
public void setAlias(String s)
public void setName(String s)
public void setScope(String s)
public void setBasename(String s)
public void setType(String s)
public void setGroupid(String s)
public void setGroup(String s)
public void setGroupname(String s)
public void setPath(String s)
public void setVersion(String s)
protected void init()
isSelected(java.io.File, java.lang.String, java.io.File) takes place.
The method translates regular expressions given as string into precompiled pattern objects.
protected Object getref(String s)
s as reference.
protected Object getref()
protected final Pattern compile(String S)
errmsg is set.
s can't be translated.protected final Dependency[] getdeps()
protected final Dependency haveDependency(String filename)
protected final boolean match(Pattern regex,
String s)
regex - if null, true is returned regardless of
s's value.s - if null then true is returned if regex is null as
well, otherwise false.
public boolean isSelected(File basedir,
String filename,
File file)
isSelected in interface FileSelectorisSelected in class BaseSelectorpublic boolean hasattribs()
protected boolean match(Dependency d)
d - not null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||