public class OmniBackendDriver
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
OmniBackendDriver.Lang |
Constructor and Description |
---|
OmniBackendDriver(OmniBackendDriver.Lang lang)
Constructs a new OmniBackendDriver object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
decompile(java.lang.String outputFilepath,
XcodeML xcodeml,
int maxColumns,
boolean lineDirectives)
Decompile the XcodeML file into Fortran code.
|
boolean |
decompileFromFile(java.lang.String outputFilepath,
java.lang.String inputFilepath,
int maxColumns,
boolean lineDirectives)
Decompile the XcodeML file into Fortran code.
|
public OmniBackendDriver(OmniBackendDriver.Lang lang) throws xcodeml.util.XmException
lang
- Language of output.xcodeml.util.XmException
- If instantiation of the XmToolFactory fails.public boolean decompile(java.lang.String outputFilepath, XcodeML xcodeml, int maxColumns, boolean lineDirectives)
outputFilepath
- Fortran output file path.xcodeml
- XcodeML translation unit.maxColumns
- Maximum number of column for the output file.lineDirectives
- If true, preprocessor line directives are added.public boolean decompileFromFile(java.lang.String outputFilepath, java.lang.String inputFilepath, int maxColumns, boolean lineDirectives)
outputFilepath
- Fortran output file path.inputFilepath
- XcodeML input file path.maxColumns
- Maximum number of column for the output file.lineDirectives
- If true, preprocessor line directives are added.