com.puppycrawl.tools.checkstyle.checks.indentation
public class IndentLevel extends Object
Constructor Summary | |
---|---|
IndentLevel(int aIndent)
Creates new instance with one accaptable indentation level. | |
IndentLevel(IndentLevel aBase, int aOffset)
Creates new instance for nested structure. |
Method Summary | |
---|---|
boolean | accept(int aIndent)
Checks if given indentation is accaptable. |
void | addAcceptedIndent(int aIndent)
Adds one more acceptable indentation level. |
void | addAcceptedIndent(IndentLevel aIndent)
Adds one more acceptable indentation level. |
boolean | gt(int aIndent) |
boolean | isMultiLevel()
Checks wether we have more than one level. |
String | toString() |
Parameters: aIndent accaptable indentation level.
Parameters: aBase parent's level aOffset offset from parent's level.
Parameters: aIndent indentation to check.
Returns: true if givent indentation is acceptable, false otherwise.
Parameters: aIndent new acceptable indentation.
Parameters: aIndent new acceptable indentation.
Parameters: aIndent indentation to check.
Returns: true if aIndent
less then minimal of
accaptable indentation levels, false otherwise.
Returns: wether we have more than one level.
Returns: string representation of the object.