Class TypePatternMatcherFactory


  • public class TypePatternMatcherFactory
    extends Object
    • Method Detail

      • createExtractingMatcher

        public ExtractingTypePatternMatcher createExtractingMatcher​(Type typePattern,
                                                                    Type typeToExtract)
        Parameters:
        typePattern - The type used as a pattern to be matched. Not all types are accepted.
        typeToExtract - The type to extract when matching the pattern. Not all types are accepted.
        Returns:
        A type pattern matcher matching subtypes of typePattern and returning the typeToExtract resolved against the type submitted to the matcher in the even of a match.
        Throws:
        UnsupportedOperationException - If this factory does not support creating a type pattern matcher for the given types.