br.shob.compiler
Class Compiler

java.lang.Object
  |
  +--br.shob.compiler.Compiler

public class Compiler
extends Object

Description of the Class

Author:
crolmos, dukejeffrie
Created:
July 2, 2002

Field Summary
static String compilerVersion
          Description of the Field
 
Constructor Summary
Compiler(Document document)
          Constructor for the Compiler object
 
Method Summary
static String getDisplayName(Class c)
          Gets the displayName attribute of the Compiler class
static String getInternalName(Class c)
          Gets the internalName attribute of the Compiler class
static String getParameter(Class c, String paramName)
          Gets the parameter attribute of the Compiler class
static String getReturn(Class c, String resultName)
          Gets the return attribute of the Compiler class
static void help(boolean show)
          Description of the Method
static void help(String[] args)
          Description of the Method
static FileInputStream loadClassFile(String[] args)
          Description of the Method
static InputStream loadXMLFile(String[] args)
          Description of the Method
static void main(String[] args)
          Description of the Method
static String removeSpaces(String str)
          Description of the Method
 void writeClass(Class c)
          Description of the Method
 void writeClass(PrintStream out, Class c)
          Description of the Method
 void writeMethod(PrintStream out, Method method, Element el)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compilerVersion

public static final String compilerVersion
Description of the Field

See Also:
Constant Field Values
Constructor Detail

Compiler

public Compiler(Document document)
Constructor for the Compiler object

Parameters:
document - Description of the Parameter
Method Detail

getDisplayName

public static String getDisplayName(Class c)
Gets the displayName attribute of the Compiler class

Parameters:
c - Description of the Parameter
Returns:
The displayName value

getInternalName

public static String getInternalName(Class c)
Gets the internalName attribute of the Compiler class

Parameters:
c - Description of the Parameter
Returns:
The internalName value

getParameter

public static String getParameter(Class c,
                                  String paramName)
Gets the parameter attribute of the Compiler class

Parameters:
c - Description of the Parameter
paramName - Description of the Parameter
Returns:
The parameter value

getReturn

public static String getReturn(Class c,
                               String resultName)
Gets the return attribute of the Compiler class

Parameters:
c - Description of the Parameter
resultName - Description of the Parameter
Returns:
The return value

help

public static void help(String[] args)
Description of the Method

Parameters:
args - Description of the Parameter

help

public static void help(boolean show)
Description of the Method

Parameters:
show - Description of the Parameter

loadClassFile

public static FileInputStream loadClassFile(String[] args)
                                     throws FileNotFoundException
Description of the Method

Parameters:
args - Description of the Parameter
Returns:
Description of the Return Value
Throws:
FileNotFoundException - Description of the Exception

loadXMLFile

public static InputStream loadXMLFile(String[] args)
                               throws FileNotFoundException
Description of the Method

Parameters:
args - Description of the Parameter
Returns:
Description of the Return Value
Throws:
FileNotFoundException - Description of the Exception

main

public static final void main(String[] args)
Description of the Method

Parameters:
args - Description of the Parameter

removeSpaces

public static String removeSpaces(String str)
Description of the Method

Parameters:
str - Description of the Parameter
Returns:
Description of the Return Value

writeClass

public void writeClass(PrintStream out,
                       Class c)
                throws NotSerializableException,
                       ShobException
Description of the Method

Parameters:
out - Description of the Parameter
c - Description of the Parameter
Throws:
NotSerializableException - Description of the Exception
ShobException

writeClass

public void writeClass(Class c)
                throws FileNotFoundException,
                       NotSerializableException,
                       ShobException
Description of the Method

Parameters:
c - Description of the Parameter
Throws:
FileNotFoundException - Description of the Exception
NotSerializableException - Description of the Exception
ShobException

writeMethod

public void writeMethod(PrintStream out,
                        Method method,
                        Element el)
                 throws InvalidModifierException
Description of the Method

Parameters:
out - Description of the Parameter
method - Description of the Parameter
el - Description of the Parameter
Throws:
InvalidModifierException - Description of the Exception