public class Spec
extends java.lang.Object
| Constructor and Description |
|---|
Spec(byte id,
Parameter... parameters)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getId()
Returns the token id used to highlight this command.
|
Parameter |
getParameter(java.lang.String name)
Returns the parameter specification for a parameter name.
|
public Spec(byte id,
Parameter... parameters)
id - the token id used to highlight this commandparameters - the possible parameters of this commandpublic byte getId()
public Parameter getParameter(java.lang.String name)
name - the parameter namenull if the parameter
name is invalid for this command