java.lang.Cloneable
, Condition
public class ScriptCondition extends AbstractScriptComponent implements Condition
description, location, project
Constructor | Description |
---|---|
ScriptCondition() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
eval() |
Is this condition true?
|
boolean |
getValue() |
get the current value of the condition
|
void |
setValue(boolean value) |
set the value of the condition.
|
addText, createClasspath, executeScript, getRunner, initScriptRunner, setClasspath, setClasspathRef, setEncoding, setLanguage, setManager, setProject, setSetBeans, setSrc
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation
public boolean eval() throws BuildException
eval
in interface Condition
BuildException
- if an error occurspublic boolean getValue()
public void setValue(boolean value)
value
- the value to set the condition to