java.lang.Object
edu.hm.hafner.analysis.registry.ParserRegistry
Provides a registry for all available
parsers.- Autor:
- Lorenz Munsch
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanReturns whether a parser with the specified ID exists.Returns theParserDescriptorwith the specified ID.Returns all descriptors.getIds()Returns the IDs of all available parsers.getNames()Returns the names of all available parsers.static voidUtility to create a report with all available descriptors.
-
Konstruktordetails
-
ParserRegistry
public ParserRegistry()Creates a new registry instance.
-
-
Methodendetails
-
getIds
Returns the IDs of all available parsers.- Gibt zurück:
- a set of all IDs
-
getNames
Returns the names of all available parsers.- Gibt zurück:
- a set of all names
-
contains
Returns whether a parser with the specified ID exists.- Parameter:
id- the ID to check- Gibt zurück:
trueif the parser exists,falseotherwise
-
get
Returns theParserDescriptorwith the specified ID.- Parameter:
id- the ID of the parser- Gibt zurück:
- the requested descriptor
- Löst aus:
NoSuchElementException- if no such parser exists
-
getAllDescriptors
Returns all descriptors.- Gibt zurück:
- all supported descriptors
-
main
Utility to create a report with all available descriptors. The report will be stored in the file "SUPPORTED-FORMATS.md" in the top level directory.- Parameter:
unused- not used- Löst aus:
IOException- of the file `SUPPORTED-FORMATS.md` cannot be written locally
-