Class IRClassCompiler
java.lang.Object
gw.internal.gosu.ir.compiler.bytecode.AbstractBytecodeCompiler
gw.internal.gosu.ir.compiler.bytecode.IRClassCompiler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.objectweb.asm.ClassVisitorprivate static byte[]private IRClassprivate static booleanstatic final intFields inherited from class gw.internal.gosu.ir.compiler.bytecode.AbstractBytecodeCompiler
OBJECT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidprivate voidprivate byte[]compile()static byte[]compileClass(IRClass irClass, boolean debug) private voidprivate voidprivate voidprivate voidcompileMethod(IRMethodStatement method) private voidprivate StringWriterconfigClassVisitor(org.objectweb.asm.ClassVisitor writer) private StringDeals with generics.private String[]static Stringstatic booleanisDebugFlagSet(DebugFlag flag) private voidterminateFunction(IRBytecodeContext context) toString()static voidverify(byte[] bytes) private voidvisitAnnotationDefaultValue(Object value, IRType type, org.objectweb.asm.AnnotationVisitor annotationVisitor) private voidvisitAnnotationDefaultValue(Object value, IRType type, org.objectweb.asm.AnnotationVisitor annotationVisitor, String name) private voidvisitInnerClass(IRClass.InnerClassInfo innerClass) Methods inherited from class gw.internal.gosu.ir.compiler.bytecode.AbstractBytecodeCompiler
compileConditionAssignment, getIns, isNotPartOfBooleanExpr, isWide, negateOpcode
-
Field Details
-
COMPILE_WITH_DEBUG_INFO
private static boolean COMPILE_WITH_DEBUG_INFO -
JAVA_VER
public static final int JAVA_VER- See Also:
-
_cv
private org.objectweb.asm.ClassVisitor _cv -
_irClass
-
_gosuVersion
private static byte[] _gosuVersion
-
-
Constructor Details
-
IRClassCompiler
-
-
Method Details
-
compileClass
-
compile
private byte[] compile() -
addGosuVersion
private void addGosuVersion() -
addAnnotations
public void addAnnotations() -
configClassVisitor
-
verify
public static void verify(byte[] bytes) -
isDebugFlagSet
-
compileClassHeader
private void compileClassHeader() -
getClassSignature
Deals with generics. -
getInterfaceNames
-
addSourceFileRef
private void addSourceFileRef() -
compileInnerClasses
private void compileInnerClasses() -
visitInnerClass
-
compileFields
private void compileFields() -
compileMethods
private void compileMethods() -
compileMethod
-
visitAnnotationDefaultValue
-
visitAnnotationDefaultValue
-
terminateFunction
-
getMethodDescriptor
-
toString
-