mjc

org.multijava.util.guigen
Class DefinitionFile

java.lang.Object
  extended byorg.multijava.util.guigen.DefinitionFile

class DefinitionFile
extends Object


Field Summary
private  ArrayList acceptedSuffixes
           
private  ArrayList imports
           
private  String packageName
           
private  String prefix
           
private  String readableFiles
           
private  String sourceFile
           
private  String webpageLocation
           
private  String webpageName
           
 
Constructor Summary
DefinitionFile(String sourceFile, String packageName, ArrayList imports, String prefix, String readableFiles, String webpageName, String webpageLocation, ArrayList acceptedSuffixes)
          Constructs a definition file
 
Method Summary
 String getClassName()
          Returns the class 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
private static String trail(String s)
          Strips the leading and trailing quotes from a string
private static ArrayList trailList(ArrayList list)
          Strips the leading and trailing quotes from an ArrayList of strings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceFile

private final String sourceFile

packageName

private final String packageName

imports

private final ArrayList imports

prefix

private final String prefix

readableFiles

private final String readableFiles

webpageName

private final String webpageName

webpageLocation

private final String webpageLocation

acceptedSuffixes

private final ArrayList acceptedSuffixes
Constructor Detail

DefinitionFile

public DefinitionFile(String sourceFile,
                      String packageName,
                      ArrayList imports,
                      String prefix,
                      String readableFiles,
                      String webpageName,
                      String webpageLocation,
                      ArrayList acceptedSuffixes)
Constructs a definition file

Method Detail

trail

private static final String trail(String s)
Strips the leading and trailing quotes from a string


trailList

private static final ArrayList trailList(ArrayList list)
Strips the leading and trailing quotes from an ArrayList of strings


read

public static DefinitionFile read(String sourceFile)
                           throws GuigenError
Reads and parses an token definition file

Parameters:
sourceFile - the name of the source file
Returns:
a class info structure holding the information from the source
Throws:
GuigenError

printFile

public void printFile(PrintWriter out)
Prints the token definition to interface file (java)

Parameters:
out - the output stream

getClassName

public String getClassName()
Returns the class name


getPackageName

public String getPackageName()
Returns the package name


getPrefix

public String getPrefix()
Returns the literal prefix


mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.