30 import javax.lang.model.element.Modifier; |
30 import javax.lang.model.element.Modifier; |
31 import javax.lang.model.element.ExecutableElement; |
31 import javax.lang.model.element.ExecutableElement; |
32 import javax.lang.model.element.TypeElement; |
32 import javax.lang.model.element.TypeElement; |
33 import javax.lang.model.element.VariableElement; |
33 import javax.lang.model.element.VariableElement; |
34 import javax.lang.model.type.TypeMirror; |
34 import javax.lang.model.type.TypeMirror; |
35 import javax.lang.model.util.ElementScanner6; |
35 import javax.lang.model.util.ElementScanner9; |
36 |
36 |
37 /** Utility class that constructs a textual representation |
37 /** Utility class that constructs a textual representation |
38 * of the public api of a class. |
38 * of the public api of a class. |
39 * |
39 * |
40 * <p><b>This is NOT part of any supported API. |
40 * <p><b>This is NOT part of any supported API. |
41 * If you write code that depends on this, you do so at your own |
41 * If you write code that depends on this, you do so at your own |
42 * risk. This code and its internal interfaces are subject to change |
42 * risk. This code and its internal interfaces are subject to change |
43 * or deletion without notice.</b></p> |
43 * or deletion without notice.</b></p> |
44 */ |
44 */ |
45 public class PubapiVisitor extends ElementScanner6<Void, Void> { |
45 public class PubapiVisitor extends ElementScanner9<Void, Void> { |
46 |
46 |
47 StringBuffer sb; |
47 StringBuffer sb; |
48 // Important that it is 1! Part of protocol over wire, silly yes. |
48 // Important that it is 1! Part of protocol over wire, silly yes. |
49 // Fix please. |
49 // Fix please. |
50 int indent = 1; |
50 int indent = 1; |