|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaitools.jiffle.parser.OptionLookup
public class OptionLookup
A lookup service used by the Jiffle compiler when parsing script options.
| Constructor Summary | |
|---|---|
OptionLookup()
|
|
| Method Summary | |
|---|---|
static String |
getActiveRuntimExpr(String name,
String value)
Gets the runtime source for the given option name:value pair. |
static Iterable<String> |
getNames()
Gets the names known to the lookup service. |
static boolean |
isDefined(String optionName)
Tests if an option name is defined. |
static boolean |
isValidValue(String optionName,
String value)
Tests if a value is valid for the given option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptionLookup()
| Method Detail |
|---|
public static boolean isDefined(String optionName)
optionName - the name
true if the name is defined; false otherwise
public static boolean isValidValue(String optionName,
String value)
throws UndefinedOptionException
optionName - option namevalue - the value as a String
true if the value is valid; false otherwise
UndefinedOptionException - if the name is not recognizedpublic static Iterable<String> getNames()
public static String getActiveRuntimExpr(String name,
String value)
throws UndefinedOptionException
name - option namevalue - option value
UndefinedOptionException - if the name is not recognized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||