Class TagParser

java.lang.Object
com.thoughtworks.qdox.model.util.TagParser

public final class TagParser extends Object
  • Constructor Details

    • TagParser

      private TagParser()
  • Method Details

    • makeTokenizer

      static StreamTokenizer makeTokenizer(String tagValue)
      Create a StreamTokenizer suitable for parsing the tag text.
      Parameters:
      tagValue - the tag value
      Returns:
      the tokenizer
    • parseNamedParameters

      public static Map<String,String> parseNamedParameters(String tagValue)
      Extract a Map of named parameters
      Parameters:
      tagValue - the tag value
      Returns:
      a Map with the parameter names and their values
    • parseWords

      public static String[] parseWords(String tagValue)
      Extract an array of positional parameters
      Parameters:
      tagValue - the tag value
      Returns:
      an array with words
    • parseParameters

      public static List<String> parseParameters(String tagValue)
      Extract an array of parameters as name or name=value representation
      Parameters:
      tagValue - the tag value
      Returns:
      the names of the parameters
      Since:
      1.11