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