public class IndentLevel extends Object
Constructor and Description |
---|
IndentLevel(IndentLevel aBase,
int aOffset)
Creates new instance for nested structure.
|
IndentLevel(int aIndent)
Creates new instance with one accaptable indentation level.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(int aIndent)
Checks if given indentation is accaptable.
|
void |
addAcceptedIndent(IndentLevel aIndent)
Adds one more acceptable indentation level.
|
void |
addAcceptedIndent(int aIndent)
Adds one more acceptable indentation level.
|
boolean |
gt(int aIndent) |
boolean |
isMultiLevel()
Checks wether we have more than one level.
|
String |
toString() |
public IndentLevel(int aIndent)
aIndent
- accaptable indentation level.public IndentLevel(IndentLevel aBase, int aOffset)
aBase
- parent's levelaOffset
- offset from parent's level.public final boolean isMultiLevel()
public boolean accept(int aIndent)
aIndent
- indentation to check.public boolean gt(int aIndent)
aIndent
- indentation to check.aIndent
less then minimal of
accaptable indentation levels, false otherwise.public void addAcceptedIndent(int aIndent)
aIndent
- new acceptable indentation.public void addAcceptedIndent(IndentLevel aIndent)
aIndent
- new acceptable indentation.Copyright © 2001-2014. All Rights Reserved.