it.haefelinger.flaka
Class Switch
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
it.haefelinger.flaka.Task
it.haefelinger.flaka.Switch
- All Implemented Interfaces:
- Cloneable
public class Switch
- extends Task
- Since:
- 1.0
- Author:
- merzedes
|
Nested Class Summary |
protected static class |
Switch.Match
Case class |
static class |
Switch.MatcherBean
The sole purpose of this class is to answer questions on
properties asked by a resolver, usually a bean resolver (hence the
name BeanMatcher). |
| Fields inherited from class it.haefelinger.flaka.Task |
debug, el |
| Methods inherited from class it.haefelinger.flaka.Task |
debug, debug, error, error, getProperty, getref, info, log, setDebug, setEl, throwbx, throwbx, toFile, verbose, warn, warn |
| Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
value
protected String value
cases
protected List cases
defaultcase
protected Sequential defaultcase
var
protected String var
flags
protected int flags
Switch
public Switch()
setVar
public void setVar(String s)
setIgnoreCase
public void setIgnoreCase(boolean b)
setDotAll
public void setDotAll(boolean b)
setUnixLines
public void setUnixLines(boolean b)
setComments
public void setComments(boolean b)
setMultiLine
public void setMultiLine(boolean b)
setValue
public void setValue(String value)
createMatches
public Switch.Match createMatches()
throws BuildException
- Throws:
BuildException
addDefault
public void addDefault(Sequential res)
throws BuildException
- Parameters:
res -
- Throws:
BuildException
addOtherwise
public void addOtherwise(Sequential res)
throws BuildException
- Parameters:
res -
- Throws:
BuildException
execute
public void execute()
throws BuildException
- Overrides:
execute in class Task
- Throws:
BuildException