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) booleanisStar()protected abstract booleanmatches(char c) Whether the char matchesfinal voidsetNewHeads(List<Head> newHeads) SetHeads 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
SetHeads which will not be modified.- Parameters:
newHeads- a list ofHeads which will not be modified.
-
getNextHeads
Get the character which decides which heads are returned- Specified by:
getNextHeadsin interfaceHead- Parameters:
c- the character which decides which heads are returned.- Returns:
- a list of heads based on the input.
-
isStar
boolean isStar()
-