public class NameMappingWorker extends AbstractPatternWorker
SourceNameMapper
runtime class. This allows RUN FILENAME
constructs to be
mapped into the correct target classname.
This class only gathers the minimum data required to operate the
convertName
method of the SourceNameMapper
class. This minimizes the work and code needed. In the future, it
would be easily possible to gather the method level data which would
allow additional Progress procedure/function to Java method mapping.
Modifier and Type | Class and Description |
---|---|
class |
NameMappingWorker.Library
Class whose instance is actually registered with the pattern engine's
symbol resolver as the primary library of name mapping user
functions.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
caseSens
Case sensitivity flag for the Progress file name data.
|
private java.lang.String |
fileSep
Name element separator used for the Progress file name data.
|
private boolean |
initialized
Flag to remember if we have initialized the source name mapper.
|
private java.util.Map |
p2jmap
Maps Progress source file names to Java class names.
|
private java.lang.String |
pathSep
Path separator used for the Progress file name data.
|
private java.lang.String |
pkgroot
Base path for all Java packages.
|
private java.lang.String |
proroot
Base path for 4GL code.
|
private java.util.Map |
sigmap
Maps Progress source file names to external procedure signature.
|
resolver
Constructor and Description |
---|
NameMappingWorker()
Default constructor which defines the symbol libraries to be registered.
|
finish, getCopy, getLibrary, getSource, initialize, registerTree, resolveConstant, setLibrary, visitAst
private java.util.Map p2jmap
private java.util.Map sigmap
private java.lang.String pkgroot
private java.lang.String proroot
private java.lang.String fileSep
private java.lang.String pathSep
private boolean caseSens
private boolean initialized