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
Head s 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)
Head
s which will not be modified.newHeads
- a list of Head
s which will
not be modified.public java.util.List<Head> getNextHeads(char c)
getNextHeads
in interface Head
c
- the character which decides which heads are returned.boolean isStar()