|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.llnl.babel.backend.IOR
Class IOR
contains common SIDL to IOR translation
routines shared by the backend code generators. This class simply
collects many common IOR language bindings into one place.
Field Summary | |
static int |
CAST
The index of the builtin method for casting. |
static int |
CLASS_BUILTIN_METHODS
The number of builtin methods that a class has. |
static int |
CONSTRUCTOR
The index of the builtin method for constructing a class. |
static int |
DELETE
The index of the builtin method for deleting an object. |
static int |
DESTRUCTOR
The index of the builtin method for destructing a class. |
static int |
INTERFACE_BUILTIN_METHODS
The number of builtin methods that an interface has. |
static int |
MAJOR_VERSION
|
static int |
MINOR_VERSION
|
Constructor Summary | |
IOR()
|
Method Summary | |
static java.lang.String |
getArgumentString(Argument arg)
Generate an IOR argument string for the specified SIDL argument. |
static java.lang.String |
getArgumentWithFormal(Argument arg)
Generate an IOR argument string with the formal argument name. |
static java.lang.String |
getArrayName(SymbolID id)
Convert a SIDL symbol into its array representation, which is "struct " followed by the symbol name followed by "__array". |
static Method |
getBuiltinMethod(int index,
SymbolID id)
Return the method description of a particular builtin method. |
static java.lang.String |
getBuiltinName(int index)
Return the name of a builtin method. |
static java.lang.String |
getCast(Method method,
java.lang.String self)
Generate a cast string for the specified method. |
static java.lang.String |
getClassType()
Return the name of the type of the implicit base class type. |
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 |
getEPVName(SymbolID id)
Convert a SIDL symbol into its method entry point vector (EPV) name, which is "struct " followed by the symbol name followed by "__epv". |
static java.lang.String |
getExceptionType()
Return the name of the type of the implicit exception argument. |
static java.lang.String |
getExternalFunc(SymbolID id)
Get the name of the function that returns the structure of external entry points. |
static java.lang.String |
getExternalName(SymbolID id)
Get struct name for extern entry point structure. |
static java.lang.String |
getFiniName(SymbolID id)
Convert a SIDL symbol into the name of its associated fini method, which is the symbol name appended with "__fini". |
static java.lang.String |
getHeaderFile(SymbolID id)
Generate the header filename associated with a symbol identifier. |
static java.lang.String |
getInitName(SymbolID id)
Convert a SIDL symbol into the name of its associated init method, which is the symbol name appended with "__init". |
static java.lang.String |
getInterfaceType()
Return the name of the type of the base interface type. |
static java.lang.String |
getNewName(SymbolID id)
Convert a SIDL symbol into the name of its associated constructor, which is the symbol name appended with "__new". |
static java.lang.String |
getObjectName(SymbolID id)
Convert a SIDL interface or class into its symbol name, which is "struct " followed by the symbol name followed by "__object". |
static java.lang.String |
getRemoteName(SymbolID id)
Convert a SIDL symbol into the name of its associated remote constructor, which is the symbol name appended with "__remote". |
static java.lang.String |
getReturnString(Type type)
Generate an IOR return string for the specified SIDL type. |
static java.lang.String |
getSEPVName(SymbolID id)
Convert a SIDL symbol into its static entry point vector (SEPV) name, which is "struct " followed by the symbol name followed by "__sepv". |
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 |
getSourceFile(SymbolID id)
Generate the source filename associated with a symbol identifier. |
static java.lang.String |
getStaticsName(SymbolID id)
Convert a SIDL symbol into the name of its associated statics method, which is the symbol name appended with "__statics". |
static java.lang.String |
getSymbolName(SymbolID id)
Convert a symbol name into an IOR identifier. |
static java.lang.String |
getSymbolType(Symbol sym)
|
static java.lang.String |
getVectorEntry(java.lang.String methodName)
Generate the name of an entry in the entry point vector or the static entry point vector. |
static java.lang.String |
getVersionName(SymbolID id)
Convert a SIDL symbol into the name of its associated fini method, which is the symbol name appended with "__fini". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public static final int INTERFACE_BUILTIN_METHODS
0...INTERFACE_BUILTIN_METHODS-1
and are available from
the method getBuiltinMethod
.
getBuiltinMethod(int, gov.llnl.babel.symbols.SymbolID)
,
Constant Field Valuespublic static final int CLASS_BUILTIN_METHODS
0...CLASS_BUILTIN_METHODS-1
and are available from
the method getBuiltinMethod
.
public static final int CAST
public static final int DELETE
public static final int CONSTRUCTOR
public static final int DESTRUCTOR
Constructor Detail |
public IOR()
Method Detail |
public static Method getBuiltinMethod(int index, SymbolID id)
ArrayIndexOutOfBoundsException
if
index
is less than zero or greater than or equal to the
number of builtin methods.
index
- the index of the builtin method that is
desired. Generally, one of CAST
,
DELETE
, CONSTRUCTOR
,
or DESTRUCTOR
.id
- the name of the symbol
java.lang.ArrayIndexOutOfBoundsException
- this runtime exception is thrown if index
is out of
bounds.CAST
,
DELETE
,
CONSTRUCTOR
,
DESTRUCTOR
public static java.lang.String getBuiltinName(int index)
index
- the index of the builtin method that is
desired. Generally, one of CAST
,
DELETE
, CONSTRUCTOR
,
or DESTRUCTOR
.
java.lang.ArrayIndexOutOfBoundsException
- this runtime exception is thrown if index
is out of
bounds.CAST
,
DELETE
,
CONSTRUCTOR
,
DESTRUCTOR
public static java.lang.String getVectorEntry(java.lang.String methodName)
methodName
- the name of the method that is an element
in the entry point vector.public static java.lang.String getHeaderFile(SymbolID id)
public static java.lang.String getSourceFile(SymbolID id)
public static java.lang.String getSymbolName(SymbolID id)
public static java.lang.String getEnumName(SymbolID id)
public static java.lang.String getExternalName(SymbolID id)
public static java.lang.String getExternalFunc(SymbolID id)
public static java.lang.String getObjectName(SymbolID id)
public static java.lang.String getArrayName(SymbolID id)
public static java.lang.String getEPVName(SymbolID id)
public static java.lang.String getSEPVName(SymbolID id)
public static java.lang.String getNewName(SymbolID id)
public static java.lang.String getRemoteName(SymbolID id)
public static java.lang.String getSetEPVName(SymbolID id)
public static java.lang.String getSetSEPVName(SymbolID id)
public static java.lang.String getStaticsName(SymbolID id)
public static java.lang.String getInitName(SymbolID id)
public static java.lang.String getFiniName(SymbolID id)
public static java.lang.String getVersionName(SymbolID id)
public static java.lang.String getExceptionType()
public static java.lang.String getClassType()
public static java.lang.String getInterfaceType()
public static java.lang.String getSymbolType(Symbol sym)
public static java.lang.String getReturnString(Type type) throws CodeGenerationException
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 getCast(Method method, java.lang.String self) throws CodeGenerationException
CodeGenerationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |