org.vishia.java2C
Class Java2C_Main.InputFileParseResult

java.lang.Object
  extended by org.vishia.java2C.Java2C_Main.InputFileParseResult
All Implemented Interfaces:
ConfigSrcPathPkg_ifc
Enclosing class:
Java2C_Main

public static final class Java2C_Main.InputFileParseResult
extends java.lang.Object
implements ConfigSrcPathPkg_ifc

The instance of this class is filled with the result of parsing an input file given with -if:INPFILE cmd line calling argument. The instance is created and used inside the routine Java2C_Main#readConfigFile(String sFileName). That routine parses the result and calls ZbnfJavaOutput.setOutputStrict(Object result, ZbnfParseResultItem, Report). The result is this instance.
All inner elements follows the syntax.zbnf, see explaination on Java2C.main(String[])


Nested Class Summary
static class Java2C_Main.InputFileParseResult.Set
          Subclass to pour in the result of the set::=...
 
Field Summary
private  java.util.List<java.lang.String> listSrcPath
          List to hold all stcPath.
private  java.util.List<java.lang.String> listStcPath
          List to hold all stcPath.
private  java.util.Map<java.lang.String,ConfigSrcPathPkg_ifc.Set> packageReplacement
          List to hold all <set>.
private  java.util.List<java.lang.String> srcToTranslate
          List to hold all <set>.
 
Constructor Summary
Java2C_Main.InputFileParseResult()
           
 
Method Summary
 void add_packageReplacement(Java2C_Main.InputFileParseResult.Set value)
          ZBNF-parser-result: adds a component<...?
 void add_srcPath(java.lang.String value)
          ZBNF-parser-result: adds an element <...?
 void add_srcToTranslate(java.lang.String value)
          ZBNF-parser-result: Adds the instance after it is filled with the content of a <set>.
 void add_stcPath(java.lang.String value)
          ZBNF-parser-result: adds an element <...?
 ConfigSrcPathPkg_ifc.Set getCPathPrePostfixForPackage(java.lang.String javaPackagePath)
          Returns the Set of path, prefix and postfix for a given package path.
 java.util.Set<java.util.Map.Entry<java.lang.String,ConfigSrcPathPkg_ifc.Set>> getListPackageReplacements()
           
 java.util.List<java.lang.String> getSrcPathes()
          Returns the list of all pathes parsed with srcPath::=
 java.util.List<java.lang.String> getSrcToTranslate()
          Returns the list of all sources to translate.
 java.util.List<java.lang.String> getStcPathes()
          Returns the list of all pathes parsed with stcPath::=
 Java2C_Main.InputFileParseResult.Set new_packageReplacement()
          ZBNF-parser-result: new component <...?
 Java2C_Main.InputFileParseResult.Set new_set()
          ZBNF-parser-result: Creates an appropriate instance for semantic set.
 void reportConfig(Report report, int reportLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srcToTranslate

private final java.util.List<java.lang.String> srcToTranslate
List to hold all <set>.


listStcPath

private final java.util.List<java.lang.String> listStcPath
List to hold all stcPath. <...?stcPath>.


listSrcPath

private final java.util.List<java.lang.String> listSrcPath
List to hold all stcPath. <...?stcPath>.


packageReplacement

private final java.util.Map<java.lang.String,ConfigSrcPathPkg_ifc.Set> packageReplacement
List to hold all <set>.

Constructor Detail

Java2C_Main.InputFileParseResult

public Java2C_Main.InputFileParseResult()
Method Detail

new_set

public Java2C_Main.InputFileParseResult.Set new_set()
ZBNF-parser-result: Creates an appropriate instance for semantic set. <set>


add_srcToTranslate

public void add_srcToTranslate(java.lang.String value)
ZBNF-parser-result: Adds the instance after it is filled with the content of a <set>.


add_stcPath

public void add_stcPath(java.lang.String value)
ZBNF-parser-result: adds an element <...?stcPsth>.


add_srcPath

public void add_srcPath(java.lang.String value)
ZBNF-parser-result: adds an element <...?stcPsth>.


getStcPathes

public java.util.List<java.lang.String> getStcPathes()
Description copied from interface: ConfigSrcPathPkg_ifc
Returns the list of all pathes parsed with
 stcPath::={ <\"\"?stcPath>| <* :;?stcPath> ? : }.
 

Specified by:
getStcPathes in interface ConfigSrcPathPkg_ifc

getSrcPathes

public java.util.List<java.lang.String> getSrcPathes()
Description copied from interface: ConfigSrcPathPkg_ifc
Returns the list of all pathes parsed with
 srcPath::={ <\"\"?srcPath>| <* :;?srcPath> ? : }.
 

Specified by:
getSrcPathes in interface ConfigSrcPathPkg_ifc

new_packageReplacement

public Java2C_Main.InputFileParseResult.Set new_packageReplacement()
ZBNF-parser-result: new component <...?packageReplacement>.


add_packageReplacement

public void add_packageReplacement(Java2C_Main.InputFileParseResult.Set value)
ZBNF-parser-result: adds a component<...?packageReplacement>.


getCPathPrePostfixForPackage

public ConfigSrcPathPkg_ifc.Set getCPathPrePostfixForPackage(java.lang.String javaPackagePath)
Description copied from interface: ConfigSrcPathPkg_ifc
Returns the Set of path, prefix and postfix for a given package path.

Specified by:
getCPathPrePostfixForPackage in interface ConfigSrcPathPkg_ifc
Returns:
If the package path isn't found, returns null.

getListPackageReplacements

public java.util.Set<java.util.Map.Entry<java.lang.String,ConfigSrcPathPkg_ifc.Set>> getListPackageReplacements()
Specified by:
getListPackageReplacements in interface ConfigSrcPathPkg_ifc

getSrcToTranslate

public java.util.List<java.lang.String> getSrcToTranslate()
Description copied from interface: ConfigSrcPathPkg_ifc
Returns the list of all sources to translate. A member of the list is either a Java file with package from the pkg root with / at separator, at example org/vishia/util/StringPart.java or it is a package with / as separator and on end, at example org/vishia/util/.

Specified by:
getSrcToTranslate in interface ConfigSrcPathPkg_ifc

reportConfig

public void reportConfig(Report report,
                         int reportLevel)
Specified by:
reportConfig in interface ConfigSrcPathPkg_ifc