Class SymbolPathParser


  • public class SymbolPathParser
    extends java.lang.Object
    A parser for breaking down namespaces in the presence of complicating factors such as templates.

    For example, if a SymbolPath is constructed with "foo<int, blah::hah>::bar::baz", then "baz" is the name of a symbol in the "bar" namespace, which is in the "foo<int, blah::hah>" namespace.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> parse​(java.lang.String name)
      Parses a String pathname into its constituent namespace and name components.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SymbolPathParser

        public SymbolPathParser()
    • Method Detail

      • parse

        public static java.util.List<java.lang.String> parse​(java.lang.String name)
        Parses a String pathname into its constituent namespace and name components. The list does not contain the global namespace, which is implied, but then has each more deeply nested namespace contained in order in the list, followed by the trailing name.
        Parameters:
        name - The input String to be parsed.
        Returns:
        List containing the sequence of namespaces and trailing name.