Package de.fabmax.webidl.generator
Class CodeGenerator
-
- All Implemented Interfaces:
public abstract class CodeGenerator
-
-
Field Summary
Fields Modifier and Type Field Description private StringoutputDirectoryprivate Stringplatformprivate final List<IdlInterface>platformInterfacesprivate final List<IdlEnum>platformEnumsprivate final List<IdlFunction>platformFunctionsprivate final List<IdlAttribute>platformAttributes
-
Constructor Summary
Constructors Constructor Description CodeGenerator()
-
Method Summary
Modifier and Type Method Description final StringgetOutputDirectory()final UnitsetOutputDirectory(String outputDirectory)final StringgetPlatform()Platform name used for filtering IDL model elements. final UnitsetPlatform(String platform)Platform name used for filtering IDL model elements. final List<IdlInterface>getPlatformInterfaces(IdlModel $self)final List<IdlEnum>getPlatformEnums(IdlModel $self)final List<IdlFunction>getPlatformFunctions(IdlInterface $self)final List<IdlAttribute>getPlatformAttributes(IdlInterface $self)abstract Unitgenerate(IdlModel model)final UnitdeleteDirectory(File dir)final FilegetOutFile(String path)final WritercreateOutFileWriter(String path)final OutputStreamcreateOutFile(String path)final StringfirstCharToUpper(String str)final StringfirstCharToLower(String str)-
-
Method Detail
-
getOutputDirectory
final String getOutputDirectory()
-
setOutputDirectory
final Unit setOutputDirectory(String outputDirectory)
-
getPlatform
final String getPlatform()
Platform name used for filtering IDL model elements. Leave empty to include all.
-
setPlatform
final Unit setPlatform(String platform)
Platform name used for filtering IDL model elements. Leave empty to include all.
-
getPlatformInterfaces
final List<IdlInterface> getPlatformInterfaces(IdlModel $self)
-
getPlatformEnums
final List<IdlEnum> getPlatformEnums(IdlModel $self)
-
getPlatformFunctions
final List<IdlFunction> getPlatformFunctions(IdlInterface $self)
-
getPlatformAttributes
final List<IdlAttribute> getPlatformAttributes(IdlInterface $self)
-
deleteDirectory
final Unit deleteDirectory(File dir)
-
getOutFile
final File getOutFile(String path)
-
createOutFileWriter
final Writer createOutFileWriter(String path)
-
createOutFile
final OutputStream createOutFile(String path)
-
firstCharToUpper
final String firstCharToUpper(String str)
-
firstCharToLower
final String firstCharToLower(String str)
-
-
-
-