Package org.teavm.backend.c.generate
Class ClassGenerator
- java.lang.Object
-
- org.teavm.backend.c.generate.ClassGenerator
-
public class ClassGenerator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ClassGenerator(GenerationContext context, TagRegistry tagRegistry, Decompiler decompiler, CacheStatus cacheStatus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateClass(CodeWriter writer, CodeWriter headerWriter, ClassHolder cls)voidgenerateType(CodeWriter writer, CodeWriter headerWriter, ValueType type)java.util.Set<ValueType>getTypes()java.lang.StringnameOfType(ValueType type)static booleanneedsVirtualTable(Characteristics characteristics, ValueType type)voidprepare(ListableClassHolderSource classes)voidsetAstCache(MethodNodeCache astCache)voidsetCallSites(java.util.List<CallSiteDescriptor> callSites)
-
-
-
Constructor Detail
-
ClassGenerator
public ClassGenerator(GenerationContext context, TagRegistry tagRegistry, Decompiler decompiler, CacheStatus cacheStatus)
-
-
Method Detail
-
setAstCache
public void setAstCache(MethodNodeCache astCache)
-
setCallSites
public void setCallSites(java.util.List<CallSiteDescriptor> callSites)
-
prepare
public void prepare(ListableClassHolderSource classes)
-
generateClass
public void generateClass(CodeWriter writer, CodeWriter headerWriter, ClassHolder cls)
-
generateType
public void generateType(CodeWriter writer, CodeWriter headerWriter, ValueType type)
-
getTypes
public java.util.Set<ValueType> getTypes()
-
needsVirtualTable
public static boolean needsVirtualTable(Characteristics characteristics, ValueType type)
-
nameOfType
public java.lang.String nameOfType(ValueType type)
-
-