Top Description Fields Constructors Methods
com.sun.jna.platform.win32.COM.tlb.imp

public abstract Class TlbBase

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.jna.platform.win32.COM.tlb.imp.TlbCoClass, com.sun.jna.platform.win32.COM.tlb.imp.TlbDispInterface, com.sun.jna.platform.win32.COM.tlb.imp.TlbEnum, com.sun.jna.platform.win32.COM.tlb.imp.TlbInterface, com.sun.jna.platform.win32.COM.tlb.imp.TlbAbstractMethod
Imports
java.io.BufferedReader, .IOException, .InputStream, .InputStreamReader, java.text.SimpleDateFormat, java.util.Date, java.util.regex.Matcher, .Pattern, com.sun.jna.platform.win32.COM.TypeInfoUtil, .TypeLibUtil

The Class TlbBase.
Author
Tobias Wolf, [email protected]

Field Summary

Modifier and TypeField and Description
protected String
protected StringBuffer
classBuffer

The class buffer.

protected String
content

The content.

public static final String
CR

The Constant CR.

public static final String
CRCR

The Constant CRCR.

protected String
public static String[]
IDISPATCH_METHODS

The idispatch methods.

protected int
index

The index.

public static String[]
IUNKNOWN_METHODS

The iunknown methods.

protected String
public static final String
TAB

The Constant TAB.

public static final String
TABTAB

The Constant TABTAB.

protected StringBuffer
templateBuffer

The template buffer.

protected TypeInfoUtil
protected TypeLibUtil
typeLibUtil

The type lib util.

Constructor Summary

AccessConstructor and Description
public
TlbBase(int index, TypeLibUtil typeLibUtil, TypeInfoUtil typeInfoUtil)

public
TlbBase(int index, TypeLibUtil typeLibUtil, TypeInfoUtil typeInfoUtil, String bindingMode)

Method Summary

Modifier and TypeMethod and Description
protected void
createClassName(String
the name
name
)

Creates the class name.

public void
createContent(String
the content
content
)

Creates the content.

protected void
public StringBuffer

Returns:

the class buffer
getClassBuffer
()

Gets the class buffer.

protected abstract String

Returns:

the class template
getClassTemplate
()

Gets the class template.

public String
public String
private String

Returns:

the time
getTime
()

Gets the time.

protected boolean
protected boolean

Returns:

true, if is reserved method
isReservedMethod
(String
the method
method
)

Checks if is reserved method.

protected boolean
protected void
log(String
the level
level
,
String
the msg
msg
)

Log.

public void
logError(String
the msg
msg
)

Log error.

public void
logInfo(String
the msg
msg
)

Log info.

protected void
readTemplateFile(String
the filename
filename
)

Read template file.

protected void
replaceVariable(String
the name
name
,
String
the value
value
)

Replace variable.

public void
setFilename(String filename)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bindingModeback to summary
protected String bindingMode
classBufferback to summary
protected StringBuffer classBuffer

The class buffer.

contentback to summary
protected String content

The content.

CRback to summary
public static final String CR

The Constant CR.

CRCRback to summary
public static final String CRCR

The Constant CRCR.

filenameback to summary
protected String filename
IDISPATCH_METHODSback to summary
public static String[] IDISPATCH_METHODS

The idispatch methods.

indexback to summary
protected int index

The index.

IUNKNOWN_METHODSback to summary
public static String[] IUNKNOWN_METHODS

The iunknown methods.

nameback to summary
protected String name
TABback to summary
public static final String TAB

The Constant TAB.

TABTABback to summary
public static final String TABTAB

The Constant TABTAB.

templateBufferback to summary
protected StringBuffer templateBuffer

The template buffer.

typeInfoUtilback to summary
protected TypeInfoUtil typeInfoUtil
typeLibUtilback to summary
protected TypeLibUtil typeLibUtil

The type lib util.

Constructor Detail

TlbBaseback to summary
public TlbBase(int index, TypeLibUtil typeLibUtil, TypeInfoUtil typeInfoUtil)
TlbBaseback to summary
public TlbBase(int index, TypeLibUtil typeLibUtil, TypeInfoUtil typeInfoUtil, String bindingMode)

Method Detail

createClassNameback to summary
protected void createClassName(String name)

Creates the class name.

Parameters
name:String

the name

createContentback to summary
public void createContent(String content)

Creates the content.

Parameters
content:String

the content

createPackageNameback to summary
protected void createPackageName(String packagename)
getClassBufferback to summary
public StringBuffer getClassBuffer()

Gets the class buffer.

Returns:StringBuffer

the class buffer

getClassTemplateback to summary
protected abstract String getClassTemplate()

Gets the class template.

Returns:String

the class template

getFilenameback to summary
public String getFilename()
getNameback to summary
public String getName()
getTimeback to summary
private String getTime()

Gets the time.

Returns:String

the time

isDispIdModeback to summary
protected boolean isDispIdMode()
isReservedMethodback to summary
protected boolean isReservedMethod(String method)

Checks if is reserved method.

Parameters
method:String

the method

Returns:boolean

true, if is reserved method

isVTableModeback to summary
protected boolean isVTableMode()
logback to summary
protected void log(String level, String msg)

Log.

Parameters
level:String

the level

msg:String

the msg

logErrorback to summary
public void logError(String msg)

Log error.

Parameters
msg:String

the msg

logInfoback to summary
public void logInfo(String msg)

Log info.

Parameters
msg:String

the msg

readTemplateFileback to summary
protected void readTemplateFile(String filename) throws IOException

Read template file.

Parameters
filename:String

the filename

Exceptions
IOException:
Signals that an I/O exception has occurred.
replaceVariableback to summary
protected void replaceVariable(String name, String value)

Replace variable.

Parameters
name:String

the name

value:String

the value

setFilenameback to summary
public void setFilename(String filename)
setNameback to summary
public void setName(String name)