Package org.eclipse.jgit.fnmatch
Class AbstractHead
- java.lang.Object
-
- org.eclipse.jgit.fnmatch.AbstractHead
-
- All Implemented Interfaces:
Head
- Direct Known Subclasses:
CharacterHead
,GroupHead
,RestrictedWildCardHead
,WildCardHead
abstract class AbstractHead extends java.lang.Object implements Head
-
-
Constructor Summary
Constructors Constructor Description AbstractHead(boolean star)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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 matchesvoid
setNewHeads(java.util.List<Head> newHeads)
SetHead
s which will not be modified.
-
-
-
Field Detail
-
newHeads
private java.util.List<Head> newHeads
-
star
private final boolean star
-
-
Method Detail
-
matches
protected abstract boolean matches(char c)
Whether the char matches- Parameters:
c
- a char.- Returns:
- whether the char matches
-
setNewHeads
public final void setNewHeads(java.util.List<Head> newHeads)
SetHead
s which will not be modified.- Parameters:
newHeads
- a list ofHead
s which will not be modified.
-
getNextHeads
public java.util.List<Head> getNextHeads(char c)
Get the character which decides which heads are returned- Specified by:
getNextHeads
in interfaceHead
- Parameters:
c
- the character which decides which heads are returned.- Returns:
- a list of heads based on the input.
-
isStar
boolean isStar()
-
-