je/docs/doclet/HidingAnnotationTypeElementDocWrapper.java
2021-06-06 13:46:45 -04:00

30 lines
846 B
Java

/*-
* 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.AnnotationTypeElementDoc;
import com.sun.javadoc.AnnotationValue;
class HidingAnnotationTypeElementDocWrapper extends HidingMethodDocWrapper
implements AnnotationTypeElementDoc {
public HidingAnnotationTypeElementDocWrapper(
AnnotationTypeElementDoc memdoc, Map mapWrappers) {
super(memdoc, mapWrappers);
}
private AnnotationTypeElementDoc _getAnnotationTypeElementDoc() {
return (AnnotationTypeElementDoc)getWrappedObject();
}
@Override
public AnnotationValue defaultValue() {
return (AnnotationValue)
wrapOrHide(_getAnnotationTypeElementDoc().defaultValue());
}
}