A B C D E F G H I J K L M N O P R S T U V W X _

A

ACC_SUPER - Static variable in class org.dellroad.jc.cgen.Util
 
ADD - Static variable in class org.dellroad.jc.cgen.CExpr
 
ADDRESS_OF - Static variable in class org.dellroad.jc.cgen.CExpr
 
AND - Static variable in class org.dellroad.jc.cgen.CExpr
 
ARRAYINDEX - Static variable in class org.dellroad.jc.cgen.CExpr
 
ARROW - Static variable in class org.dellroad.jc.cgen.CExpr
 
ATOMIC - Static variable in class org.dellroad.jc.cgen.CExpr
 
ActiveUseAnalysis - class org.dellroad.jc.cgen.analysis.ActiveUseAnalysis.
Analysis used by ActiveUseTagger.
ActiveUseAnalysis(Body) - Constructor for class org.dellroad.jc.cgen.analysis.ActiveUseAnalysis
Equivalent to ActiveUseAnalysis(new CompleteUnitGraph(body)).
ActiveUseAnalysis(UnitGraph) - Constructor for class org.dellroad.jc.cgen.analysis.ActiveUseAnalysis
Do active use analysis on body using the supplied unit graph.
ActiveUseCheckStmt - class org.dellroad.jc.cgen.ActiveUseCheckStmt.
Jimple statement that represents a class initialization check.
ActiveUseCheckStmt(SootClass) - Constructor for class org.dellroad.jc.cgen.ActiveUseCheckStmt
 
ActiveUseTag - class org.dellroad.jc.cgen.analysis.ActiveUseTag.
Tag for ``first active use'' class initialization checks.
ActiveUseTag(boolean) - Constructor for class org.dellroad.jc.cgen.analysis.ActiveUseTag
 
ActiveUseTagger - class org.dellroad.jc.cgen.analysis.ActiveUseTagger.
Tags static field and method references which are known to not be the first ``active use'' of the associated class, and so for which it is not necessary to check if the class needs to be initialized.
ActiveUseTagger(Body) - Constructor for class org.dellroad.jc.cgen.analysis.ActiveUseTagger
 
ActiveUseTagger(UnitGraph) - Constructor for class org.dellroad.jc.cgen.analysis.ActiveUseTagger
 
ActiveUseValueSwitch - class org.dellroad.jc.cgen.analysis.ActiveUseValueSwitch.
Determine the SootClass which will definitely be initialized after evaluating the value, if any.
ActiveUseValueSwitch() - Constructor for class org.dellroad.jc.cgen.analysis.ActiveUseValueSwitch
 
accessDefs(SootClass) - Static method in class org.dellroad.jc.cgen.C
 
accessDefs(SootField) - Static method in class org.dellroad.jc.cgen.C
 
accessDefs(SootMethod) - Static method in class org.dellroad.jc.cgen.C
 
accessDefs(int) - Static method in class org.dellroad.jc.cgen.C
 
addDependencies(Set, SootMethod) - Method in class org.dellroad.jc.cgen.CFile
Add all SootClasses to set that are referenced by the method signature, throws clause, locals, traps, or body instructions.
addDependency(Set, Type) - Method in class org.dellroad.jc.cgen.CFile
Add to set the SootClass associated with Type t, if any.
addSupertypes(SootClass, Set) - Static method in class org.dellroad.jc.cgen.Util
 
analyze(CompleteUnitGraph, int) - Static method in class org.dellroad.jc.cgen.escape.EscapeAnalysis
Find allocations of non-escaping objects.

B

BootstrapObjectGenerator - class org.dellroad.jc.BootstrapObjectGenerator.
Used to pre-generate ELF object files for classes that JC itself uses to generate ELF object files.

C

C - class org.dellroad.jc.cgen.C.
Utility routines for generating C code.
CAST - Static variable in class org.dellroad.jc.cgen.CExpr
 
CExpr - class org.dellroad.jc.cgen.CExpr.
Class for assembling C language expressions and outputting them as C code.
CExpr(String) - Constructor for class org.dellroad.jc.cgen.CExpr
Create an "atomic" C expression containing the given string.
CExpr(int, CExpr) - Constructor for class org.dellroad.jc.cgen.CExpr
Create a function invocation or unary C expression.
CExpr(int, CExpr, CExpr) - Constructor for class org.dellroad.jc.cgen.CExpr
Create a function invocation or binary C expression.
CExpr(int, CExpr, CExpr, CExpr) - Constructor for class org.dellroad.jc.cgen.CExpr
Create a function invocation or ternary C expression.
CExpr(int, Object) - Constructor for class org.dellroad.jc.cgen.CExpr
Create a function invocation or unary C expression.
CExpr(int, Object, Object) - Constructor for class org.dellroad.jc.cgen.CExpr
Create a function invocation or binary C expression.
CExpr(int, Object, Object, Object) - Constructor for class org.dellroad.jc.cgen.CExpr
Create a function invocation or ternary C expression.
CExpr(int, Object, Object, Object, Object) - Constructor for class org.dellroad.jc.cgen.CExpr
Create a function invocation.
CExpr(int, Collection) - Constructor for class org.dellroad.jc.cgen.CExpr
 
CExpr(int, Object[]) - Constructor for class org.dellroad.jc.cgen.CExpr
 
CFile - class org.dellroad.jc.cgen.CFile.
Represents a C source file being constructed from a Java class file.
CFile(SootClass, Writer, MethodOptimizer, boolean) - Constructor for class org.dellroad.jc.cgen.CFile
 
CMethod - class org.dellroad.jc.cgen.CMethod.
Implements JC's C code generation algorithm for implementing Java methods.
CMethod(CFile, SootMethod, MethodOptimizer, boolean, Set) - Constructor for class org.dellroad.jc.cgen.CMethod
 
COMPLEMENT - Static variable in class org.dellroad.jc.cgen.CExpr
 
CStmtSwitch - class org.dellroad.jc.cgen.CStmtSwitch.
Converts Jimple statements into C statements.
CStmtSwitch(CMethod) - Constructor for class org.dellroad.jc.cgen.CStmtSwitch
 
CValueSwitch - class org.dellroad.jc.cgen.CValueSwitch.
Converts Jimple expressions into C expressions.
CValueSwitch(CMethod, ValueBox) - Constructor for class org.dellroad.jc.cgen.CValueSwitch
 
ClassConstant - class org.dellroad.jc.cgen.ClassConstant.
Hack for representing class constants, which Soot doesn't yet support.
ClassfileFinder - interface org.dellroad.jc.ClassfileFinder.
Represents objects capable of retrieving class files.
CodeGenerator - interface org.dellroad.jc.cgen.CodeGenerator.
Interface for objects that can generate C source code and header files that conform to the JC C source file standard.
CodeWriter - class org.dellroad.jc.cgen.CodeWriter.
Extension of PrintWriter that contains methods useful for generating and formatting C source files.
CodeWriter(Writer) - Constructor for class org.dellroad.jc.cgen.CodeWriter
Constructor.
CodeWriter(Writer, int) - Constructor for class org.dellroad.jc.cgen.CodeWriter
Constructor.
Constants - interface org.dellroad.jc.cgen.Constants.
Constants that define the sizes of certain automatically generated hash tables used by generated C code.
c - Variable in class org.dellroad.jc.cgen.SourceFile
 
cFile(String, int) - Method in class org.dellroad.jc.cgen.JCObjectGenerator
Return the file that contains the C source code for the class.
canFollow(Unit, Unit) - Method in class org.dellroad.jc.cgen.analysis.FollowsAnalysis
Determine if after can execute after before.
caseAddExpr(AddExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseAndExpr(AndExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseArrayRef(ArrayRef) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseAssignStmt(AssignStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseAssignStmt(AssignStmt) - Method in class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
caseAssignStmt(AssignStmt) - Method in class org.dellroad.jc.cgen.escape.EscapingStmtSwitch
 
caseBooleanType(BooleanType) - Method in class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
caseBooleanType(BooleanType) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
caseBooleanType(BooleanType) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch
 
caseBreakpointStmt(BreakpointStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseByteType(ByteType) - Method in class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
caseByteType(ByteType) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
caseByteType(ByteType) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch
 
caseCastExpr(CastExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseCastExpr(CastExpr) - Method in class org.dellroad.jc.cgen.escape.EscapingValueSwitch
 
caseCaughtExceptionRef(CaughtExceptionRef) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseCharType(CharType) - Method in class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
caseCharType(CharType) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
caseCharType(CharType) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch
 
caseCmpExpr(CmpExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseCmpgExpr(CmpgExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseCmplExpr(CmplExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseDivExpr(DivExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseDoubleConstant(DoubleConstant) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseDoubleType(DoubleType) - Method in class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
caseDoubleType(DoubleType) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
caseDoubleType(DoubleType) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch
 
caseEnterMonitorStmt(EnterMonitorStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseEnterMonitorStmt(EnterMonitorStmt) - Method in class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
caseEqExpr(EqExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseExitMonitorStmt(ExitMonitorStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseExitMonitorStmt(ExitMonitorStmt) - Method in class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
caseFloatConstant(FloatConstant) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseFloatType(FloatType) - Method in class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
caseFloatType(FloatType) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
caseFloatType(FloatType) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch
 
caseGeExpr(GeExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseGotoStmt(GotoStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseGtExpr(GtExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseIdentityStmt(IdentityStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseIdentityStmt(IdentityStmt) - Method in class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
caseIfStmt(IfStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseIfStmt(IfStmt) - Method in class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
caseInstanceFieldRef(InstanceFieldRef) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseInstanceFieldRef(InstanceFieldRef) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseValueSwitch
 
caseInstanceOfExpr(InstanceOfExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseIntConstant(IntConstant) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseIntType(IntType) - Method in class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
caseIntType(IntType) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
caseIntType(IntType) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch
 
caseInterfaceInvokeExpr(InterfaceInvokeExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseInterfaceInvokeExpr(InterfaceInvokeExpr) - Method in class org.dellroad.jc.cgen.escape.EscapingValueSwitch
 
caseInvokeStmt(InvokeStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseInvokeStmt(InvokeStmt) - Method in class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
caseInvokeStmt(InvokeStmt) - Method in class org.dellroad.jc.cgen.escape.EscapingStmtSwitch
 
caseLeExpr(LeExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseLengthExpr(LengthExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseLocal(Local) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseLocal(Local) - Method in class org.dellroad.jc.cgen.escape.EscapingValueSwitch
 
caseLongConstant(LongConstant) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseLongType(LongType) - Method in class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
caseLongType(LongType) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
caseLongType(LongType) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch
 
caseLookupSwitchStmt(LookupSwitchStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseLookupSwitchStmt(LookupSwitchStmt) - Method in class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
caseLtExpr(LtExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseMulExpr(MulExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseNeExpr(NeExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseNegExpr(NegExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseNewArrayExpr(NewArrayExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseNewArrayExpr(NewArrayExpr) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector
 
caseNewExpr(NewExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseNewExpr(NewExpr) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseValueSwitch
 
caseNewExpr(NewExpr) - Method in class org.dellroad.jc.cgen.analysis.FinalizeDetector
 
caseNewExpr(NewExpr) - Method in class org.dellroad.jc.cgen.analysis.ReferenceDetector
 
caseNewExpr(NewExpr) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector
 
caseNewInvokeExpr(NewInvokeExpr) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseValueSwitch
 
caseNewMultiArrayExpr(NewMultiArrayExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseNewMultiArrayExpr(NewMultiArrayExpr) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector
 
caseNopStmt(NopStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseNullConstant(NullConstant) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseOrExpr(OrExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseParameterRef(ParameterRef) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseRemExpr(RemExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseRetStmt(RetStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseReturnStmt(ReturnStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseReturnStmt(ReturnStmt) - Method in class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
caseReturnStmt(ReturnStmt) - Method in class org.dellroad.jc.cgen.escape.EscapingStmtSwitch
 
caseReturnVoidStmt(ReturnVoidStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseShlExpr(ShlExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseShortType(ShortType) - Method in class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
caseShortType(ShortType) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
caseShortType(ShortType) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch
 
caseShrExpr(ShrExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseSpecialInvokeExpr(SpecialInvokeExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseSpecialInvokeExpr(SpecialInvokeExpr) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseValueSwitch
 
caseSpecialInvokeExpr(SpecialInvokeExpr) - Method in class org.dellroad.jc.cgen.escape.EscapingValueSwitch
 
caseStaticFieldRef(StaticFieldRef) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseStaticFieldRef(StaticFieldRef) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseValueSwitch
 
caseStaticInvokeExpr(StaticInvokeExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseStaticInvokeExpr(StaticInvokeExpr) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseValueSwitch
 
caseStaticInvokeExpr(StaticInvokeExpr) - Method in class org.dellroad.jc.cgen.escape.EscapingValueSwitch
 
caseStringConstant(StringConstant) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseSubExpr(SubExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseTableSwitchStmt(TableSwitchStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseTableSwitchStmt(TableSwitchStmt) - Method in class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
caseThisRef(ThisRef) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseThrowStmt(ThrowStmt) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
caseThrowStmt(ThrowStmt) - Method in class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
caseThrowStmt(ThrowStmt) - Method in class org.dellroad.jc.cgen.escape.EscapingStmtSwitch
 
caseUshrExpr(UshrExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseVirtualInvokeExpr(VirtualInvokeExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
caseVirtualInvokeExpr(VirtualInvokeExpr) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseValueSwitch
 
caseVirtualInvokeExpr(VirtualInvokeExpr) - Method in class org.dellroad.jc.cgen.escape.EscapingValueSwitch
 
caseVoidType(VoidType) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
caseXorExpr(XorExpr) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
classComparator - Static variable in class org.dellroad.jc.cgen.Util
Sorts classes by their names' UTF-8 encoding.
classHash(SootClass) - Static method in class org.dellroad.jc.cgen.Util
 
cname - Variable in class org.dellroad.jc.cgen.SourceFile
 
constructors - Variable in class org.dellroad.jc.cgen.SourceFile
 
copy(Object, Object) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseAnalysis
 
copy(Object, Object) - Method in class org.dellroad.jc.cgen.analysis.FollowsAnalysis
 
current() - Static method in class org.dellroad.jc.cgen.CMethod
 

D

DEREFERENCE - Static variable in class org.dellroad.jc.cgen.CExpr
 
DIVIDE - Static variable in class org.dellroad.jc.cgen.CExpr
 
DefaultMethodOptimizer - class org.dellroad.jc.cgen.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.
DefaultMethodOptimizer() - Constructor for class org.dellroad.jc.cgen.DefaultMethodOptimizer
 
decode(String) - Static method in class org.dellroad.jc.Generate
Reverse of Generate.encode(java.lang.String).
defaultCase(Object) - Method in class org.dellroad.jc.cgen.CStmtSwitch
 
defaultCase(Object) - Method in class org.dellroad.jc.cgen.CValueSwitch
 
defaultCase(Type) - Method in class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
defaultCase(Type) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
defaultCase(Object) - Method in class org.dellroad.jc.cgen.analysis.FinalizeDetector
 
defaultCase(Object) - Method in class org.dellroad.jc.cgen.analysis.ReferenceDetector
 
defaultCase(Object) - Method in class org.dellroad.jc.cgen.escape.EscapingStmtSwitch
 
defaultCase(Object) - Method in class org.dellroad.jc.cgen.escape.EscapingValueSwitch
 
defaultCase(Type) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch
 
defaultCase(Object) - Method in class org.dellroad.jc.cgen.escape.KnownSizeDetector
 
doIndent() - Method in class org.dellroad.jc.cgen.CodeWriter
Output enough tabs and spaces to achieve current indentation.
dumpOps(int) - Method in class org.dellroad.jc.cgen.CExpr
 

E

EQUAL - Static variable in class org.dellroad.jc.cgen.CExpr
 
EscapeAnalysis - class org.dellroad.jc.cgen.escape.EscapeAnalysis.
Class that performs escape analysis to determine objects that may be allocated on the stack (instead of the heap).
EscapingStmtSwitch - class org.dellroad.jc.cgen.escape.EscapingStmtSwitch.
Checks for statements where the local can escape.
EscapingStmtSwitch() - Constructor for class org.dellroad.jc.cgen.escape.EscapingStmtSwitch
 
EscapingValueSwitch - class org.dellroad.jc.cgen.escape.EscapingValueSwitch.
Checks for values where the local can escape.
EscapingValueSwitch() - Constructor for class org.dellroad.jc.cgen.escape.EscapingValueSwitch
 
encode(String) - Static method in class org.dellroad.jc.Generate
Equivalent to encode(name, false).
encode(String, boolean) - Static method in class org.dellroad.jc.Generate
Encode a name so that it uses only "safe" 7-bit characters so that it's suitable for use as a file name.
encode(String) - Static method in class org.dellroad.jc.cgen.C
 
encode(String, boolean) - Static method in class org.dellroad.jc.cgen.C
 
entryInitialFlow() - Method in class org.dellroad.jc.cgen.analysis.ActiveUseAnalysis
 
entryInitialFlow() - Method in class org.dellroad.jc.cgen.analysis.FollowsAnalysis
 

F

FILE_SEPARATOR - Static variable in class org.dellroad.jc.Generate
The system-dependent character used to separate directory names in a path name.
FUNCTION - Static variable in class org.dellroad.jc.cgen.CExpr
 
FinalizeDetector - class org.dellroad.jc.cgen.analysis.FinalizeDetector.
Instance of this class detect 'new' expressions of objects that override finalize().
FinalizeDetector() - Constructor for class org.dellroad.jc.cgen.analysis.FinalizeDetector
 
FollowsAnalysis - class org.dellroad.jc.cgen.analysis.FollowsAnalysis.
Analysis that determines which statements can be executed after which other statements.
FollowsAnalysis(Body) - Constructor for class org.dellroad.jc.cgen.analysis.FollowsAnalysis
 
FollowsAnalysis(CompleteUnitGraph) - Constructor for class org.dellroad.jc.cgen.analysis.FollowsAnalysis
 
fieldComparator - Static variable in class org.dellroad.jc.cgen.Util
Sorts fields by staticness, basic type, name, then signature.
fieldDescriptor(Type) - Static method in class org.dellroad.jc.cgen.Util
 
finalize() - Method in class org.dellroad.jc.SearchpathFinder
 
findMethod(SootClass, String) - Static method in class org.dellroad.jc.cgen.Util
Find a method declared by a SootClass or any of its superclasses.
flowThrough(Object, Object, Object) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseAnalysis
 
flowThrough(Object, Object, Object) - Method in class org.dellroad.jc.cgen.analysis.FollowsAnalysis
 
fullSignature(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 

G

GE - Static variable in class org.dellroad.jc.cgen.CExpr
 
GT - Static variable in class org.dellroad.jc.cgen.CExpr
 
Generate - class org.dellroad.jc.Generate.
Singleton class used as the starting point for object file generation.
genC(String, OutputStream) - Method in class org.dellroad.jc.cgen.SootCodeGenerator
Generate the C source file for the class using the Soot framework.
genH(String, OutputStream) - Method in class org.dellroad.jc.cgen.SootCodeGenerator
Generate the C header file for the class using the Soot framework.
generateC(String, ClassfileFinder, OutputStream) - Method in interface org.dellroad.jc.cgen.CodeGenerator
Generate the C source file for the given class.
generateC(String, ClassfileFinder, OutputStream) - Method in class org.dellroad.jc.cgen.SootCodeGenerator
Wrapper for genC() that handles properly configuring Soot to find class files.
generateH(String, ClassfileFinder, OutputStream) - Method in interface org.dellroad.jc.cgen.CodeGenerator
Generate the C header file for the given class.
generateH(String, ClassfileFinder, OutputStream) - Method in class org.dellroad.jc.cgen.SootCodeGenerator
Wrapper for genH() that handles properly configuring Soot to find class files.
generateObject(String, ClassLoader) - Method in class org.dellroad.jc.Generate
Generate the ELF object file for the named class.
generateObject(String, ClassfileFinder, File) - Method in interface org.dellroad.jc.ObjectGenerator
Generate the ELF object file for the named class and write it into the file.
generateObject(String, ClassfileFinder, File) - Method in class org.dellroad.jc.cgen.JCObjectGenerator
Generate object file using analysis via Soot.
getAllInterfaces(SootClass) - Static method in class org.dellroad.jc.cgen.Util
 
getAllSupertypes(SootClass) - Static method in class org.dellroad.jc.cgen.Util
 
getAnalysis() - Method in class org.dellroad.jc.cgen.analysis.ActiveUseTagger
 
getClassName(StringConstant) - Static method in class org.dellroad.jc.cgen.ClassConstant
 
getClassfile(String) - Method in interface org.dellroad.jc.ClassfileFinder
Retrieve the class file that is used to define the named class.
getClassfile(String) - Method in class org.dellroad.jc.JCFinder
 
getClassfile(String) - Method in class org.dellroad.jc.SearchpathFinder
 
getClassfileHash(String) - Method in interface org.dellroad.jc.ClassfileFinder
Return the hash of the bytes that would be returned by getClassfile() with the same arguments.
getClassfileHash(String) - Method in class org.dellroad.jc.JCFinder
 
getClassfileHash(String) - Method in class org.dellroad.jc.SearchpathFinder
 
getExactType(Local, Unit) - Method in class org.dellroad.jc.cgen.analysis.TypeAnalysis
Return the exact type of the reference local def if it's a reference type and the Java class is known exactly, else null.
getId() - Method in class org.dellroad.jc.cgen.escape.StackAllocTag
 
getIndent() - Method in class org.dellroad.jc.cgen.CodeWriter
Get the current indentation level.
getInitialValue(SootField) - Method in class org.dellroad.jc.cgen.CFile
 
getInputStreamOf(String) - Method in class org.dellroad.jc.cgen.SourceLocator
Retrieve the classfile contents for the named class, as loaded by the ClassLoader associated with this object.
getLocal() - Method in class org.dellroad.jc.cgen.escape.EscapingStmtSwitch
 
getLocal() - Method in class org.dellroad.jc.cgen.escape.EscapingValueSwitch
 
getName() - Method in class org.dellroad.jc.cgen.analysis.ActiveUseTag
 
getName() - Method in class org.dellroad.jc.cgen.escape.StackAllocTag
 
getNullCheckMethod() - Static method in class org.dellroad.jc.cgen.NullCheckStmt
 
getNullCheckValue() - Method in class org.dellroad.jc.cgen.NullCheckStmt
 
getPath() - Method in class org.dellroad.jc.SearchpathFinder
Returns the constructor's argument.
getPathArray() - Method in class org.dellroad.jc.SearchpathFinder
Returns the path split out into individual components.
getSootClass(Stmt) - Static method in class org.dellroad.jc.cgen.ActiveUseCheckStmt
 
getValue() - Method in class org.dellroad.jc.cgen.analysis.ActiveUseTag
 
getValue() - Method in class org.dellroad.jc.cgen.escape.StackAllocTag
 

H

HFile - class org.dellroad.jc.cgen.HFile.
Represents a C header file being constructed from a Java class file.
HFile(SootClass, Writer) - Constructor for class org.dellroad.jc.cgen.HFile
 
hFile(String, int) - Method in class org.dellroad.jc.cgen.JCObjectGenerator
Return the file that contains the C header source for the class.
hasStaticInitializer - Variable in class org.dellroad.jc.cgen.SourceFile
 
hasSubtypes(SootClass) - Static method in class org.dellroad.jc.cgen.Util
 
hasSubtypes(SootField) - Static method in class org.dellroad.jc.cgen.Util
 
hasSubtypes(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 
hasSubtypes(Type) - Static method in class org.dellroad.jc.cgen.Util
 
hash(InputStream) - Static method in class org.dellroad.jc.Generate
Return the "JC hash" of some bytes.
hash(String) - Static method in class org.dellroad.jc.cgen.Util
 

I

IMETHOD_HASHSIZE - Static variable in interface org.dellroad.jc.cgen.Constants
Size of interface method lookup hash tables and ``quick'' interface method lookup tables.
INLINE_VERBOSE - Static variable in class org.dellroad.jc.cgen.DefaultMethodOptimizer
 
INSTANCEOF_HASHSIZE - Static variable in interface org.dellroad.jc.cgen.Constants
Size of instanceof hash tables.
imethodHash(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
Get the interface method hash table hash.
include(String) - Static method in class org.dellroad.jc.cgen.C
 
include(String) - Method in class org.dellroad.jc.cgen.SourceFile
 
include(SootClass) - Method in class org.dellroad.jc.cgen.SourceFile
 
includeProtector - Variable in class org.dellroad.jc.cgen.HFile
 
includeStringName - Static variable in class org.dellroad.jc.cgen.CFile
 
indent - Variable in class org.dellroad.jc.cgen.CodeWriter
 
indent() - Method in class org.dellroad.jc.cgen.CodeWriter
Increase the current indentation level by one.
indentLevel - Variable in class org.dellroad.jc.cgen.CodeWriter
 
innerClasses - Variable in class org.dellroad.jc.cgen.SourceFile
 
insertActiveUseCheck(PatchingChain, Stmt, SootClass) - Static method in class org.dellroad.jc.cgen.ActiveUseCheckStmt
 
insertNullCheck(PatchingChain, Stmt, Value) - Static method in class org.dellroad.jc.cgen.NullCheckStmt
 
instanceofHash(SootClass) - Static method in class org.dellroad.jc.cgen.Util
Get the instanceof hash table hash.
isActiveUseCheck(Stmt) - Static method in class org.dellroad.jc.cgen.ActiveUseCheckStmt
 
isBinary(int) - Static method in class org.dellroad.jc.cgen.CExpr
 
isCheckNeeded(Unit, SootClass) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseAnalysis
Determine if a first active use check for class cl would be needed before executing unit.
isCheckNeeded() - Method in class org.dellroad.jc.cgen.analysis.ActiveUseTag
 
isClassConstant(StringConstant) - Static method in class org.dellroad.jc.cgen.ClassConstant
 
isClassInit(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 
isConstructor(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 
isFinal(SootClass) - Static method in class org.dellroad.jc.cgen.Util
 
isFinal(SootField) - Static method in class org.dellroad.jc.cgen.Util
 
isFinal(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 
isNonvirtual(SpecialInvokeExpr, SootMethod) - Static method in class org.dellroad.jc.cgen.Util
Determine if an INVOKESPECIAL can be implemented like the old INVOKENONVIRTUAL.
isNullCheck(Stmt) - Static method in class org.dellroad.jc.cgen.NullCheckStmt
 
isPrimitive(Type) - Static method in class org.dellroad.jc.cgen.Util
 
isPrimitiveArray(Type) - Static method in class org.dellroad.jc.cgen.Util
 
isReference(SootClass) - Static method in class org.dellroad.jc.cgen.Util
 
isReference(SootField) - Static method in class org.dellroad.jc.cgen.Util
 
isReference(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 
isReference(Type) - Static method in class org.dellroad.jc.cgen.Util
Return whether type t is a reference type or not.
isTernary(int) - Static method in class org.dellroad.jc.cgen.CExpr
 
isUnary(int) - Static method in class org.dellroad.jc.cgen.CExpr
 
isVirtual(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 

J

JCFinder - class org.dellroad.jc.JCFinder.
Gateway into the JC virtual machine for retrieving class files.
JCFinder(ClassLoader) - Constructor for class org.dellroad.jc.JCFinder
Create a new finder that uses the given class loader to pull in not-before-seen class files as necessary.
JCObjectGenerator - class org.dellroad.jc.cgen.JCObjectGenerator.
The default JC object file generator class.
JCObjectGenerator() - Constructor for class org.dellroad.jc.cgen.JCObjectGenerator
Instantiate an object with an instance of SootCodeGenerator using a custom SourceLocator as the underlying source file generator, and use system properties to determine where source and object files go, whether to be verbose, and what MethodOptimizer to use.
JCObjectGenerator(CodeGenerator, String, boolean, boolean, boolean, boolean) - Constructor for class org.dellroad.jc.cgen.JCObjectGenerator
Instantiate an object using the supplied configuration.
JarLoader - class org.dellroad.jc.vm.JarLoader.
Helper class used to implement the "--jar" command line flag.
jc_type(Value) - Static method in class org.dellroad.jc.cgen.C
 
jc_type(Type) - Static method in class org.dellroad.jc.cgen.C
 

K

KnownSizeDetector - class org.dellroad.jc.cgen.escape.KnownSizeDetector.
Instances of this class detect 'new' expressions with a known instance size.
KnownSizeDetector() - Constructor for class org.dellroad.jc.cgen.escape.KnownSizeDetector
 
KnownSizeDetector.SizeTypeSwitch - class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch.
Computes the size in bytes of an instance of a type.
KnownSizeDetector.SizeTypeSwitch() - Constructor for class org.dellroad.jc.cgen.escape.KnownSizeDetector.SizeTypeSwitch
 

L

LE - Static variable in class org.dellroad.jc.cgen.CExpr
 
LOGICAL_AND - Static variable in class org.dellroad.jc.cgen.CExpr
 
LOGICAL_NOT - Static variable in class org.dellroad.jc.cgen.CExpr
 
LOGICAL_OR - Static variable in class org.dellroad.jc.cgen.CExpr
 
LT - Static variable in class org.dellroad.jc.cgen.CExpr
 
localComparator - Static variable in class org.dellroad.jc.cgen.Util
Sorts local variables by name.

M

MAX_CALLEE_SIZE - Static variable in class org.dellroad.jc.cgen.DefaultMethodOptimizer
 
MAX_CALLER_SIZE - Static variable in class org.dellroad.jc.cgen.DefaultMethodOptimizer
 
MAX_EXPANSION - Static variable in class org.dellroad.jc.cgen.DefaultMethodOptimizer
 
MAX_STACK_ALLOC - Static variable in class org.dellroad.jc.cgen.DefaultMethodOptimizer
 
MIN_CALLEE_SIZE - Static variable in class org.dellroad.jc.cgen.DefaultMethodOptimizer
 
MIN_CALLER_SIZE - Static variable in class org.dellroad.jc.cgen.DefaultMethodOptimizer
 
MODULO - Static variable in class org.dellroad.jc.cgen.CExpr
 
MULTIPLY - Static variable in class org.dellroad.jc.cgen.CExpr
 
MethodOptimizer - interface org.dellroad.jc.cgen.MethodOptimizer.
Interface for optimizing the Jimple code associated with a method.
main(String[]) - Static method in class org.dellroad.jc.BootstrapObjectGenerator
Generate JC ELF object files for one or more classes.
main(String[]) - Static method in class org.dellroad.jc.cgen.C
 
main(String[]) - Static method in class org.dellroad.jc.cgen.CExpr
Test method.
main(String[]) - Static method in class org.dellroad.jc.vm.JarLoader
Invoke the main class from a JAR file.
merge(Object, Object, Object) - Method in class org.dellroad.jc.cgen.analysis.ActiveUseAnalysis
 
merge(Object, Object, Object) - Method in class org.dellroad.jc.cgen.analysis.FollowsAnalysis
 
methodComparator - Static variable in class org.dellroad.jc.cgen.Util
Sorts methods by name, then by signature.

N

NEGATE - Static variable in class org.dellroad.jc.cgen.CExpr
 
NOT_EQUAL - Static variable in class org.dellroad.jc.cgen.CExpr
 
NUM_TYPES - Static variable in class org.dellroad.jc.cgen.CExpr
 
NullCheckStmt - class org.dellroad.jc.cgen.NullCheckStmt.
Jimple statement that represents a null pointer check.
NullCheckStmt(Value) - Constructor for class org.dellroad.jc.cgen.NullCheckStmt
 
name(SootClass) - Static method in class org.dellroad.jc.cgen.C
 
name(SootField) - Static method in class org.dellroad.jc.cgen.C
 
name(SootMethod) - Static method in class org.dellroad.jc.cgen.C
 
needIndent - Variable in class org.dellroad.jc.cgen.CodeWriter
 
newInitialFlow() - Method in class org.dellroad.jc.cgen.analysis.ActiveUseAnalysis
 
newInitialFlow() - Method in class org.dellroad.jc.cgen.analysis.FollowsAnalysis
 
numVirtualRefFields - Variable in class org.dellroad.jc.cgen.SourceFile
 

O

OBJECT_HEADER_SIZE - Static variable in class org.dellroad.jc.cgen.escape.KnownSizeDetector
 
OR - Static variable in class org.dellroad.jc.cgen.CExpr
 
ObjectGenerator - interface org.dellroad.jc.ObjectGenerator.
Interface implemented by classes that generate JC ELF object files from raw class files.
objectFile(String) - Static method in class org.dellroad.jc.Generate
Return the file that contains the ELF object for the class.
objectFile(String, File) - Static method in class org.dellroad.jc.Generate
Return the file that contains the ELF object for the class, given that dir is the root of the object directory hierarchy.
objectIsValid(String, ClassfileFinder, File) - Method in interface org.dellroad.jc.ObjectGenerator
Determine if an ELF object file is valid for the named class and all other classes (available through the provided finder) on which the object file may depend.
objectIsValid(String, ClassfileFinder, File) - Method in class org.dellroad.jc.cgen.JCObjectGenerator
 
optimize(SootMethod, Set) - Method in class org.dellroad.jc.cgen.DefaultMethodOptimizer
 
optimize(SootMethod, Set) - Method in interface org.dellroad.jc.cgen.MethodOptimizer
Optimize the given method's body.
order(int) - Method in class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
org.dellroad.jc - package org.dellroad.jc
Classes used for the generation of ELF objects corresponding to Java classes for the JC virtual machine.
org.dellroad.jc.cgen - 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.
org.dellroad.jc.cgen.analysis - package org.dellroad.jc.cgen.analysis
Classes used for general analysis.
org.dellroad.jc.cgen.escape - package org.dellroad.jc.cgen.escape
Classes used during escape analysis.
org.dellroad.jc.vm - package org.dellroad.jc.vm
Classes used internally by the JC virtual machine.
out - Variable in class org.dellroad.jc.cgen.SourceFile
 
outerClass - Variable in class org.dellroad.jc.cgen.SourceFile
 
output() - Method in class org.dellroad.jc.cgen.CFile
Output the C source file.
output() - Method in class org.dellroad.jc.cgen.HFile
Output the C header file.
output() - Method in class org.dellroad.jc.cgen.SourceFile
 
outputBanner(String) - Method in class org.dellroad.jc.cgen.SourceFile
 
outputClassInfo() - Method in class org.dellroad.jc.cgen.CFile
 
outputClassInfoDecl() - Method in class org.dellroad.jc.cgen.HFile
 
outputCommentLine(String) - Method in class org.dellroad.jc.cgen.SourceFile
 
outputDepedencyList() - Method in class org.dellroad.jc.cgen.CFile
 
outputField(SootField) - Method in class org.dellroad.jc.cgen.CFile
 
outputFieldList(SootField[], String, String) - Method in class org.dellroad.jc.cgen.CFile
 
outputFields() - Method in class org.dellroad.jc.cgen.CFile
 
outputFinalStuff() - Method in class org.dellroad.jc.cgen.HFile
 
outputFinalStuff() - Method in class org.dellroad.jc.cgen.SourceFile
 
outputForwardDecls() - Method in class org.dellroad.jc.cgen.HFile
 
outputInitialStuff() - Method in class org.dellroad.jc.cgen.CFile
 
outputInitialStuff() - Method in class org.dellroad.jc.cgen.HFile
 
outputInitialStuff(SootClass[], SootClass[], boolean) - Method in class org.dellroad.jc.cgen.SourceFile
 
outputInitialValue(SootField, ConstantValueTag) - Method in class org.dellroad.jc.cgen.CFile
 
outputInnerClases() - Method in class org.dellroad.jc.cgen.CFile
 
outputInstanceOfHashTable() - Method in class org.dellroad.jc.cgen.CFile
 
outputInterfaceHashTable() - Method in class org.dellroad.jc.cgen.CFile
 
outputInterfaceList() - Method in class org.dellroad.jc.cgen.CFile
 
outputInterfaceQuickTable() - Method in class org.dellroad.jc.cgen.CFile
 
outputMethod(SootMethod) - Method in class org.dellroad.jc.cgen.CFile
 
outputMethodDeclarations() - Method in class org.dellroad.jc.cgen.HFile
 
outputMethodFunction() - Method in class org.dellroad.jc.cgen.CMethod
 
outputMethodInfo() - Method in class org.dellroad.jc.cgen.CMethod
 
outputMethodList(SootMethod[], String, String) - Method in class org.dellroad.jc.cgen.CFile
 
outputMethods(SootMethod[]) - Method in class org.dellroad.jc.cgen.CFile
 
outputObject() - Method in class org.dellroad.jc.cgen.HFile
 
outputStaticFieldStructure() - Method in class org.dellroad.jc.cgen.CFile
 
outputStaticFieldStructure() - Method in class org.dellroad.jc.cgen.HFile
 
outputTypedefs() - Method in class org.dellroad.jc.cgen.HFile
 
outputVirtualMethodStructure() - Method in class org.dellroad.jc.cgen.HFile
 
outputVtable() - Method in class org.dellroad.jc.cgen.CFile
 
outputVtable() - Method in class org.dellroad.jc.cgen.HFile
 
outputVtype() - Method in class org.dellroad.jc.cgen.HFile
 

P

PATH_SEPARATOR - Static variable in class org.dellroad.jc.Generate
The system-dependent character used to separate individual paths in a search path.
panic(String) - Static method in class org.dellroad.jc.cgen.Util
 
paramTypes(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 
paramsDecl(SootMethod, boolean) - Static method in class org.dellroad.jc.cgen.C
 
parseHash(String) - Method in class org.dellroad.jc.cgen.JCObjectGenerator
Parse an unsigned 8 byte hex value.
prefix - Variable in class org.dellroad.jc.cgen.SourceFile
 
prepareDependencies() - Method in class org.dellroad.jc.cgen.CFile
Add dependencies on all classes that could, if changed, require this class's JC source file to be regenerated and/or recompiled.
prim(String) - Method in class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
primName(Type) - Static method in class org.dellroad.jc.cgen.C
 
println() - Method in class org.dellroad.jc.cgen.CodeWriter
 

R

REFERENCE_SIZE - Static variable in class org.dellroad.jc.cgen.escape.KnownSizeDetector
 
ReferenceDetector - class org.dellroad.jc.cgen.analysis.ReferenceDetector.
Instances of this class detect 'new' expressions of objects that subclass java.lang.ref.Reference.
ReferenceDetector() - Constructor for class org.dellroad.jc.cgen.analysis.ReferenceDetector
 
random(Random) - Static method in class org.dellroad.jc.cgen.CExpr
Generate a random C expression.
require(boolean) - Static method in class org.dellroad.jc.cgen.Util
 
require(boolean, String) - Static method in class org.dellroad.jc.cgen.Util
Poor man's assert().
reserved(String) - Static method in class org.dellroad.jc.cgen.C
Tells us whether the token is a reserved word that cannot be used in C source.
reset() - Method in class org.dellroad.jc.cgen.CMethod
Reset state.
reset() - Method in interface org.dellroad.jc.cgen.CodeGenerator
Reset state.
reset() - Method in class org.dellroad.jc.cgen.SootCodeGenerator
Reset Soot.

S

SHIFT_LEFT - Static variable in class org.dellroad.jc.cgen.CExpr
 
SHIFT_RIGHT - Static variable in class org.dellroad.jc.cgen.CExpr
 
SUBTRACT - Static variable in class org.dellroad.jc.cgen.CExpr
 
SearchpathFinder - class org.dellroad.jc.SearchpathFinder.
Implementation of ClassfileFinder used by the BootstrapObjectGenerator class for object file generation when another virtual machine besides JC must be used.
SearchpathFinder(String) - Constructor for class org.dellroad.jc.SearchpathFinder
Create a finder using the supplied classpath.
SootCodeGenerator - class org.dellroad.jc.cgen.SootCodeGenerator.
JC's default source file generator.
SootCodeGenerator(SourceLocator, MethodOptimizer, boolean) - Constructor for class org.dellroad.jc.cgen.SootCodeGenerator
Instantiate.
SourceFile - class org.dellroad.jc.cgen.SourceFile.
Represents a Java class file being converted into C source and/or header files.
SourceFile(SootClass, Writer) - Constructor for class org.dellroad.jc.cgen.SourceFile
 
SourceLocator - class org.dellroad.jc.cgen.SourceLocator.
Implementation of Soot's SourceLocator interface used by the SootCodeGenerator class.
SourceLocator(Singletons.Global) - Constructor for class org.dellroad.jc.cgen.SourceLocator
 
StackAllocTag - class org.dellroad.jc.cgen.escape.StackAllocTag.
Tag for stack-allocatable allocations.
StackAllocTag(int) - Constructor for class org.dellroad.jc.cgen.escape.StackAllocTag
 
StmtTagCopierSwitch - class org.dellroad.jc.cgen.StmtTagCopierSwitch.
Copies tags from Jimple Stmt's to ValueBoxes.
StmtTagCopierSwitch() - Constructor for class org.dellroad.jc.cgen.StmtTagCopierSwitch
 
setFinder(ClassfileFinder) - Method in class org.dellroad.jc.cgen.SourceLocator
 
setIndent(int) - Method in class org.dellroad.jc.cgen.CodeWriter
Set indentation level to an absolute number of indents.
setLocal(Local) - Method in class org.dellroad.jc.cgen.escape.EscapingStmtSwitch
 
setLocal(Local) - Method in class org.dellroad.jc.cgen.escape.EscapingValueSwitch
 
sigHash(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 
sigHashString(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 
signature(SootField) - Static method in class org.dellroad.jc.cgen.Util
 
signature(SootMethod) - Static method in class org.dellroad.jc.cgen.Util
 
size(Type) - Static method in class org.dellroad.jc.cgen.escape.KnownSizeDetector
Return our best guess of the size of an instance of the given type, in bytes.
sourceFile - Variable in class org.dellroad.jc.cgen.SourceFile
 
spaceFillTo(int, int) - Method in class org.dellroad.jc.cgen.SourceFile
 
splitPath(String) - Static method in class org.dellroad.jc.SearchpathFinder
Split a search path into components.
staticFields - Variable in class org.dellroad.jc.cgen.SourceFile
 
staticMethods - Variable in class org.dellroad.jc.cgen.SourceFile
 
string(String) - Static method in class org.dellroad.jc.cgen.C
Returns string(s, true).
string(String, boolean) - Static method in class org.dellroad.jc.cgen.C
Returns a doubly-quoted C string containing the UTF-8 encoded value of s with special characters suitably escaped.
superclasses - Variable in class org.dellroad.jc.cgen.SourceFile
 

T

THREEWAY - Static variable in class org.dellroad.jc.cgen.CExpr
 
TypeAnalysis - class org.dellroad.jc.cgen.analysis.TypeAnalysis.
Determines the run-time type of a reference local as best we can based on information provided by a LocalDefs object.
TypeAnalysis(LocalDefs) - Constructor for class org.dellroad.jc.cgen.analysis.TypeAnalysis
 
toString(UnitPrinter) - Method in class org.dellroad.jc.cgen.ActiveUseCheckStmt
 
toString() - Method in class org.dellroad.jc.cgen.ActiveUseCheckStmt
 
toString() - Method in class org.dellroad.jc.cgen.CExpr
Return valid C code that expresses this C expression.
toString(UnitPrinter) - Method in class org.dellroad.jc.cgen.NullCheckStmt
 
toString() - Method in class org.dellroad.jc.cgen.NullCheckStmt
 
toString() - Method in class org.dellroad.jc.cgen.analysis.ActiveUseTag
 
toString() - Method in class org.dellroad.jc.cgen.escape.StackAllocTag
 
type(SootClass) - Static method in class org.dellroad.jc.cgen.C
 
type(SootMethod) - Static method in class org.dellroad.jc.cgen.C
 
type(SootField) - Static method in class org.dellroad.jc.cgen.C
 
type(Value) - Static method in class org.dellroad.jc.cgen.C
 
type(SootClass, boolean) - Static method in class org.dellroad.jc.cgen.C
 
type(SootMethod, boolean) - Static method in class org.dellroad.jc.cgen.C
 
type(SootField, boolean) - Static method in class org.dellroad.jc.cgen.C
 
type(Value, boolean) - Static method in class org.dellroad.jc.cgen.C
 
type(Type) - Static method in class org.dellroad.jc.cgen.C
Equivalent to type(t, false).
type(Type, boolean) - Static method in class org.dellroad.jc.cgen.C
Return the C type for an object of type t, which must be a normal Java type, i.e., a type that can be the type of a variable.
typeLetter(Type) - Static method in class org.dellroad.jc.cgen.Util
 
typeWord(Type) - Static method in class org.dellroad.jc.cgen.Util
 

U

Util - class org.dellroad.jc.cgen.Util.
Various utility stuff used when analyzing class files and generating code.
Util.OrderTypeSwitch - class org.dellroad.jc.cgen.Util.OrderTypeSwitch.
Utility class that computes ordering preference in a C structure of the various types.
Util.OrderTypeSwitch() - Constructor for class org.dellroad.jc.cgen.Util.OrderTypeSwitch
 
Util.PrimTypeSwitch - class org.dellroad.jc.cgen.Util.PrimTypeSwitch.
Utility class that passes the appropriate string ("byte", "char", etc.) to the prim() method depending on the primitive type.
Util.PrimTypeSwitch() - Constructor for class org.dellroad.jc.cgen.Util.PrimTypeSwitch
 
undent() - Method in class org.dellroad.jc.cgen.CodeWriter
Decrease the current indentation level by one.
utf8Comparator - Static variable in class org.dellroad.jc.cgen.Util
Sorts Strings in the same way that strcmp() does on their UTF-8 encodings.
utf8Encode(String) - Static method in class org.dellroad.jc.cgen.Util
This method is required to work around a stupid bug in Sun's JDK String.getBytes("UTF-8") (bug #4628881).

V

v() - Static method in class org.dellroad.jc.Generate
Retrieve the singleton instance of this class.
v(String) - Static method in class org.dellroad.jc.cgen.ClassConstant
 
v(boolean) - Static method in class org.dellroad.jc.cgen.analysis.ActiveUseTag
 
value(ValueBox) - Static method in class org.dellroad.jc.cgen.C
 
valueType(Type) - Static method in class org.dellroad.jc.cgen.C
 
virtualFields - Variable in class org.dellroad.jc.cgen.SourceFile
 
virtualMethods - Variable in class org.dellroad.jc.cgen.SourceFile
 

W

w - Variable in class org.dellroad.jc.cgen.CodeWriter
 
wrapSynchronized(Body) - Static method in class org.dellroad.jc.cgen.CMethod
Make a synchronized method look as if it was contained inside a big synchronized block.
write(int) - Method in class org.dellroad.jc.cgen.CodeWriter
 
write(char[]) - Method in class org.dellroad.jc.cgen.CodeWriter
 
write(char[], int, int) - Method in class org.dellroad.jc.cgen.CodeWriter
 
write(String) - Method in class org.dellroad.jc.cgen.CodeWriter
 
write(String, int, int) - Method in class org.dellroad.jc.cgen.CodeWriter
 

X

XOR - Static variable in class org.dellroad.jc.cgen.CExpr
 

_

_JC_TYPE(Type) - Static method in class org.dellroad.jc.cgen.Util
Return the _JC_TYPE_* macro appropriate for the given type.

A B C D E F G H I J K L M N O P R S T U V W X _