openjava.ojc
Class ExprCompiler

java.lang.Object
  |
  +--openjava.ojc.ExprCompiler

public class ExprCompiler
extends Object


Field Summary
(package private)  CompilationUnit[] added_cu
           
(package private)  CommandArguments arguments
           
(package private)  CompilationUnit[] comp_unit
           
(package private)  FileEnvironment[] file_env
           
(package private)  File[] files
           
(package private)  JavaCompiler java_compiler
           
 
Constructor Summary
(package private) ExprCompiler(CommandArguments arguments)
           
 
Method Summary
private static String baseName(File file)
           
(package private) static long calculateTime(long total, long time)
           
private static String class2path(String cname)
           
(package private)  void generateAdditionalCompilationUnit()
           
(package private)  void generateParseTree(FileEnvironment[] file_env, CompilationUnit[] comp_unit)
           
private  File getOutputFile(File fin, CompilationUnit comp_unit, String suffix)
           
private  File getOutputFile(File fin, String pack, String name, String suffix)
           
(package private)  void initDebug()
           
(package private)  void initParseTree(FileEnvironment[] file_env, CompilationUnit[] comp_unit)
           
private  void javac(FileEnvironment[] fenv, CompilationUnit[] comp_unit)
          Compiles the generated files into byte codes
private static FileEnvironment makeFileEnvironment(CompilationUnit comp_unit)
           
private  OJClass makeOJClass(Environment env, ClassDeclaration cdecl)
           
(package private)  void outputToDebugFile(FileEnvironment[] fenv, CompilationUnit[] comp_unit, String suffix)
           
(package private)  void outputToFile(FileEnvironment[] fenv, CompilationUnit[] comp_unit)
           
private static CompilationUnit parse(File file)
           
private static void recordInnerClasses(OJClass c)
           
private  void resolveOrder(OJClass clazz)
           
 void run()
           
(package private)  void translateCalleeSide(FileEnvironment[] file_env, CompilationUnit[] comp_unit)
           
(package private)  void translateCallerSide(FileEnvironment[] file_env, CompilationUnit[] comp_unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

arguments

CommandArguments arguments

files

File[] files

java_compiler

JavaCompiler java_compiler

added_cu

CompilationUnit[] added_cu

file_env

FileEnvironment[] file_env

comp_unit

CompilationUnit[] comp_unit
Constructor Detail

ExprCompiler

ExprCompiler(CommandArguments arguments)
Method Detail

run

public void run()

calculateTime

static long calculateTime(long total,
                          long time)

generateParseTree

void generateParseTree(FileEnvironment[] file_env,
                       CompilationUnit[] comp_unit)

recordInnerClasses

private static void recordInnerClasses(OJClass c)

generateAdditionalCompilationUnit

void generateAdditionalCompilationUnit()

makeOJClass

private OJClass makeOJClass(Environment env,
                            ClassDeclaration cdecl)

initDebug

void initDebug()

outputToDebugFile

void outputToDebugFile(FileEnvironment[] fenv,
                       CompilationUnit[] comp_unit,
                       String suffix)

outputToFile

void outputToFile(FileEnvironment[] fenv,
                  CompilationUnit[] comp_unit)

class2path

private static final String class2path(String cname)

getOutputFile

private File getOutputFile(File fin,
                           CompilationUnit comp_unit,
                           String suffix)
                    throws ParseTreeException
ParseTreeException

getOutputFile

private File getOutputFile(File fin,
                           String pack,
                           String name,
                           String suffix)

baseName

private static String baseName(File file)

initParseTree

void initParseTree(FileEnvironment[] file_env,
                   CompilationUnit[] comp_unit)

translateCalleeSide

void translateCalleeSide(FileEnvironment[] file_env,
                         CompilationUnit[] comp_unit)

resolveOrder

private void resolveOrder(OJClass clazz)
                   throws InterruptedException
InterruptedException

translateCallerSide

void translateCallerSide(FileEnvironment[] file_env,
                         CompilationUnit[] comp_unit)

parse

private static CompilationUnit parse(File file)

makeFileEnvironment

private static FileEnvironment makeFileEnvironment(CompilationUnit comp_unit)
                                            throws ParseTreeException
ParseTreeException

javac

private void javac(FileEnvironment[] fenv,
                   CompilationUnit[] comp_unit)
Compiles the generated files into byte codes


SourceForge.net_Logo