|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.msggen.DefinitionFile
| Field Summary | |
private static String |
DEFAULT_PREFIX
|
private MessageDefinition[] |
definitions
|
private String |
packageName
|
private String |
prefix
|
private String |
sourceFile
|
| Constructor Summary | |
DefinitionFile(String sourceFile,
String packageName,
String prefix,
ArrayList definitions)
Constructs a token definition file |
|
| Method Summary | |
void |
checkIdentifiers(Hashtable identifiers)
Check for duplicate identifiers |
String |
getClassName()
Returns the package name |
String |
getPackageName()
Returns the package name |
String |
getPrefix()
Returns the literal prefix |
void |
printFile(PrintWriter out)
Prints the token definition to interface file (java) |
static DefinitionFile |
read(String sourceFile)
Reads and parses an token definition file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final String DEFAULT_PREFIX
private final String sourceFile
private final String packageName
private final String prefix
private final MessageDefinition[] definitions
| Constructor Detail |
public DefinitionFile(String sourceFile,
String packageName,
String prefix,
ArrayList definitions)
| Method Detail |
public static DefinitionFile read(String sourceFile)
throws MsggenError
sourceFile - the name of the source file
MsggenError
public void checkIdentifiers(Hashtable identifiers)
throws MsggenError
identifiers - a table of all token identifiers
MsggenErrorpublic void printFile(PrintWriter out)
out - the output streampublic String getClassName()
public String getPackageName()
public String getPrefix()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||