|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectLiteralFileReader
public class LiteralFileReader extends Object
Reads a file specifying literal values to use during generation. Method parse(String) takes as input the name of a text file. The text file should contain one or more records of the form:
START CLASSLITERALS CLASSNAME classname LITERALS type:value ... type:value END CLASSLITERALSCapitalized text must appear literally. Lowercase text is as follows:
PrimitiveOrStringOrNullDecl.parse(String).
| Constructor and Description |
|---|
LiteralFileReader()
|
| Modifier and Type | Method and Description |
|---|---|
static MultiMap<Class<?>,PrimitiveOrStringOrNullDecl> |
parse(String inFile)
Returns a map from class to list of constants. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LiteralFileReader()
| Method Detail |
|---|
public static MultiMap<Class<?>,PrimitiveOrStringOrNullDecl> parse(String inFile)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||