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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNextHeads
(char c) Get the character which decides which heads are returned(package private) boolean
isStar()
protected abstract boolean
matches
(char c) Whether the char matchesfinal void
setNewHeads
(List<Head> newHeads) SetHead
s which will not be modified.
-
Field Details
-
newHeads
-
star
private final boolean star
-
-
Constructor Details
-
AbstractHead
AbstractHead(boolean star)
-
-
Method Details
-
matches
protected abstract boolean matches(char c) Whether the char matches- Parameters:
c
- a char.- Returns:
- whether the char matches
-
setNewHeads
SetHead
s which will not be modified.- Parameters:
newHeads
- a list ofHead
s which will not be modified.
-
getNextHeads
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()
-