public abstract class TlbBase extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
bindingMode |
protected StringBuffer |
classBuffer
The class buffer.
|
protected String |
content
The content.
|
static String |
CR
The Constant CR.
|
static String |
CRCR
The Constant CRCR.
|
protected String |
filename |
static String[] |
IDISPATCH_METHODS
The idispatch methods.
|
protected int |
index
The index.
|
static String[] |
IUNKNOWN_METHODS
The iunknown methods.
|
protected String |
name |
static String |
TAB
The Constant TAB.
|
static String |
TABTAB
The Constant TABTAB.
|
protected StringBuffer |
templateBuffer
The template buffer.
|
protected TypeInfoUtil |
typeInfoUtil |
protected TypeLibUtil |
typeLibUtil
The type lib util.
|
Constructor and Description |
---|
TlbBase(int index,
TypeLibUtil typeLibUtil,
TypeInfoUtil typeInfoUtil) |
TlbBase(int index,
TypeLibUtil typeLibUtil,
TypeInfoUtil typeInfoUtil,
String bindingMode) |
Modifier and Type | Method and Description |
---|---|
protected void |
createClassName(String name)
Creates the class name.
|
void |
createContent(String content)
Creates the content.
|
protected void |
createPackageName(String packagename) |
StringBuffer |
getClassBuffer()
Gets the class buffer.
|
protected abstract String |
getClassTemplate()
Gets the class template.
|
String |
getFilename() |
String |
getName() |
protected boolean |
isDispIdMode() |
protected boolean |
isReservedMethod(String method)
Checks if is reserved method.
|
protected boolean |
isVTableMode() |
protected void |
log(String level,
String msg)
Log.
|
void |
logError(String msg)
Log error.
|
void |
logInfo(String msg)
Log info.
|
protected void |
readTemplateFile(String filename)
Read template file.
|
protected void |
replaceVariable(String name,
String value)
Replace variable.
|
void |
setFilename(String filename) |
void |
setName(String name) |
public static final String CR
public static final String CRCR
public static final String TAB
public static final String TABTAB
protected TypeLibUtil typeLibUtil
protected TypeInfoUtil typeInfoUtil
protected int index
protected StringBuffer templateBuffer
protected StringBuffer classBuffer
protected String content
protected String filename
protected String name
public static String[] IUNKNOWN_METHODS
public static String[] IDISPATCH_METHODS
protected String bindingMode
public TlbBase(int index, TypeLibUtil typeLibUtil, TypeInfoUtil typeInfoUtil)
public TlbBase(int index, TypeLibUtil typeLibUtil, TypeInfoUtil typeInfoUtil, String bindingMode)
public void logError(String msg)
msg
- the msgpublic void logInfo(String msg)
msg
- the msgpublic StringBuffer getClassBuffer()
public void createContent(String content)
content
- the contentpublic void setFilename(String filename)
public String getFilename()
public String getName()
public void setName(String name)
protected abstract String getClassTemplate()
protected void readTemplateFile(String filename) throws IOException
filename
- the filenameIOException
- Signals that an I/O exception has occurred.protected void replaceVariable(String name, String value)
name
- the namevalue
- the valueprotected void createPackageName(String packagename)
protected void createClassName(String name)
name
- the nameprotected boolean isReservedMethod(String method)
method
- the methodprotected boolean isVTableMode()
protected boolean isDispIdMode()