|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.BabelConfiguration
public class BabelConfiguration
This class provides access to configuration information (including user options) required by the parsers and backend. This class originally envisaged as a singleton. However, it makes sense to have several of them when trying to do several runs in a single command line.
Field Summary | |
---|---|
static java.lang.String |
CONTRACT_ENFORCER
|
static java.lang.String |
CONTRACT_POLICY
|
static java.lang.String |
FUND_EXCEPTION
|
static java.lang.String |
INV_EXCEPTION
|
static java.lang.String |
OPTIONAL_RMI
|
static java.lang.String |
POST_EXCEPTION
|
static java.lang.String |
PRE_EXCEPTION
|
static int |
sidl_bool_array
These are the values returned by calling the _type function query on an array. |
static int |
sidl_char_array
|
static int |
sidl_dcomplex_array
|
static int |
sidl_double_array
|
static int |
sidl_fcomplex_array
|
static int |
sidl_float_array
|
static int |
sidl_int_array
|
static int |
sidl_interface_array
|
static int |
sidl_long_array
|
static int |
sidl_opaque_array
|
static int |
sidl_string_array
|
Constructor Summary | |
---|---|
BabelConfiguration()
Since this is a singleton class, its constructor is protected. |
Method Summary | |
---|---|
void |
addExcluded(RegexMatch rm)
Add another regular expression to the list of excluded regular expressions. |
void |
addIncluded(java.lang.String str)
Add another regular expression to the list of included regular expressions. |
void |
addToRepositoryPath(java.lang.String new_path)
Adds a new entry to the repository path. |
static java.lang.String |
arrayType(int type)
|
java.lang.Object |
clone()
Make a copy of the configuration. |
boolean |
excludeExternal()
Return the value of the exclude external symbol code generation user option. |
boolean |
generateClient()
Return the value of the client generation user option. |
boolean |
generateContracts()
Return whether or not contract enforcement code should be generated. |
boolean |
generateHooks()
Return the value of the pre/post method hooks generation user option. |
boolean |
generateServer()
Return the value of the server generation user option. |
boolean |
generateStdlib()
Return the value of the SIDL stdlib generation user option. |
boolean |
generateText()
Return the value of the text generation user option. |
static java.lang.String |
getArrayOrderName(int i)
|
static java.lang.String |
getBaseClass()
Return the full name of the root of the class type hierarchy. |
static java.lang.String |
getBaseExceptionClass()
Return the full name of the base exception class. |
static java.lang.String |
getBaseExceptionInterface()
The full name of the base of the exception type hierarchy. |
static java.lang.String |
getBaseExceptionType()
The full name of the fundamental exception type. |
static java.lang.String |
getBaseInterface()
Return the full name of the root of the SIDL type hierarchy. |
boolean |
getCCAMode()
|
static java.lang.String |
getClassInfo()
Return the full name of the ClassInfo interface. |
static java.lang.String |
getClassInfoI()
Return the full name of the class implementing ClassInfo interface. |
boolean |
getCommentLocalOnly()
Return the value of the comment local methods only option. |
java.util.List |
getExcludedList()
Return the list of RegexMatch objects
that should be excluded from code generation. |
static java.lang.String |
getFundamentalException()
The full name of the most basic exception type. |
boolean |
getGenMakefile()
Should a Makefile be generated. |
boolean |
getHasBindC()
|
java.util.List |
getIncludedList()
Return the list of RegexMatch objects
that should be included from code generation. |
static java.lang.String |
getInvariantViolation()
The full name of the Invariant Violation type implicit in all methods of classes with invariants. |
static java.lang.String |
getLangSpecific()
|
java.lang.String |
getMakefileName()
The full name of the file associated with generated makefile fragments. |
java.lang.String |
getMakePrefix()
Return the make prefix option. |
static int |
getMaximumArray()
Return the maximum array dimension. |
static java.lang.String |
getMemoryAllocationException()
|
boolean |
getMultiMode()
|
static java.lang.String |
getNotImplemented()
|
static java.lang.String |
getOptionalRmiMacro()
Return the full name of the base exception class. |
java.lang.String |
getOutputDirectory()
Return the value of the output directory user option. |
static java.lang.String |
getPostconditionViolation()
The full name of the Postcondition Violation type implicit in all methods with postconditions. |
static java.lang.String |
getPreconditionViolation()
The full name of the Precondition Violation type implicit in all methods with preconditions. |
boolean |
getProtectLastTimeModified()
|
boolean |
getRenameSplicers()
|
java.lang.String |
getRepositoryPath()
Return the value of the repository path. |
static java.lang.String |
getRMITicket()
|
static java.lang.String |
getRuntimeException()
The full name of the exception type implicit in all methods. |
static java.lang.String |
getSerializableType()
|
boolean |
getShortFileNames()
Return the value of the short file names option. |
boolean |
getSuppressIOR()
|
boolean |
getSuppressStub()
|
java.lang.String |
getTargetLanguage()
|
java.lang.String |
getVPathDirectory()
Return the value of the vpath directory user option. |
static boolean |
isSIDLBaseClass(SymbolID id)
Return whether the specified symbol belongs to the SIDL namespace. |
boolean |
isVerbose()
Return the value of the parser check user option. |
boolean |
makeCxxCheckNullIOR()
Return the value of the make package subdirs user option. |
boolean |
makeGlueSubdirs()
Return the value of the package and glue subdirs user option. |
boolean |
makeLanguageSubdir()
Return the value of the language subdirectory user option. |
boolean |
makePackageSubdirs()
Return the value of the make package subdirs user option. |
boolean |
parseCheckOnly()
Return the value of the parser check user option. |
void |
removeFromRepositoryPath(java.lang.String path)
|
void |
setCCAMode(boolean value)
Set the rename splicers flag to true or false . |
void |
setCommentLocalOnly(boolean localOnly)
Set the value of the comment local methods only option. |
void |
setCxxCheckNullIOR(boolean checkNullIOR)
Set the value of the Cxx NullIORException checking option. |
void |
setExcludeExternal(boolean val)
Set the value of the exclude external symbol code generation user option. |
void |
setGenerateClient(boolean generate)
Set the value of the client generation user option. |
void |
setGenerateHooks(boolean generate)
Set the value of the pre/post method hooks generation user option. |
void |
setGenerateServer(boolean generate)
Set the value of the server generation user option. |
void |
setGenerateStdlib(boolean generate)
Set the value of the SIDL stdlib generation user option. |
void |
setGenerateText(boolean generate)
Set the value of the text generation user option. |
void |
setHasBindC(boolean bindc)
Set if this Fortran compiler supports the iso_c_binding module |
void |
setMakeGlueSubdirs(boolean make_glue_subdirs)
Set the value of the package and glue subdirs user option. |
void |
setMakeLanguageSubdir(boolean make_language_subdir)
Specify whether files for each language should be generated in a separate subdirectory. |
void |
setMakePackageSubdirs(boolean make_subdirs)
Set the value of the make package subdirs user option. |
void |
setMakePrefix(java.lang.String prefix)
Set the make prefix and makefile name options. |
void |
setMultiMode(boolean multi_mode)
|
void |
setOutputDirectory(java.lang.String dir)
Set the value of the output directory user option. |
void |
setParseCheckOnly(boolean parse)
Set the value of the parser check user option. |
void |
setProtectLastTimeModified(boolean value)
|
void |
setRenameSplicers(boolean value)
Set the rename splicers flag to true or false . |
void |
setShortFileNames(boolean shortFileNames)
Set the value of the short file names option. |
void |
setSuppressContracts(boolean suppress)
Set contract suppression to true or false . |
void |
setSuppressIOR(boolean value)
Set the IOR suppression to true or false . |
void |
setSuppressStub(boolean value)
Set the stub suppression to true or false . |
void |
setSuppressTimestamps(boolean suppress)
Set the value of the timestamp suppression user option. |
void |
setTargetLanguage(java.lang.String lang)
Set the value of the target language user option. |
void |
setVerbose(boolean verbose)
Set the value of the parser check user option. |
void |
setVPathDirectory(java.lang.String dir)
Set the value of the vpath directory user option. |
boolean |
suppressTimestamps()
Return the value of the timestamp suppression user option. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FUND_EXCEPTION
public static final java.lang.String PRE_EXCEPTION
public static final java.lang.String POST_EXCEPTION
public static final java.lang.String INV_EXCEPTION
public static final java.lang.String CONTRACT_ENFORCER
public static final java.lang.String CONTRACT_POLICY
public static final java.lang.String OPTIONAL_RMI
public static final int sidl_bool_array
public static final int sidl_char_array
public static final int sidl_dcomplex_array
public static final int sidl_double_array
public static final int sidl_fcomplex_array
public static final int sidl_float_array
public static final int sidl_int_array
public static final int sidl_long_array
public static final int sidl_opaque_array
public static final int sidl_string_array
public static final int sidl_interface_array
Constructor Detail |
---|
public BabelConfiguration()
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public static java.lang.String arrayType(int type)
public static java.lang.String getBaseInterface()
public static java.lang.String getBaseClass()
public static java.lang.String getClassInfo()
public static java.lang.String getClassInfoI()
public static java.lang.String getBaseExceptionInterface()
public static java.lang.String getBaseExceptionClass()
public static java.lang.String getOptionalRmiMacro()
public static java.lang.String getFundamentalException()
public static java.lang.String getRuntimeException()
public static java.lang.String getInvariantViolation()
public static java.lang.String getPreconditionViolation()
public static java.lang.String getPostconditionViolation()
public static java.lang.String getLangSpecific()
public static java.lang.String getNotImplemented()
public static java.lang.String getMemoryAllocationException()
public static java.lang.String getBaseExceptionType()
public static java.lang.String getRMITicket()
public static java.lang.String getSerializableType()
public java.lang.String getMakefileName()
public boolean getGenMakefile()
public static int getMaximumArray()
public void setMultiMode(boolean multi_mode)
public boolean getMultiMode()
public static boolean isSIDLBaseClass(SymbolID id)
public void setSuppressIOR(boolean value)
true
or false
.
public boolean getSuppressIOR()
public void setSuppressStub(boolean value)
true
or false
.
public boolean getSuppressStub()
public void setRenameSplicers(boolean value)
true
or false
.
public boolean getRenameSplicers()
public void setCCAMode(boolean value)
true
or false
.
public boolean getProtectLastTimeModified()
public void setProtectLastTimeModified(boolean value)
public boolean getCCAMode()
public void setSuppressContracts(boolean suppress)
true
or false
.
public boolean generateContracts()
public static java.lang.String getArrayOrderName(int i)
public void setGenerateClient(boolean generate)
public boolean generateClient()
public void setGenerateHooks(boolean generate)
public boolean generateHooks()
public void setGenerateServer(boolean generate)
public boolean generateServer()
public void setGenerateText(boolean generate)
public boolean generateText()
public void setGenerateStdlib(boolean generate)
public boolean generateStdlib()
public void setParseCheckOnly(boolean parse)
public boolean parseCheckOnly()
public void setVerbose(boolean verbose)
public boolean isVerbose()
public void setCommentLocalOnly(boolean localOnly)
public boolean getCommentLocalOnly()
public void setShortFileNames(boolean shortFileNames)
public boolean getShortFileNames()
public void setSuppressTimestamps(boolean suppress)
public boolean suppressTimestamps()
public void setMakePackageSubdirs(boolean make_subdirs)
public boolean makePackageSubdirs()
public void setMakeGlueSubdirs(boolean make_glue_subdirs)
public boolean makeGlueSubdirs()
public void setCxxCheckNullIOR(boolean checkNullIOR)
public boolean makeCxxCheckNullIOR()
public void setMakeLanguageSubdir(boolean make_language_subdir)
public boolean makeLanguageSubdir()
public void setOutputDirectory(java.lang.String dir)
public java.lang.String getOutputDirectory()
public void setVPathDirectory(java.lang.String dir)
public java.lang.String getVPathDirectory()
public void setTargetLanguage(java.lang.String lang)
public java.lang.String getTargetLanguage()
public void setHasBindC(boolean bindc)
public boolean getHasBindC()
public void addToRepositoryPath(java.lang.String new_path)
public void removeFromRepositoryPath(java.lang.String path)
public java.lang.String getRepositoryPath()
public void addExcluded(RegexMatch rm)
public java.util.List getExcludedList()
RegexMatch
objects
that should be excluded from code generation.
public void addIncluded(java.lang.String str)
public java.util.List getIncludedList()
RegexMatch
objects
that should be included from code generation.
public void setExcludeExternal(boolean val)
public boolean excludeExternal()
public java.lang.String getMakePrefix()
public void setMakePrefix(java.lang.String prefix)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |