public class LevelSpec
extends java.lang.Object
[x,[y]]
has depth 3
Modifier and Type | Field and Description |
---|---|
protected int |
fCurrentDepth |
protected int |
fCurrentLevel |
protected int |
fFromDepth |
protected int |
fFromLevel |
protected boolean |
fIncludeHeads |
protected int |
fToDepth |
protected int |
fToLevel |
Constructor and Description |
---|
LevelSpec() |
LevelSpec(int level)
Define a level specification for all elements on level
level . |
LevelSpec(int level,
boolean includeHeads) |
LevelSpec(int fromLevel,
int toLevel) |
LevelSpec(int fromLevel,
int toLevel,
boolean includeHeads) |
LevelSpec(int fromLevel,
int toLevel,
int fromDepth,
int toDepth,
boolean includeHeads)
Example value set for including all levels:
fromLevel = 0; toLevel = Integer.MAX_VALUE; fromDepth = Integer.MIN_VALUE; toDepth = -1; |
Modifier and Type | Method and Description |
---|---|
void |
decCurrentDepth() |
void |
decCurrentLevel()
Decrements the current level
|
int |
getCurrentDepth() |
int |
getCurrentLevel()
Get the current level
|
int |
getFromDepth() |
int |
getFromLevel() |
int |
getToDepth() |
int |
getToLevel() |
void |
incCurrentLevel()
Increments the current level
|
boolean |
isIncludeHeads() |
boolean |
isInRange() |
boolean |
isInScope() |
void |
resetCurrentLevel() |
void |
setCurrentDepth(int currentDepth) |
void |
setCurrentLevel(int currentLevel) |
void |
setFromLevelAsCurrent() |
void |
setToLevelAsCurrent() |
protected int fFromLevel
protected int fToLevel
protected int fFromDepth
protected int fToDepth
protected boolean fIncludeHeads
protected int fCurrentLevel
protected int fCurrentDepth
public LevelSpec()
public LevelSpec(int level)
level
.level
- public LevelSpec(int level, boolean includeHeads)
public LevelSpec(int fromLevel, int toLevel)
public LevelSpec(int fromLevel, int toLevel, boolean includeHeads)
public LevelSpec(int fromLevel, int toLevel, int fromDepth, int toDepth, boolean includeHeads)
fromLevel = 0;
toLevel = Integer.MAX_VALUE;
fromDepth = Integer.MIN_VALUE;
toDepth = -1;
fromLevel
- toLevel
- fromDepth
- toDepth
- includeHeads
- public final int getCurrentLevel()
public final void resetCurrentLevel()
public final void setFromLevelAsCurrent()
public final void setToLevelAsCurrent()
public final void decCurrentDepth()
public final void incCurrentLevel()
public final void decCurrentLevel()
public boolean isInRange()
public boolean isInScope()
public final int getCurrentDepth()
public final void setCurrentDepth(int currentDepth)
public final void setCurrentLevel(int currentLevel)
public int getFromLevel()
public int getToLevel()
public int getFromDepth()
public int getToDepth()
public boolean isIncludeHeads()