Class Spec
- java.lang.Object
-
- net.sf.gridarta.textedit.textarea.tokenmarker.Spec
-
public class Spec extends java.lang.ObjectDescribes a command (excluding the command name).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetId()Returns the token id used to highlight this command.ParametergetParameter(java.lang.String name)Returns the parameter specification for a parameter name.
-
-
-
Constructor Detail
-
Spec
public Spec(byte id, Parameter... parameters)Creates a new instance.- Parameters:
id- the token id used to highlight this commandparameters- the possible parameters of this command
-
-
Method Detail
-
getId
public byte getId()
Returns the token id used to highlight this command.- Returns:
- the token id
-
getParameter
public Parameter getParameter(java.lang.String name)
Returns the parameter specification for a parameter name.- Parameters:
name- the parameter name- Returns:
- the parameter specification, or
nullif the parameter name is invalid for this command
-
-