je/docs/doclet/HidingAnnotatedTypeWrapper.java

36 lines
887 B
Java
Raw Normal View History

2021-06-06 17:46:45 +00:00
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002, 2016 Oracle and/or its affiliates. All rights reserved.
*
*/
import java.util.Map;
import com.sun.javadoc.AnnotatedType;
import com.sun.javadoc.AnnotationDesc;
import com.sun.javadoc.Type;
class HidingAnnotatedTypeWrapper extends HidingTypeWrapper
implements AnnotatedType {
public HidingAnnotatedTypeWrapper(AnnotatedType type, Map mapWrappers) {
super(type, mapWrappers);
}
private AnnotatedType _getAnnotatedType() {
return (AnnotatedType) getWrappedObject();
}
@Override
public AnnotationDesc[] annotations() {
return (AnnotationDesc[]) wrapOrHide(
_getAnnotatedType().annotations());
}
@Override
public Type underlyingType() {
return (Type) wrapOrHide(_getAnnotatedType().underlyingType());
}
}