public final class Generator extends Object
One instance of this class is created for one invocation of type library generation. This object keeps track of what type libraries are compiled into what packages, and keeps other "global" (per tlbimp invocation) state.
The actual details of the generation is delegated to other generator objects.
Modifier and Type | Field and Description |
---|---|
protected ErrorListener |
el
Errors should be reported to this object.
|
Constructor and Description |
---|
Generator(CodeWriter writer,
ReferenceResolver resolver,
ErrorListener el,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Finally call this method to wrap things up.
|
void |
generate(IWTypeLib lib)
Call this method repeatedly to generate classes from each type library.
|
void |
setAlwaysUseComEnums(boolean alwaysUseComEnums) |
void |
setGenerateDefaultMethodOverloads(boolean v) |
void |
setRenameGetterAndSetters(boolean renameGetterAndSetters) |
protected final ErrorListener el
public Generator(CodeWriter writer, ReferenceResolver resolver, ErrorListener el, Locale locale)
public void setRenameGetterAndSetters(boolean renameGetterAndSetters)
public void setAlwaysUseComEnums(boolean alwaysUseComEnums)
public void setGenerateDefaultMethodOverloads(boolean v)
public void generate(IWTypeLib lib) throws BindingException, IOException
BindingException
IOException
public void finish() throws IOException
In particular this generates the ClassFactory class.
IOException
Copyright © 2014. All rights reserved.