Module org.junit.platform.engine
Class NestedClassSelector.IdentifierParser
java.lang.Object
org.junit.platform.engine.discovery.NestedClassSelector.IdentifierParser
- All Implemented Interfaces:
DiscoverySelectorIdentifierParser
- Enclosing class:
NestedClassSelector
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.engine.discovery.DiscoverySelectorIdentifierParser
DiscoverySelectorIdentifierParser.Context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the prefix that this parser supports.parse(DiscoverySelectorIdentifier identifier, DiscoverySelectorIdentifierParser.Context context) Parse the suppliedDiscoverySelectorIdentifier.
-
Constructor Details
-
IdentifierParser
public IdentifierParser()
-
-
Method Details
-
getPrefix
Description copied from interface:DiscoverySelectorIdentifierParserGet the prefix that this parser supports.- Specified by:
getPrefixin interfaceDiscoverySelectorIdentifierParser- Returns:
- the prefix that this parser supports; never
nullor blank
-
parse
public Optional<NestedClassSelector> parse(DiscoverySelectorIdentifier identifier, DiscoverySelectorIdentifierParser.Context context) Description copied from interface:DiscoverySelectorIdentifierParserParse the suppliedDiscoverySelectorIdentifier.The JUnit Platform will only invoke this method if the supplied
DiscoverySelectorIdentifierhas a prefix that matches the value returned byDiscoverySelectorIdentifierParser.getPrefix().- Specified by:
parsein interfaceDiscoverySelectorIdentifierParser- Parameters:
identifier- theDiscoverySelectorIdentifierto parsecontext- theDiscoverySelectorIdentifierParser.Contextto use for parsing- Returns:
- an
Optionalcontaining the parsedDiscoverySelector; nevernullbut potentially empty
-