Package de.fabmax.webidl.generator.ktjs
Class KtJsInterfaceGenerator
-
- All Implemented Interfaces:
public final class KtJsInterfaceGenerator extends CodeGenerator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classKtJsInterfaceGenerator.Companion
-
Field Summary
Fields Modifier and Type Field Description private StringpackagePrefixprivate StringmoduleNameprivate StringfileHeaderprivate BooleanallTypesNullableprivate StringoutputDirectorypublic final static KtJsInterfaceGenerator.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description KtJsInterfaceGenerator()
-
Method Summary
Modifier and Type Method Description final StringgetPackagePrefix()final UnitsetPackagePrefix(String packagePrefix)final StringgetModuleName()Module name, used for loading the module with "require('moduleName')" final UnitsetModuleName(String moduleName)Module name, used for loading the module with "require('moduleName')" final StringgetFileHeader()Added as a comment in every generated file final UnitsetFileHeader(String fileHeader)Added as a comment in every generated file final BooleangetAllTypesNullable()If true, all types (interface members and function parameters) are generated as nullable. final UnitsetAllTypesNullable(Boolean allTypesNullable)If true, all types (interface members and function parameters) are generated as nullable. 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)
-
getModuleName
final String getModuleName()
Module name, used for loading the module with "require('moduleName')"
-
setModuleName
final Unit setModuleName(String moduleName)
Module name, used for loading the module with "require('moduleName')"
-
getFileHeader
final String getFileHeader()
Added as a comment in every generated file
-
setFileHeader
final Unit setFileHeader(String fileHeader)
Added as a comment in every generated file
-
getAllTypesNullable
final Boolean getAllTypesNullable()
If true, all types (interface members and function parameters) are generated as nullable.
-
setAllTypesNullable
final Unit setAllTypesNullable(Boolean allTypesNullable)
If true, all types (interface members and function parameters) are generated as nullable.
-
-
-
-