public class Event extends ScriptElement
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
arguments |
protected java.lang.String |
id |
static java.lang.String |
NONE |
line, nextSibling, parent
Constructor and Description |
---|
Event(ScriptElement parent,
java.lang.String id,
java.lang.String[] args,
int line) |
Modifier and Type | Method and Description |
---|---|
java.util.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
|
java.lang.String[] |
getArguments() |
static java.lang.Object[][] |
getBooleanArgVariations(int nArgs)
variations over boolean lists are quite easy to produce :)
|
java.lang.Object[] |
getConcreteArguments() |
java.lang.String |
getId() |
int |
getLine() |
boolean |
isNone() |
static boolean |
isNone(java.lang.String id) |
void |
process(ElementProcessor p) |
void |
setArguments(java.lang.String[] args) |
java.lang.String |
toString() |
clone, getNextSibling, getParent
public static final java.lang.String NONE
protected java.lang.String id
protected java.lang.String[] arguments
public Event(ScriptElement parent, java.lang.String id, java.lang.String[] args, int line)
public boolean isNone()
public static boolean isNone(java.lang.String id)
public java.lang.String getId()
public int getLine()
getLine
in class ScriptElement
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] getArguments()
public void setArguments(java.lang.String[] args)
public void process(ElementProcessor p)
process
in class ScriptElement
public java.util.List<Event> expand()
public java.lang.Object[] getConcreteArguments()
public static java.lang.Object[][] getBooleanArgVariations(int nArgs)