|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.llnl.babel.backend.c.C
Class C
contains common C language binding routines
shared by the C backend code generators. This class simply collects
many common C binding routines into one place.
Constructor Summary | |
C()
|
Method Summary | |
static java.lang.String |
getArgumentString(Argument arg)
Generate a C argument string for the specified SIDL argument. |
static java.lang.String |
getArgumentWithFormal(Argument arg)
Generate a C argument string with the formal argument name. |
static java.lang.String |
getDataGetName(SymbolID id)
Convert a symbol name into its private data structure get access function name. |
static java.lang.String |
getDataName(SymbolID id)
Convert a symbol name into its private data structure identifier. |
static java.lang.String |
getDataSetName(SymbolID id)
Convert a symbol name into its private data structure set access function name. |
static java.lang.String |
getDelRefArray(Type arrayType)
|
static java.lang.String |
getEnsureArray(Type arrayType)
|
static java.lang.String |
getEnumName(SymbolID id)
Convert a SIDL enumerated type into its symbol name, which is "enum " followed by the symbol name followed by "__enum". |
static java.lang.String |
getExceptionType()
|
static java.lang.String |
getFullMethodName(SymbolID id,
Method method)
Generate the full method name associated with the symbol id and the specified method. |
static java.lang.String |
getFullMethodName(SymbolID id,
java.lang.String methodName)
Generate the full method name associated with the symbol id and the specified method. |
static java.lang.String |
getHeaderFile(SymbolID id)
Generate the header filename associated with a symbol identifier. |
static java.lang.String |
getImplHeaderFile(SymbolID id)
Generate the implementation header filename associated with a symbol identifier. |
static java.lang.String |
getImplSourceFile(SymbolID id)
Generate the implementation source filename associated with a symbol identifier. |
static java.lang.String |
getMethodImplName(SymbolID id,
java.lang.String methodName)
Generate the impl method's name. |
static java.lang.String |
getMethodSkelName(SymbolID id,
Method method)
Generate the skel method's name. |
static java.lang.String |
getObjectName(SymbolID id)
Convert a SIDL symbol name into its object name -- for the purposes of this package that means convert it into its typedef object name. |
static java.lang.String |
getPrivateDestructor(SymbolID id)
Convert a symbol name into its private destructor function name provided by the SkelSource. |
static java.lang.String |
getReturnString(Type type)
Generate a C return string for the specified SIDL type. |
static java.lang.String |
getSetEPVName(SymbolID id)
Convert a SIDL symbol into the name of its associated set EPV method, which is the symbol name appended with "__set_epv". |
static java.lang.String |
getSetSEPVName(SymbolID id)
Convert a SIDL symbol into the name of its associated set static EPV method, which is the symbol name appended with "__set_sepv". |
static java.lang.String |
getSkelFile(SymbolID id)
Generate the skeleton filename associated with a symbol identifier. |
static java.lang.String |
getStubFile(SymbolID id)
Generate the stub filename associated with a symbol identifier. |
static java.lang.String |
getSymbolName(SymbolID id)
Convert a symbol name into an IOR identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public C()
Method Detail |
public static java.lang.String getHeaderFile(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getStubFile(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getSkelFile(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getImplHeaderFile(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getImplSourceFile(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getDataName(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getDataGetName(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getDataSetName(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getPrivateDestructor(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getSymbolName(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getEnumName(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getObjectName(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getSetEPVName(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getSetSEPVName(SymbolID id)
id
- the SymbolID
of the Symbol
.public static java.lang.String getReturnString(Type type) throws CodeGenerationException
type
- the Type
whose return string is being built.
CodeGenerationException
public static java.lang.String getArgumentString(Argument arg) throws CodeGenerationException
CodeGenerationException
public static java.lang.String getArgumentWithFormal(Argument arg) throws CodeGenerationException
CodeGenerationException
public static java.lang.String getMethodImplName(SymbolID id, java.lang.String methodName)
id
- the SymbolID
of the Symbol
associated with the method.public static java.lang.String getMethodSkelName(SymbolID id, Method method)
id
- the SymbolID
of the Symbol
associated with the method.method
- the methodpublic static java.lang.String getFullMethodName(SymbolID id, Method method)
id
- the SymbolID
of the Symbol
associated with the method.method
- the Method
whose full name is being built.public static java.lang.String getFullMethodName(SymbolID id, java.lang.String methodName)
id
- the SymbolID
of the Symbol
associated with the method.public static java.lang.String getEnsureArray(Type arrayType)
public static java.lang.String getDelRefArray(Type arrayType)
public static java.lang.String getExceptionType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |