| Modifier and Type | Field and Description |
|---|---|
private String |
action
The action to performed, basically the name of the method to call.
|
private static int |
idGenerator
The generator of unique id.
|
private WaveType |
returnWaveType
The wave type of the wave returned after processing.
|
private int |
uid
The unique identifier of the wave type.
|
private List<WaveItem<?>> |
waveItemList
Define arguments types to use.
|
private static Map<String,WaveType> |
waveTypeMap
Map that store WaveType used according to their unique identifier.
|
| Modifier | Constructor and Description |
|---|---|
private |
WaveTypeBase(String action,
WaveItem<?>... waveItems)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static WaveTypeBase |
build(String action,
WaveItem<?>... waveItems)
Build a wave type.
|
static WaveTypeBase |
build(String action,
WaveType returnWaveType,
WaveItem<?>... waveItems)
Build a wave type.
|
boolean |
equals(Object waveType) |
String |
getAction()
Gets the action.
|
String |
getItems()
Return the required method parameter list to handle this WaveType.
|
WaveType |
getReturnWaveType()
Gets the return wave type.
|
int |
getUid()
Gets the uid.
|
List<WaveItem<?>> |
getWaveItemList()
Gets the wave item list.
|
static WaveType |
getWaveType(String action)
Retrieve a WaveType according to its unique action name.
|
int |
hashCode() |
void |
setReturnWaveType(WaveType returnWaveType)
Sets the return wave type.
|
void |
setUid(int uid)
Sets the uid.
|
String |
toString() |
private static int idGenerator
private static Map<String,WaveType> waveTypeMap
private int uid
private final String action
private WaveType returnWaveType
private WaveTypeBase(String action, WaveItem<?>... waveItems)
action - The action to perform, "DO_" (by default see JRebirthParameters.WAVE_HANDLER_PREFIX) keyword will be prepended to the action name to generate the handler methodwaveItems - the list of #WaveItemWaveItem required by this wavepublic static WaveTypeBase build(String action, WaveItem<?>... waveItems)
action - The action to perform, "DO_" keyword (by default see JRebirthParameters.WAVE_HANDLER_PREFIX) will be prepended to the action name to generate the handler methodwaveItems - the list of WaveItem required by this wavepublic static WaveType getWaveType(String action)
WaveType has not been initialized yet.action - the unique action name used to register the WaveTypepublic static WaveTypeBase build(String action, WaveType returnWaveType, WaveItem<?>... waveItems)
action - The action to perform "DO_" (by default see JRebirthParameters.WAVE_HANDLER_PREFIX) keyword will be prepended to the action name to generate the handler methodreturnWaveType - the return wave Type to call after having processing the currentwaveItems - the list of WaveItem required by this wavepublic int getUid()
public void setUid(int uid)
uid - The uid to set.public String getAction()
public List<WaveItem<?>> getWaveItemList()
public String getItems()
public WaveType getReturnWaveType()
public void setReturnWaveType(WaveType returnWaveType)
returnWaveType - the new return wave typeCopyright © 2011–2014 JRebirth OSS. All rights reserved.