org.dellroad.jc.cgen
Class HFile

java.lang.Object
  extended byorg.dellroad.jc.cgen.SourceFile
      extended byorg.dellroad.jc.cgen.HFile
All Implemented Interfaces:
Constants

public class HFile
extends SourceFile

Represents a C header file being constructed from a Java class file.


Field Summary
protected  String includeProtector
           
 
Fields inherited from class org.dellroad.jc.cgen.SourceFile
c, cname, constructors, hasStaticInitializer, innerClasses, numVirtualRefFields, out, outerClass, prefix, sourceFile, staticFields, staticMethods, superclasses, virtualFields, virtualMethods
 
Fields inherited from interface org.dellroad.jc.cgen.Constants
IMETHOD_HASHSIZE, INSTANCEOF_HASHSIZE
 
Constructor Summary
HFile(SootClass c, Writer out)
           
 
Method Summary
 void output()
          Output the C header file.
 void outputClassInfoDecl()
           
 void outputFinalStuff()
           
 void outputForwardDecls()
           
 void outputInitialStuff()
           
 void outputMethodDeclarations()
           
 void outputObject()
           
 void outputStaticFieldStructure()
           
 void outputTypedefs()
           
 void outputVirtualMethodStructure()
           
 void outputVtable()
           
 void outputVtype()
           
 
Methods inherited from class org.dellroad.jc.cgen.SourceFile
include, include, outputBanner, outputCommentLine, outputInitialStuff, spaceFillTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

includeProtector

protected String includeProtector
Constructor Detail

HFile

public HFile(SootClass c,
             Writer out)
Method Detail

output

public void output()
Output the C header file.

Specified by:
output in class SourceFile

outputInitialStuff

public void outputInitialStuff()

outputFinalStuff

public void outputFinalStuff()
Overrides:
outputFinalStuff in class SourceFile

outputForwardDecls

public void outputForwardDecls()

outputTypedefs

public void outputTypedefs()

outputStaticFieldStructure

public void outputStaticFieldStructure()

outputMethodDeclarations

public void outputMethodDeclarations()

outputVirtualMethodStructure

public void outputVirtualMethodStructure()

outputVtable

public void outputVtable()

outputVtype

public void outputVtype()

outputObject

public void outputObject()

outputClassInfoDecl

public void outputClassInfoDecl()