Class TlbBase
- java.lang.Object
- 
- com.sun.jna.platform.win32.COM.tlb.imp.TlbBase
 
- 
- Direct Known Subclasses:
- TlbAbstractMethod,- TlbCoClass,- TlbDispInterface,- TlbEnum,- TlbInterface
 
 public abstract class TlbBase extends java.lang.ObjectThe Class TlbBase.- Author:
- Tobias Wolf, wolf.tobias@gmx.net
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringbindingModeprotected java.lang.StringBufferclassBufferThe class buffer.protected java.lang.StringcontentThe content.static java.lang.StringCRThe Constant CR.static java.lang.StringCRCRThe Constant CRCR.protected java.lang.Stringfilenamestatic java.lang.String[]IDISPATCH_METHODSThe idispatch methods.protected intindexThe index.static java.lang.String[]IUNKNOWN_METHODSThe iunknown methods.protected java.lang.Stringnamestatic java.lang.StringTABThe Constant TAB.static java.lang.StringTABTABThe Constant TABTAB.protected java.lang.StringBuffertemplateBufferThe template buffer.protected TypeInfoUtiltypeInfoUtilprotected TypeLibUtiltypeLibUtilThe type lib util.
 - 
Constructor SummaryConstructors Constructor Description TlbBase(int index, TypeLibUtil typeLibUtil, TypeInfoUtil typeInfoUtil)TlbBase(int index, TypeLibUtil typeLibUtil, TypeInfoUtil typeInfoUtil, java.lang.String bindingMode)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcreateClassName(java.lang.String name)Creates the class name.voidcreateContent(java.lang.String content)Creates the content.protected voidcreatePackageName(java.lang.String packagename)java.lang.StringBuffergetClassBuffer()Gets the class buffer.protected abstract java.lang.StringgetClassTemplate()Gets the class template.java.lang.StringgetFilename()java.lang.StringgetName()protected booleanisDispIdMode()protected booleanisReservedMethod(java.lang.String method)Checks if is reserved method.protected booleanisVTableMode()protected voidlog(java.lang.String level, java.lang.String msg)Log.voidlogError(java.lang.String msg)Log error.voidlogInfo(java.lang.String msg)Log info.protected voidreadTemplateFile(java.lang.String filename)Read template file.protected voidreplaceVariable(java.lang.String name, java.lang.String value)Replace variable.voidsetFilename(java.lang.String filename)voidsetName(java.lang.String name)
 
- 
- 
- 
Field Detail- 
CRpublic static final java.lang.String CR The Constant CR.- See Also:
- Constant Field Values
 
 - 
CRCRpublic static final java.lang.String CRCR The Constant CRCR.- See Also:
- Constant Field Values
 
 - 
TABpublic static final java.lang.String TAB The Constant TAB.- See Also:
- Constant Field Values
 
 - 
TABTABpublic static final java.lang.String TABTAB The Constant TABTAB.- See Also:
- Constant Field Values
 
 - 
typeLibUtilprotected TypeLibUtil typeLibUtil The type lib util.
 - 
typeInfoUtilprotected TypeInfoUtil typeInfoUtil 
 - 
indexprotected int index The index.
 - 
templateBufferprotected java.lang.StringBuffer templateBuffer The template buffer.
 - 
classBufferprotected java.lang.StringBuffer classBuffer The class buffer.
 - 
contentprotected java.lang.String content The content.
 - 
filenameprotected java.lang.String filename 
 - 
nameprotected java.lang.String name 
 - 
IUNKNOWN_METHODSpublic static java.lang.String[] IUNKNOWN_METHODS The iunknown methods.
 - 
IDISPATCH_METHODSpublic static java.lang.String[] IDISPATCH_METHODS The idispatch methods.
 - 
bindingModeprotected java.lang.String bindingMode 
 
- 
 - 
Constructor Detail- 
TlbBasepublic TlbBase(int index, TypeLibUtil typeLibUtil, TypeInfoUtil typeInfoUtil)
 - 
TlbBasepublic TlbBase(int index, TypeLibUtil typeLibUtil, TypeInfoUtil typeInfoUtil, java.lang.String bindingMode)
 
- 
 - 
Method Detail- 
logErrorpublic void logError(java.lang.String msg) Log error.- Parameters:
- msg- the msg
 
 - 
logInfopublic void logInfo(java.lang.String msg) Log info.- Parameters:
- msg- the msg
 
 - 
getClassBufferpublic java.lang.StringBuffer getClassBuffer() Gets the class buffer.- Returns:
- the class buffer
 
 - 
createContentpublic void createContent(java.lang.String content) Creates the content.- Parameters:
- content- the content
 
 - 
setFilenamepublic void setFilename(java.lang.String filename) 
 - 
getFilenamepublic java.lang.String getFilename() 
 - 
getNamepublic java.lang.String getName() 
 - 
setNamepublic void setName(java.lang.String name) 
 - 
logprotected void log(java.lang.String level, java.lang.String msg)Log.- Parameters:
- level- the level
- msg- the msg
 
 - 
getClassTemplateprotected abstract java.lang.String getClassTemplate() Gets the class template.- Returns:
- the class template
 
 - 
readTemplateFileprotected void readTemplateFile(java.lang.String filename) throws java.io.IOExceptionRead template file.- Parameters:
- filename- the filename
- Throws:
- java.io.IOException- Signals that an I/O exception has occurred.
 
 - 
replaceVariableprotected void replaceVariable(java.lang.String name, java.lang.String value)Replace variable.- Parameters:
- name- the name
- value- the value
 
 - 
createPackageNameprotected void createPackageName(java.lang.String packagename) 
 - 
createClassNameprotected void createClassName(java.lang.String name) Creates the class name.- Parameters:
- name- the name
 
 - 
isReservedMethodprotected boolean isReservedMethod(java.lang.String method) Checks if is reserved method.- Parameters:
- method- the method
- Returns:
- true, if is reserved method
 
 - 
isVTableModeprotected boolean isVTableMode() 
 - 
isDispIdModeprotected boolean isDispIdMode() 
 
- 
 
-