Class JniJavaGenerator
-
- All Implemented Interfaces:
public final class JniJavaGenerator extends CodeGenerator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classJniJavaGenerator.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringPLATFORM_CHECKS_NAMEpublic final static StringNATIVE_OBJECT_NAMEpublic final static IntegerPLATFORM_BIT_WINDOWSpublic final static IntegerPLATFORM_BIT_LINUXpublic final static IntegerPLATFORM_BIT_MACOSpublic final static IntegerPLATFORM_BIT_ANDROIDpublic final static IntegerPLATFORM_BIT_OTHERprivate StringpackagePrefixprivate BooleangenerateSimpleStackAllocatorsprivate BooleangenerateInterfaceStackAllocatorsprivate StringonClassLoadprivate final List<String>parseCommentsFromDirectoriesprivate StringoutputDirectorypublic final static JniJavaGenerator.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description JniJavaGenerator()
-
Method Summary
Modifier and Type Method Description final StringgetPackagePrefix()final UnitsetPackagePrefix(String packagePrefix)final BooleangetGenerateSimpleStackAllocators()If true simple address-based allocation methods are generated for stack allocatable classes. final UnitsetGenerateSimpleStackAllocators(Boolean generateSimpleStackAllocators)If true simple address-based allocation methods are generated for stack allocatable classes. final BooleangetGenerateInterfaceStackAllocators()If true interface-based allocation methods are generated for stack allocatable classes. final UnitsetGenerateInterfaceStackAllocators(Boolean generateInterfaceStackAllocators)If true interface-based allocation methods are generated for stack allocatable classes. final StringgetOnClassLoad()Java code inserted into a static { } block in NativeObject and each enum class. final UnitsetOnClassLoad(String onClassLoad)Java code inserted into a static { } block in NativeObject and each enum class. final List<String>getParseCommentsFromDirectories()List of directories to traverse for .cpp / .h files to grab comments from. Unitgenerate(IdlModel model)-
Methods inherited from class de.fabmax.webidl.generator.CodeGenerator
createOutFile, createOutFileWriter, deleteDirectory, firstCharToLower, firstCharToUpper, getOutFile, getOutputDirectory, setOutputDirectory -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPackagePrefix
final String getPackagePrefix()
-
setPackagePrefix
final Unit setPackagePrefix(String packagePrefix)
-
getGenerateSimpleStackAllocators
final Boolean getGenerateSimpleStackAllocators()
If true simple address-based allocation methods are generated for stack allocatable classes.
-
setGenerateSimpleStackAllocators
final Unit setGenerateSimpleStackAllocators(Boolean generateSimpleStackAllocators)
If true simple address-based allocation methods are generated for stack allocatable classes.
-
getGenerateInterfaceStackAllocators
final Boolean getGenerateInterfaceStackAllocators()
If true interface-based allocation methods are generated for stack allocatable classes.
-
setGenerateInterfaceStackAllocators
final Unit setGenerateInterfaceStackAllocators(Boolean generateInterfaceStackAllocators)
If true interface-based allocation methods are generated for stack allocatable classes.
-
getOnClassLoad
final String getOnClassLoad()
Java code inserted into a static { } block in NativeObject and each enum class. Can be used to call a native lib loader.
-
setOnClassLoad
final Unit setOnClassLoad(String onClassLoad)
Java code inserted into a static { } block in NativeObject and each enum class. Can be used to call a native lib loader.
-
getParseCommentsFromDirectories
final List<String> getParseCommentsFromDirectories()
List of directories to traverse for .cpp / .h files to grab comments from.
-
-
-
-