25 |
25 |
26 package com.sun.tools.doclint; |
26 package com.sun.tools.doclint; |
27 |
27 |
28 |
28 |
29 import java.util.Set; |
29 import java.util.Set; |
|
30 import java.util.LinkedHashSet; |
30 |
31 |
31 import javax.lang.model.element.Element; |
32 import javax.lang.model.element.Element; |
32 import javax.lang.model.element.ElementKind; |
33 import javax.lang.model.element.ElementKind; |
33 import javax.lang.model.element.ExecutableElement; |
34 import javax.lang.model.element.ExecutableElement; |
34 import javax.lang.model.element.Modifier; |
35 import javax.lang.model.element.Modifier; |
133 |
136 |
134 void setImplicitHeaders(int n) { |
137 void setImplicitHeaders(int n) { |
135 implicitHeaderLevel = n; |
138 implicitHeaderLevel = n; |
136 } |
139 } |
137 |
140 |
|
141 void setCustomTags(String cTags) { |
|
142 customTags = new LinkedHashSet<String>(); |
|
143 for (String s : cTags.split(DocLint.TAGS_SEPARATOR)) { |
|
144 if (!s.isEmpty()) |
|
145 customTags.add(s); |
|
146 } |
|
147 } |
|
148 |
138 /** Set the current declaration and its doc comment. */ |
149 /** Set the current declaration and its doc comment. */ |
139 void setCurrent(TreePath path, DocCommentTree comment) { |
150 void setCurrent(TreePath path, DocCommentTree comment) { |
140 currPath = path; |
151 currPath = path; |
141 currDocComment = comment; |
152 currDocComment = comment; |
142 currElement = trees.getElement(currPath); |
153 currElement = trees.getElement(currPath); |