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.ClassVisitor
private static byte[]
private IRClass
private static boolean
static final int
Fields inherited from class gw.internal.gosu.ir.compiler.bytecode.AbstractBytecodeCompiler
OBJECT_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
private void
private byte[]
compile()
static byte[]
compileClass
(IRClass irClass, boolean debug) private void
private void
private void
private void
compileMethod
(IRMethodStatement method) private void
private StringWriter
configClassVisitor
(org.objectweb.asm.ClassVisitor writer) private String
Deals with generics.private String[]
static String
static boolean
isDebugFlagSet
(DebugFlag flag) private void
terminateFunction
(IRBytecodeContext context) toString()
static void
verify
(byte[] bytes) private void
visitAnnotationDefaultValue
(Object value, IRType type, org.objectweb.asm.AnnotationVisitor annotationVisitor) private void
visitAnnotationDefaultValue
(Object value, IRType type, org.objectweb.asm.AnnotationVisitor annotationVisitor, String name) private void
visitInnerClass
(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
-