|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.filters.LimitationsParser
Purpose: Will parse out the limitations which will be used to figure out the subset from the test set and the result set which will be used for comparissons in the gtfC.
Constructor Summary | |
LimitationsParser()
Creates a new limitations/rules parser. |
Method Summary | |
static RuleHolder |
parse(VReader reader,
DescriptorConfigs dcfgs)
Parses the current block in the VReader for the limitations information that is found in that block. |
RuleHolder |
parseFile(java.lang.String file_path,
java.lang.String block_name,
DescriptorList d_vector)
Parses the file given for the block name that is given and for the limitations information that is found in that block. |
void |
printError(java.lang.String error)
The function that prints an error to the output stream. |
void |
printError(java.lang.String message,
int start,
int stop)
Print an error at a specific place inside the current line. |
void |
printErrorAtLineNumber(java.lang.String error,
int line_num)
The function that prints an error and a line number of the file in which the error has occured. |
void |
printErrorTotals()
The function that will print the total number of errors that occured in the file. |
void |
printGeneralError(java.lang.String error)
The function that prints a general error to the output file. |
void |
printWarning(java.lang.String warning)
The function that print a warning message to the output file. |
void |
printWarning(java.lang.String message,
int start,
int stop)
Print an warning at a specific place inside the current line. |
void |
printWarningAtLineNumber(java.lang.String warning,
int line_num)
The function that prints a warning message and the line number that is attributed to this warning. |
void |
setOutput(java.io.PrintWriter output)
Function that allows you to set a different output to which warnings and errors will be written to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LimitationsParser()
Method Detail |
public RuleHolder parseFile(java.lang.String file_path, java.lang.String block_name, DescriptorList d_vector)
file_path
- The path to the file to parse.block_name
- The filter block name, eg GROUND_FILTERd_vector
- The descriptor configs to use.
public static RuleHolder parse(VReader reader, DescriptorConfigs dcfgs) throws java.io.IOException
reader
- The VReader, pointing to the begin directive.dcfgs
- The descriptor configs to use.
java.io.IOException
- if parsing the file fails for some reasonpublic void printError(java.lang.String error)
printError
in interface ErrorWriter
error
- the error that will be printedErrorWriter.printError(String message, int start, int stop)
public void printErrorAtLineNumber(java.lang.String error, int line_num)
printErrorAtLineNumber
in interface ErrorWriter
error
- the error that will be printedline_num
- the line numberpublic void printError(java.lang.String message, int start, int stop)
ErrorWriter
printError
in interface ErrorWriter
message
- the message to print with the errorstart
- the column where the error beginsstop
- the column where the error endspublic void printWarning(java.lang.String message, int start, int stop)
ErrorWriter
printWarning
in interface ErrorWriter
message
- the message to print with the warningstart
- the column where the questionable part beginsstop
- the column where the questionable part endspublic void printErrorTotals()
printErrorTotals
in interface ErrorWriter
public void printGeneralError(java.lang.String error)
printGeneralError
in interface ErrorWriter
error
- the error messagepublic void printWarning(java.lang.String warning)
printWarning
in interface ErrorWriter
warning
- the warning message to be printedpublic void printWarningAtLineNumber(java.lang.String warning, int line_num)
printWarningAtLineNumber
in interface ErrorWriter
warning
- the warning message to be printedline_num
- the line number that this error occured atpublic void setOutput(java.io.PrintWriter output)
setOutput
in interface ErrorWriter
output
- the java.io.PrintWriter stream that you want errors to be
written to.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |