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 nullprotected AbstractParserModule(String sourceDirectory, String parserId, String... extensions)
sourceDirectory
- not nullparserId
- not null (usually equals sourceDirectory)extensions
- not nullpublic String getSourceDirectory()
getSourceDirectory
in interface ParserModule
public String[] getExtensions()
getExtensions
in interface ParserModule
public String getParserId()
getParserId
in interface ParserModule
Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.