je/docs/doclet/HidingAnnotationTypeElementDocWrapper.java

31 lines
846 B
Java
Raw Permalink 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.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());
}
}