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 Object implements Head
  • Field Details

    • newHeads

      private List<Head> 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

      public final void setNewHeads(List<Head> newHeads)
      Set Heads which will not be modified.
      Parameters:
      newHeads - a list of Heads which will not be modified.
    • getNextHeads

      public List<Head> getNextHeads(char c)
      Get the character which decides which heads are returned
      Specified by:
      getNextHeads in interface Head
      Parameters:
      c - the character which decides which heads are returned.
      Returns:
      a list of heads based on the input.
    • isStar

      boolean isStar()