Package com.thoughtworks.qdox.model.util
Class TagParser
java.lang.Object
com.thoughtworks.qdox.model.util.TagParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static StreamTokenizer
makeTokenizer
(String tagValue) Create a StreamTokenizer suitable for parsing the tag text.parseNamedParameters
(String tagValue) Extract a Map of named parametersparseParameters
(String tagValue) Extract an array of parameters as name or name=value representationstatic String[]
parseWords
(String tagValue) Extract an array of positional parameters
-
Constructor Details
-
TagParser
private TagParser()
-
-
Method Details
-
makeTokenizer
Create a StreamTokenizer suitable for parsing the tag text.- Parameters:
tagValue
- the tag value- Returns:
- the tokenizer
-
parseNamedParameters
Extract a Map of named parameters- Parameters:
tagValue
- the tag value- Returns:
- a Map with the parameter names and their values
-
parseWords
Extract an array of positional parameters- Parameters:
tagValue
- the tag value- Returns:
- an array with words
-
parseParameters
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
-