Top Inners Fields Constructors Methods
org.eclipse.jgit.fnmatch

pack-priv final Class GroupHead

extends AbstractHead
Class Inheritance
Imports
java.text.MessageFormat, java.util.ArrayList, .List, java.util.regex.Matcher, .Pattern, org.eclipse.jgit.errors.InvalidPatternException, org.eclipse.jgit.internal.JGitText

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static interface
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final List<GroupHead.CharacterPattern>
private final boolean
private static final Pattern

Constructor Summary

AccessConstructor and Description
pack-priv
GroupHead(String pattern, String wholePattern)

Method Summary

Modifier and TypeMethod and Description
protected final boolean
matches(char
a char.
c
)

Implements abstract org.eclipse.jgit.fnmatch.AbstractHead.matches.

Whether the char matches

Inherited from org.eclipse.jgit.fnmatch.AbstractHead:
getNextHeadsisStarsetNewHeads

Field Detail

characterClassesback to summary
private final List<GroupHead.CharacterPattern> characterClasses
inverseback to summary
private final boolean inverse
REGEX_PATTERNback to summary
private static final Pattern REGEX_PATTERN

Constructor Detail

GroupHeadback to summary
pack-priv GroupHead(String pattern, String wholePattern) throws InvalidPatternException

Method Detail

matchesback to summary
protected final boolean matches(char c)

Implements abstract org.eclipse.jgit.fnmatch.AbstractHead.matches.

Doc from org.eclipse.jgit.fnmatch.AbstractHead.matches.

Whether the char matches

Parameters
c:char

a char.

Returns:boolean

whether the char matches

Annotations
@Override
org.eclipse.jgit.fnmatch back to summary

private Interface GroupHead.CharacterPattern

Known Direct Implementers
org.eclipse.jgit.fnmatch.GroupHead.CharacterRange, org.eclipse.jgit.fnmatch.GroupHead.DigitPattern, org.eclipse.jgit.fnmatch.GroupHead.LetterPattern, org.eclipse.jgit.fnmatch.GroupHead.LowerPattern, org.eclipse.jgit.fnmatch.GroupHead.UpperPattern, org.eclipse.jgit.fnmatch.GroupHead.WhitespacePattern, org.eclipse.jgit.fnmatch.GroupHead.OneCharacterPattern, org.eclipse.jgit.fnmatch.GroupHead.PunctPattern

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

returns true if the character matches a pattern.
matches
(char
the character to test
c
)

Method Detail

matchesback to summary
public boolean matches(char c)
Parameters
c:char

the character to test

Returns:boolean

returns true if the character matches a pattern.

org.eclipse.jgit.fnmatch back to summary

private final Class GroupHead.CharacterRange

extends Object
implements CharacterPattern
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern

Field Summary

Modifier and TypeField and Description
private final char
private final char

Constructor Summary

AccessConstructor and Description
pack-priv
CharacterRange(char start, char end)

Method Summary

Modifier and TypeMethod and Description
public final boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

endback to summary
private final char end
startback to summary
private final char start

Constructor Detail

CharacterRangeback to summary
pack-priv CharacterRange(char start, char end)

Method Detail

matchesback to summary
public final boolean matches(char c)

Implements org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

Parameters
c:char

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

the character to test

Returns:boolean

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

returns true if the character matches a pattern.

Annotations
@Override
org.eclipse.jgit.fnmatch back to summary

private final Class GroupHead.DigitPattern

extends Object
implements CharacterPattern
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern

Field Summary

Modifier and TypeField and Description
pack-priv static final GroupHead.DigitPattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public final boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final GroupHead.DigitPattern INSTANCE

Constructor Detail

DigitPatternback to summary
private DigitPattern()

Method Detail

matchesback to summary
public final boolean matches(char c)

Implements org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

Parameters
c:char

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

the character to test

Returns:boolean

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

returns true if the character matches a pattern.

Annotations
@Override
org.eclipse.jgit.fnmatch back to summary

private final Class GroupHead.LetterPattern

extends Object
implements CharacterPattern
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern

Field Summary

Modifier and TypeField and Description
pack-priv static final GroupHead.LetterPattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public final boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final GroupHead.LetterPattern INSTANCE

Constructor Detail

LetterPatternback to summary
private LetterPattern()

Method Detail

matchesback to summary
public final boolean matches(char c)

Implements org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

Parameters
c:char

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

the character to test

Returns:boolean

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

returns true if the character matches a pattern.

Annotations
@Override
org.eclipse.jgit.fnmatch back to summary

private final Class GroupHead.LowerPattern

extends Object
implements CharacterPattern
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern

Field Summary

Modifier and TypeField and Description
pack-priv static final GroupHead.LowerPattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public final boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final GroupHead.LowerPattern INSTANCE

Constructor Detail

LowerPatternback to summary
private LowerPattern()

Method Detail

matchesback to summary
public final boolean matches(char c)

Implements org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

Parameters
c:char

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

the character to test

Returns:boolean

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

returns true if the character matches a pattern.

Annotations
@Override
org.eclipse.jgit.fnmatch back to summary

private final Class GroupHead.OneCharacterPattern

extends Object
implements CharacterPattern
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern

Field Summary

Modifier and TypeField and Description
private char

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expectedCharacterback to summary
private char expectedCharacter

Constructor Detail

OneCharacterPatternback to summary
pack-priv OneCharacterPattern(char c)

Method Detail

matchesback to summary
public final boolean matches(char c)

Implements org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

Parameters
c:char

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

the character to test

Returns:boolean

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

returns true if the character matches a pattern.

Annotations
@Override
org.eclipse.jgit.fnmatch back to summary

private final Class GroupHead.PunctPattern

extends Object
implements CharacterPattern
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern

Field Summary

Modifier and TypeField and Description
pack-priv static final GroupHead.PunctPattern
private static String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final GroupHead.PunctPattern INSTANCE
punctCharactersback to summary
private static String punctCharacters

Constructor Detail

PunctPatternback to summary
private PunctPattern()

Method Detail

matchesback to summary
public boolean matches(char c)

Implements org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

Parameters
c:char

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

the character to test

Returns:boolean

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

returns true if the character matches a pattern.

Annotations
@Override
org.eclipse.jgit.fnmatch back to summary

private final Class GroupHead.UpperPattern

extends Object
implements CharacterPattern
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern

Field Summary

Modifier and TypeField and Description
pack-priv static final GroupHead.UpperPattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public final boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final GroupHead.UpperPattern INSTANCE

Constructor Detail

UpperPatternback to summary
private UpperPattern()

Method Detail

matchesback to summary
public final boolean matches(char c)

Implements org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

Parameters
c:char

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

the character to test

Returns:boolean

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

returns true if the character matches a pattern.

Annotations
@Override
org.eclipse.jgit.fnmatch back to summary

private final Class GroupHead.WhitespacePattern

extends Object
implements CharacterPattern
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern

Field Summary

Modifier and TypeField and Description
pack-priv static final GroupHead.WhitespacePattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public final boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final GroupHead.WhitespacePattern INSTANCE

Constructor Detail

WhitespacePatternback to summary
private WhitespacePattern()

Method Detail

matchesback to summary
public final boolean matches(char c)

Implements org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

Parameters
c:char

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

the character to test

Returns:boolean

Doc from org.eclipse.jgit.fnmatch.GroupHead.CharacterPattern.matches.

returns true if the character matches a pattern.

Annotations
@Override