|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jmatchparser.template.MatchTemplate
public class MatchTemplate
A template, usually loaded from a file, that is used by the Parser
for matching.
| Nested Class Summary | |
|---|---|
static interface |
MatchTemplate.MatchTemplateResolver
Interface to resolve additional templates from $INCLUDE
statements. |
| Constructor Summary | |
|---|---|
MatchTemplate(Class<?> clazz,
String resourceName,
String encoding,
Formatter... formatters)
Load a match template from a resource (a "file" on the class path). |
|
MatchTemplate(File file,
String encoding,
Formatter... formatters)
Load a match template from a file. |
|
MatchTemplate(MatchTemplate.MatchTemplateResolver resolver,
String templateName,
BufferedReader br,
Formatter... formatters)
Load a match template from a custom reader. |
|
MatchTemplate(String matchLanguage,
MatchTemplate.MatchTemplateResolver resolver,
String templateName,
BufferedReader br,
Formatter... formatters)
Load a match template from a custom reader using a custom match language. |
|
MatchTemplate(String filename,
String encoding,
Formatter... formatters)
Load a match template from a file. |
|
| Method Summary | |
|---|---|
void |
enableCoveredStatementsTracing()
Enable tracing of covered statements. |
List<String> |
getIncludedTemplateFileNames()
Get a list of template file names that are used by this template. |
List<String> |
getUncoveredStatements()
Get a list of uncovered statements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatchTemplate(String filename,
String encoding,
Formatter... formatters)
throws IOException
filename - Name of the fileencoding - File encodingformatters - Additional formatters to use (optional)
IOException
public MatchTemplate(File file,
String encoding,
Formatter... formatters)
throws IOException
file - The fileencoding - File encodingformatters - Additional formatters to use (optional)
IOException
public MatchTemplate(Class<?> clazz,
String resourceName,
String encoding,
Formatter... formatters)
throws IOException
clazz - Class to use as a base for finding the resourceresourceName - Name of the resourceencoding - File encodingformatters - Additional formatters to use (optional)
IOException
public MatchTemplate(MatchTemplate.MatchTemplateResolver resolver,
String templateName,
BufferedReader br,
Formatter... formatters)
throws IOException
resolver - Match template resolver for resolving additional template
names ($INCLUDE), optionaltemplateName - Name of the templatebr - Reader to read the template fromformatters - Additional formatters to use (optional)
IOException
public MatchTemplate(String matchLanguage,
MatchTemplate.MatchTemplateResolver resolver,
String templateName,
BufferedReader br,
Formatter... formatters)
throws IOException
matchLanguage - The match language (currently only "plain" is
supported)resolver - Match template resolver for resolving additional template
names ($INCLUDE), optionaltemplateName - Name of the templatebr - Reader to read the template fromformatters - Additional formatters to use (optional)
IOException| Method Detail |
|---|
public void enableCoveredStatementsTracing()
getUncoveredStatements()public List<String> getUncoveredStatements()
enableCoveredStatementsTracing() has been called before parsing.
public List<String> getIncludedTemplateFileNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||