|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.rules.SyntaxSet
Class representing a whole syntax set.
This defines how the command-line is parsed into the actual RuleSet
Syntax
,
RuleSet
Field Summary | |
protected static sam.toolkit.ClassRegistry |
REGISTRY
Registry of all defined SyntaxSet
Subclasses should include a static statement like
|
Constructor Summary | |
protected |
SyntaxSet()
|
Method Summary | |
java.lang.String |
example()
Builds an example of this syntax set. |
static sam.rules.SyntaxSet |
get()
Builds a new SyntaxSet instance. |
java.lang.String |
getDeclaredTypes()
Gets the list of all valid one-char parameter prefixes, as a String |
java.lang.String |
help()
Hopefully helps. |
void |
load(java.util.zip.ZipFile archive)
Loads syntaxes from specified archive |
abstract java.lang.String |
name()
Gets the name of this syntax set |
void |
parse(java.lang.String[] arguments)
Parses a command-line and imports specified fields |
static boolean |
set(java.lang.String syntaxSetName)
Sets the syntax set |
java.lang.String |
syntax()
Gets the syntax in an abstract description |
abstract java.util.Enumeration |
syntaxes()
Enumerates all Syntax pieces composing this syntax set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final sam.toolkit.ClassRegistry REGISTRY
SyntaxSet
Subclasses should include a static statement like
static { REGISTRY.register(MySyntaxSet.class, "my syntax set"); }
Constructor Detail |
protected SyntaxSet()
Method Detail |
public static boolean set(java.lang.String syntaxSetName)
public static sam.rules.SyntaxSet get()
SyntaxSet
instance.
public abstract java.lang.String name()
public abstract java.util.Enumeration syntaxes()
Syntax
pieces composing this syntax set.
public void parse(java.lang.String[] arguments)
public void load(java.util.zip.ZipFile archive)
public java.lang.String help()
public java.lang.String getDeclaredTypes()
String
public java.lang.String syntax()
public java.lang.String example()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |