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)
Constructor for AbstractParserModule.
|
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)
parserId
- the parser idpublic AbstractParserModule(String parserId, String extension)
parserId
- the parser idextension
- the file extensionprotected AbstractParserModule(String sourceDirectory, String parserId, String... extensions)
Constructor for AbstractParserModule.
sourceDirectory
- not nullparserId
- not null (usually equals sourceDirectory)extensions
- not nullpublic String getSourceDirectory()
getSourceDirectory
in interface ParserModule
String
object.public String[] getExtensions()
getExtensions
in interface ParserModule
String
objects.public String getParserId()
getParserId
in interface ParserModule
String
object.Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.