|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.incava.analysis.Analyzer
public class Analyzer
Bridge between violations and reports.
| Constructor Summary | |
|---|---|
Analyzer(Report r)
Creates an analyzer with a report. |
|
| Method Summary | |
|---|---|
void |
addViolation(java.lang.String message,
int beginLine,
int beginColumn,
int endLine,
int endColumn)
Adds a violation from a beginning position to an ending position. |
void |
addViolation(java.lang.String message,
Token token)
Adds a violation with a single token. |
void |
addViolation(java.lang.String message,
Token firstToken,
Token lastToken)
Adds a violation spanning from one token to another. |
protected Report |
getReport()
Returns the report used by this analyzer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Analyzer(Report r)
r - The report that this analyzer sends violations to.| Method Detail |
|---|
public void addViolation(java.lang.String message,
Token token)
message - The violation message.token - The token to which the violation applies.
public void addViolation(java.lang.String message,
Token firstToken,
Token lastToken)
message - The violation message.firstToken - The first token this violation spans.lastToken - The last token this violation spans, inclusive.
public void addViolation(java.lang.String message,
int beginLine,
int beginColumn,
int endLine,
int endColumn)
message - The violation message.beginLine - The line where this violation begins.beginColumn - The column where this violation begins.endLine - The line where this violation ends.endColumn - The column where this violation ends.protected Report getReport()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||