Package org.lwjgl.util.mapped
Class MappedObjectTransformer
java.lang.Object
org.lwjgl.util.mapped.MappedObjectTransformer
This class implements the bytecode transformation that mapped object go through.
Mapped object classes need to first be registered with the transformer, see
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.
register(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 -
Method Summary
Modifier and TypeMethodDescriptionstatic void
register
(Class<? extends MappedObject> type) Registers a class as a mapped object.
-
Constructor Details
-
MappedObjectTransformer
public MappedObjectTransformer()
-
-
Method Details
-
register
Registers a class as a mapped object. The class must extendMappedObject
and be annotated withMappedField
.- Parameters:
type
- the mapped object class.
-