Package org.lwjgl.util.mapped
Class MappedObjectTransformer
- java.lang.Object
-
- org.lwjgl.util.mapped.MappedObjectTransformer
-
public class MappedObjectTransformer extends Object
This class implements the bytecode transformation that mapped object go through. Mapped object classes need to first be registered with the transformer, seeregister(Class). The transformer supports some debugging tools, enabled through JVM system properties:
org.lwjgl.util.mapped.PrintTiming=true, prints timing information for the transformation step.
org.lwjgl.util.mapped.PrintActivity=true, prints activity information.
org.lwjgl.util.mapped.PrintBytecode=true, prints the transformed bytecode.
org.lwjgl.util.Debug must also be set to true for the above to work.- Author:
- Riven
-
-
Constructor Summary
Constructors Constructor Description MappedObjectTransformer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregister(Class<? extends MappedObject> type)Registers a class as a mapped object.
-
-
-
Method Detail
-
register
public static void register(Class<? extends MappedObject> type)
Registers a class as a mapped object. The class must extendMappedObjectand be annotated withMappedField.- Parameters:
type- the mapped object class.
-
-