public class ManifestParser extends Object
Constructor and Description |
---|
ManifestParser(Path fileName)
Constructor specifying fileName to be analyzed and parsed
|
ManifestParser(String fileName)
Shorthand for path constructor
|
Modifier and Type | Method and Description |
---|---|
List<String> |
execute()
This method serves for executing the parser function.
|
Path |
getFilePath()
Getter of filePath
|
Map<String,String> |
getLoadedResources()
getter of loaded resources
|
String |
getMode()
Getter of current mode
|
List<String> |
processFile()
Processes lesscache file.
|
List<String> |
processLine(String line,
Path context,
int lineNumber)
Processes line of the manifest file by executing module parsers.
|
void |
setAbsolute(String absolute)
Setter for absolute.
|
void |
setMode(String mode)
Setter of current mode
|
public ManifestParser(Path fileName)
fileName
- public ManifestParser(String fileName)
fileName
- public void setAbsolute(String absolute)
absolute
- path of the server rootpublic Path getFilePath()
public String getMode()
public void setMode(String mode)
mode
- public Map<String,String> getLoadedResources()
public List<String> execute() throws IOException
IOException
- when accessing of any file or resource stated in the lesscache file failed and application was not able to continue parsingpublic List<String> processFile() throws IOException
context
- IOException
- when accessing of any file or resource stated in the lesscache file failed and application was not able to continue parsingpublic List<String> processLine(String line, Path context, int lineNumber) throws ModuleException
line
- to be processedcontext
- of file (relative path against its importer)lineNumber
- number of processed lineModuleException
- when module encountered an unrecoverable errorCopyright © 2013. All Rights Reserved.