public final class RouterSoftware
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
RouterSoftware.BuildingPhaseBuilder
Builds building phases.
|
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
CHECK_STRING
String für "check".
|
private static java.lang.String |
DIRECTORY_CONTAINING_PACKAGE_DESCRIPTIONS
Directory containing files describing package contents.
|
private static java.lang.String |
DIRECTORY_CONTAINING_TYPE_DEFINITIONS
Directory containing type definitions.
|
private static java.lang.String |
DIRECTORY_CONTAINING_VARIABLE_DEFINITIONS
Directory containing variable definitions.
|
private static java.lang.String |
FILE_ENDING_PACKAGE_DESCRIPTIONS
Ending of files describing package contents.
|
private static java.lang.String |
FILE_ENDING_TYPE_DEFINITIONS
Ending of files with type definitions.
|
private static java.lang.String |
FILE_ENDING_VARIABLE_DEFINITIONS
Ending of files with variable definitions.
|
private java.util.Map<java.lang.String,Package> |
packageList
the list of Packages.
|
private java.lang.String |
path
The path to the software directory.
|
private static java.lang.String |
TXT_STRING
String für ".txt".
|
private TypeFileManager |
typeFileManager
TypeFileManager to store all TypeFiles.
|
private java.util.Map<java.lang.String,java.lang.String> |
weakList
represents the list of weak variable definitions.
|
| Constructor and Description |
|---|
RouterSoftware()
Default constructor.
|
RouterSoftware(java.lang.String path)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Package |
add(Package pkg) |
private void |
addBuildingPhases(Controller controller,
java.util.Map<java.lang.String,java.io.File> files,
RouterSoftware.BuildingPhaseBuilder builder)
Adds building phases to passed controller.
|
boolean |
equals(java.lang.Object o) |
AbstractVariableDefinition |
findDefinition(java.lang.String def) |
AbstractVariableDefinition |
findDefinition(java.lang.String def,
VariableContext context) |
NamedVariableType |
findTypeByName(java.lang.String name)
Returniert einen regulaeren Ausdruck.
|
private java.util.Map<java.lang.String,AbstractVariableDefinition> |
generateDefList(VariableContext context)
generating a list of all Definitions.
|
private java.util.Map<java.lang.String,NamedVariableType> |
generateTypesLists()
generating a list of all Types.
|
RouterConfiguration |
getConfiguration(java.lang.String configuration) |
RouterConfiguration |
getDefaultConfiguration() |
java.util.Map<java.lang.String,Package> |
getPackages() |
java.lang.String |
getPath() |
private RouterSoftware |
getThis()
Getter for this Object.
|
Package |
getThisPackage(java.lang.String pkgName)
returns the package with this package name.
|
TypeFileManager |
getTypeFileManager()
Getter for the TypeFileManager.
|
java.lang.String |
getVersion() |
java.util.Map<java.lang.String,java.lang.String> |
getWeakList() |
int |
hashCode() |
boolean |
hasThisPackage(java.lang.String pkgName)
returns true, if the package with this Name exists.
|
private static final java.lang.String CHECK_STRING
private static final java.lang.String TXT_STRING
private static final java.lang.String DIRECTORY_CONTAINING_TYPE_DEFINITIONS
private static final java.lang.String DIRECTORY_CONTAINING_VARIABLE_DEFINITIONS
private static final java.lang.String DIRECTORY_CONTAINING_PACKAGE_DESCRIPTIONS
private static final java.lang.String FILE_ENDING_TYPE_DEFINITIONS
private static final java.lang.String FILE_ENDING_VARIABLE_DEFINITIONS
private static final java.lang.String FILE_ENDING_PACKAGE_DESCRIPTIONS
private final java.lang.String path
private final transient java.util.Map<java.lang.String,Package> packageList
private final transient java.util.Map<java.lang.String,java.lang.String> weakList
private final TypeFileManager typeFileManager
public RouterSoftware()
public RouterSoftware(java.lang.String path)
throws TypeDoesNotExistException,
ScannerException,
java.lang.InterruptedException,
java.io.IOException,
ReaderException,
ParserException,
TypeExceptions
path - the path to the software.TypeDoesNotExistException - if some referenced type is not found.ScannerException - if scanning fails.java.lang.InterruptedException - if asynchronous scanning/parsing has been interrupted.java.io.IOException - if an I/O error occurs while reading files.ReaderException - if some necessary package file is missing.ParserException - if parsing files.TypeExceptions - if a cycle is detected or the reference is unresolved.public TypeFileManager getTypeFileManager()
private RouterSoftware getThis()
private void addBuildingPhases(Controller controller, java.util.Map<java.lang.String,java.io.File> files, RouterSoftware.BuildingPhaseBuilder builder)
controller - The Controller to use.files - The files to iterate over.builder - Builds the building phases for the controller according to the files passed.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean hasThisPackage(java.lang.String pkgName)
pkgName - this Packagepublic Package getThisPackage(java.lang.String pkgName)
pkgName - name of the desired Packagepublic java.util.Map<java.lang.String,Package> getPackages()
public java.lang.String getPath()
public java.lang.String getVersion()
private java.util.Map<java.lang.String,NamedVariableType> generateTypesLists()
private java.util.Map<java.lang.String,AbstractVariableDefinition> generateDefList(VariableContext context)
context - .public AbstractVariableDefinition findDefinition(java.lang.String def)
def - defpublic AbstractVariableDefinition findDefinition(java.lang.String def, VariableContext context)
context - .def - defpublic java.util.Map<java.lang.String,java.lang.String> getWeakList()
public NamedVariableType findTypeByName(java.lang.String name)
name - Der Name der zum Namen eines Typen passen muss.public RouterConfiguration getDefaultConfiguration() throws ParserException, TypeDoesNotExistException, ScannerException, java.lang.InterruptedException, java.io.IOException, ReaderException, TypeExceptions
TypeDoesNotExistException - if some referenced type is not found.ScannerException - if scanning fails.java.lang.InterruptedException - if asynchronous scanning/parsing has been interrupted.java.io.IOException - if an I/O error occurs while reading files.ReaderException - if some necessary package file is missing.ParserException - if parsing files.TypeExceptions - if a cycle is detected or the reference is unresolved.public RouterConfiguration getConfiguration(java.lang.String configuration) throws ParserException, TypeDoesNotExistException, ScannerException, java.lang.InterruptedException, java.io.IOException, ReaderException, TypeExceptions
configuration - The configuration location.TypeDoesNotExistException - if some referenced type is not found.ScannerException - if scanning fails.java.lang.InterruptedException - if asynchronous scanning/parsing has been interrupted.java.io.IOException - if an I/O error occurs while reading files.ReaderException - if some necessary package file is missing.ParserException - if parsing files.TypeExceptions - if a cycle is detected or the reference is unresolved.