1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved.
5  *
6  */
7 
8 import java.util.Map;
9 
10 import com.sun.javadoc.AnnotationTypeDoc;
11 import com.sun.javadoc.ClassDoc;
12 import com.sun.javadoc.ParameterizedType;
13 import com.sun.javadoc.Type;
14 import com.sun.javadoc.TypeVariable;
15 import com.sun.javadoc.WildcardType;
16 
17 class HidingTypeWrapper extends HidingWrapper implements Type {
HidingTypeWrapper(Type type, Map mapWrappers)18     public HidingTypeWrapper(Type type, Map mapWrappers) {
19         super(type, mapWrappers);
20     }
21 
_getType()22     private Type _getType() {
23         return (Type)getWrappedObject();
24     }
25 
asClassDoc()26     public ClassDoc asClassDoc() {
27         return (ClassDoc)wrapOrHide(_getType().asClassDoc());
28     }
29 
dimension()30     public String dimension() {
31         return _getType().dimension();
32     }
33 
qualifiedTypeName()34     public String qualifiedTypeName() {
35         return _getType().qualifiedTypeName();
36     }
37 
toString()38     public String toString() {
39         return _getType().toString();
40     }
41 
typeName()42     public String typeName() {
43         return _getType().typeName();
44     }
45 
asAnnotationTypeDoc()46     public AnnotationTypeDoc asAnnotationTypeDoc() {
47         return (AnnotationTypeDoc)wrapOrHide(_getType().asAnnotationTypeDoc());
48     }
49 
asWildcardType()50     public WildcardType asWildcardType() {
51         return (WildcardType)wrapOrHide(_getType().asWildcardType());
52     }
53 
asTypeVariable()54     public TypeVariable asTypeVariable() {
55         return (TypeVariable)wrapOrHide(_getType().asTypeVariable());
56     }
57 
asParameterizedType()58     public ParameterizedType asParameterizedType() {
59         return (ParameterizedType)wrapOrHide(_getType().asParameterizedType());
60     }
61 
isPrimitive()62     public boolean isPrimitive() {
63         return _getType().isPrimitive();
64     }
65 
simpleTypeName()66     public String simpleTypeName() {
67         return _getType().simpleTypeName();
68     }
69 }
70