Package org.dellroad.jc.cgen

Classes used for JC's method of ELF object file generation by converting Java class files into C language source and header files and compiling them with GCC.

See:
          Description

Interface Summary
CodeGenerator Interface for objects that can generate C source code and header files that conform to the JC C source file standard.
Constants Constants that define the sizes of certain automatically generated hash tables used by generated C code.
MethodOptimizer Interface for optimizing the Jimple code associated with a method.
 

Class Summary
ActiveUseCheckStmt Jimple statement that represents a class initialization check.
C Utility routines for generating C code.
CExpr Class for assembling C language expressions and outputting them as C code.
CFile Represents a C source file being constructed from a Java class file.
ClassConstant Hack for representing class constants, which Soot doesn't yet support.
CMethod Implements JC's C code generation algorithm for implementing Java methods.
CodeWriter Extension of PrintWriter that contains methods useful for generating and formatting C source files.
CStmtSwitch Converts Jimple statements into C statements.
CValueSwitch Converts Jimple expressions into C expressions.
DefaultMethodOptimizer Method optimizer that does a few things beyond the normal Soot stuff: Convert virtual method invocations to nonvirtual invocations when the target method is final.
HFile Represents a C header file being constructed from a Java class file.
JCObjectGenerator The default JC object file generator class.
NullCheckStmt Jimple statement that represents a null pointer check.
SootCodeGenerator JC's default source file generator.
SourceFile Represents a Java class file being converted into C source and/or header files.
SourceLocator Implementation of Soot's SourceLocator interface used by the SootCodeGenerator class.
StmtTagCopierSwitch Copies tags from Jimple Stmt's to ValueBoxes.
Util Various utility stuff used when analyzing class files and generating code.
Util.OrderTypeSwitch Utility class that computes ordering preference in a C structure of the various types.
Util.PrimTypeSwitch Utility class that passes the appropriate string ("byte", "char", etc.) to the prim() method depending on the primitive type.
 

Package org.dellroad.jc.cgen Description

Classes used for JC's method of ELF object file generation by converting Java class files into C language source and header files and compiling them with GCC.