public abstract class AbstractValidation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
errorText |
| Constructor and Description |
|---|
AbstractValidation(java.lang.String errorText) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIndentationOfKeyWord(BjoernKeywords bjoernKeyword,
java.lang.String errorText,
int expectedSpaces,
java.lang.String[] lines,
int index) |
protected void |
checkIndentationOfStatement(java.lang.String errorText,
int expectedSpaces,
java.lang.String[] lines,
int index) |
protected java.lang.String |
createEmptySpaces(int count) |
protected java.lang.String |
getTrimmedLine(java.lang.String[] lines,
int index) |
abstract void |
validate(java.lang.String[] lines,
int index) |
public abstract void validate(java.lang.String[] lines,
int index)
throws BjoernValidationsException
BjoernValidationsExceptionprotected java.lang.String getTrimmedLine(java.lang.String[] lines,
int index)
protected void checkIndentationOfKeyWord(BjoernKeywords bjoernKeyword, java.lang.String errorText, int expectedSpaces, java.lang.String[] lines, int index) throws BjoernValidationsException
BjoernValidationsExceptionprotected void checkIndentationOfStatement(java.lang.String errorText,
int expectedSpaces,
java.lang.String[] lines,
int index)
throws BjoernValidationsException
BjoernValidationsExceptionprotected java.lang.String createEmptySpaces(int count)