public abstract class AbstractParserModule extends Object implements ParserModule
| Modifier | Constructor and Description |
|---|---|
|
AbstractParserModule()
Constructor with null.
|
|
AbstractParserModule(String parserId)
Constructor with same value for everything: source directory and file extension equal parserId.
|
|
AbstractParserModule(String parserId,
String extension)
Constructor with same value for parser id and source directory.
|
protected |
AbstractParserModule(String sourceDirectory,
String parserId,
String... extensions) |
protected |
AbstractParserModule(String sourceDirectory,
String extension,
String parserId)
Deprecated.
can cause confusion with constructor with multiple extensions
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getExtensions()
Returns the supported file extensions for a given module.
|
String |
getParserId()
Returns the parser id for a given module.
|
String |
getSourceDirectory()
Returns the directory that contains source files for a given module.
|
public AbstractParserModule()
public AbstractParserModule(String parserId)
public AbstractParserModule(String parserId, String extension)
protected AbstractParserModule(String sourceDirectory, String extension, String parserId)
sourceDirectory - not nullextension - not nullparserId - not nullpublic String getSourceDirectory()
getSourceDirectory in interface ParserModulepublic String[] getExtensions()
getExtensions in interface ParserModulepublic String getParserId()
getParserId in interface ParserModuleCopyright © 2005–2019 The Apache Software Foundation. All rights reserved.