Package com.github.robtimus.filesystems
Class Messages.PathMatcherGlobMessages
- java.lang.Object
-
- com.github.robtimus.filesystems.Messages.PathMatcherGlobMessages
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatternSyntaxException
missingClassEnd(String glob)
Creates an exception that can be thrown if a glob missing a class end character (]
).PatternSyntaxException
missingGroupEnd(String glob)
Creates an exception that can be thrown if a glob missing a group end character (}
).PatternSyntaxException
nestedClassesNotSupported(String glob, int index)
Creates an exception that can be thrown if a glob contains nested classes.PatternSyntaxException
nestedGroupsNotSupported(String glob, int index)
Creates an exception that can be thrown if a glob contains nested groups.PatternSyntaxException
separatorNotAllowedInClass(String glob, int index)
Creates an exception that can be thrown if a glob contains a separator (e.g.PatternSyntaxException
unescapableChar(String glob, int index)
Creates an exception that can be thrown if a glob contains an escape character (\
) that does not escape an actual glob meta character.PatternSyntaxException
unexpectedClassEnd(String glob, int index)
Creates an exception that can be thrown if a glob contains a class end character (]
) that does not close a class.PatternSyntaxException
unexpectedGroupEnd(String glob, int index)
Creates an exception that can be thrown if a glob contains a group end character (}
) that does not close a group.
-
-
-
Method Detail
-
nestedGroupsNotSupported
public PatternSyntaxException nestedGroupsNotSupported(String glob, int index)
Creates an exception that can be thrown if a glob contains nested groups.- Parameters:
glob
- The glob that contains nested groups.index
- The index at which the (first) nested group is encountered.- Returns:
- The created exception.
-
unexpectedGroupEnd
public PatternSyntaxException unexpectedGroupEnd(String glob, int index)
Creates an exception that can be thrown if a glob contains a group end character (}
) that does not close a group.- Parameters:
glob
- The glob that contains the unexpected group end character.index
- The index at which the unexpected group end character occurs.- Returns:
- The created exception.
-
missingGroupEnd
public PatternSyntaxException missingGroupEnd(String glob)
Creates an exception that can be thrown if a glob missing a group end character (}
).- Parameters:
glob
- The glob that misses a group end character.- Returns:
- The created exception.
-
nestedClassesNotSupported
public PatternSyntaxException nestedClassesNotSupported(String glob, int index)
Creates an exception that can be thrown if a glob contains nested classes.- Parameters:
glob
- The glob that contains nested classes.index
- The index at which the (first) nested class is encountered.- Returns:
- The created exception.
-
unexpectedClassEnd
public PatternSyntaxException unexpectedClassEnd(String glob, int index)
Creates an exception that can be thrown if a glob contains a class end character (]
) that does not close a class.- Parameters:
glob
- The glob that contains the unexpected class end character.index
- The index at which the unexpected class end character occurs.- Returns:
- The created exception.
-
missingClassEnd
public PatternSyntaxException missingClassEnd(String glob)
Creates an exception that can be thrown if a glob missing a class end character (]
).- Parameters:
glob
- The glob that misses a class end character.- Returns:
- The created exception.
-
separatorNotAllowedInClass
public PatternSyntaxException separatorNotAllowedInClass(String glob, int index)
Creates an exception that can be thrown if a glob contains a separator (e.g./
) in a class.- Parameters:
glob
- The glob that contains a separator in a class.index
- The index at which the separator occurs.- Returns:
- The created exception.
-
unescapableChar
public PatternSyntaxException unescapableChar(String glob, int index)
Creates an exception that can be thrown if a glob contains an escape character (\
) that does not escape an actual glob meta character.- Parameters:
glob
- The glob that contains an unexpected escape character.index
- The index at which the unexpected escape character occurs.- Returns:
- The created exception.
-
-