abstract class AbstractHead extends java.lang.Object implements Head
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Head> |
newHeads |
private boolean |
star |
| Constructor and Description |
|---|
AbstractHead(boolean star) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Head> |
getNextHeads(char c)
Get the character which decides which heads are returned
|
(package private) boolean |
isStar() |
protected abstract boolean |
matches(char c)
Whether the char matches
|
void |
setNewHeads(java.util.List<Head> newHeads)
Set
Heads which will not be modified. |
private java.util.List<Head> newHeads
private final boolean star
protected abstract boolean matches(char c)
c - a char.public final void setNewHeads(java.util.List<Head> newHeads)
Heads which will not be modified.newHeads - a list of Heads which will
not be modified.public java.util.List<Head> getNextHeads(char c)
getNextHeads in interface Headc - the character which decides which heads are returned.boolean isStar()