public class Event extends ScriptElement
Modifier and Type | Field and Description |
---|---|
protected String[] |
arguments |
protected String |
id |
static String |
NONE |
line, nextSibling, parent
Constructor and Description |
---|
Event(ScriptElement parent,
String id,
String[] args,
int line) |
Modifier and Type | Method and Description |
---|---|
List<Event> |
expand()
this is an interesting little exercise since we have to cover all
combinations of parameter values, which would normally be a simple set
of nested loops, only that the number of parameters is a variable itself
(I'm notoriously bad at this)
|
String[] |
getArguments() |
static Object[][] |
getBooleanArgVariations(int nArgs)
variations over boolean lists are quite easy to produce :)
|
Object[] |
getConcreteArguments() |
String |
getId() |
int |
getLine() |
boolean |
isNone() |
static boolean |
isNone(String id) |
void |
process(ElementProcessor p) |
void |
setArguments(String[] args) |
String |
toString() |
clone, getNextSibling, getParent
public static final String NONE
protected String id
protected String[] arguments
public Event(ScriptElement parent, String id, String[] args, int line)
public boolean isNone()
public static boolean isNone(String id)
public String getId()
public int getLine()
getLine
in class ScriptElement
public String[] getArguments()
public void setArguments(String[] args)
public void process(ElementProcessor p)
process
in class ScriptElement
public List<Event> expand()
public Object[] getConcreteArguments()
public static Object[][] getBooleanArgVariations(int nArgs)