mirror of
https://github.com/berkeleydb/je.git
synced 2024-11-15 01:46:24 +00:00
68 lines
1.8 KiB
Java
68 lines
1.8 KiB
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.ClassDoc;
|
|
import com.sun.javadoc.MethodDoc;
|
|
import com.sun.javadoc.Type;
|
|
import com.sun.javadoc.AnnotationTypeElementDoc;
|
|
|
|
class HidingMethodDocWrapper extends HidingExecutableMemberDocWrapper
|
|
implements MethodDoc {
|
|
public HidingMethodDocWrapper(MethodDoc methdoc, Map mapWrappers) {
|
|
super(methdoc, mapWrappers);
|
|
}
|
|
|
|
private MethodDoc _getMethodDoc() {
|
|
return (MethodDoc)getWrappedObject();
|
|
}
|
|
|
|
@Override
|
|
public boolean isAbstract() {
|
|
return _getMethodDoc().isAbstract();
|
|
}
|
|
|
|
@Override
|
|
public boolean isDefault() {
|
|
return _getMethodDoc().isDefault();
|
|
}
|
|
|
|
@Override
|
|
public Type returnType() {
|
|
return (Type)wrapOrHide(_getMethodDoc().returnType());
|
|
}
|
|
|
|
@Override
|
|
public ClassDoc overriddenClass() {
|
|
return (ClassDoc)wrapOrHide(_getMethodDoc().overriddenClass());
|
|
}
|
|
|
|
@Override
|
|
public Type overriddenType() {
|
|
return (Type)wrapOrHide(_getMethodDoc().overriddenType());
|
|
}
|
|
|
|
@Override
|
|
public MethodDoc overriddenMethod() {
|
|
return (MethodDoc)wrapOrHide(_getMethodDoc().overriddenMethod());
|
|
}
|
|
|
|
@Override
|
|
public boolean overrides(MethodDoc meth) {
|
|
if (meth instanceof HidingAnnotationTypeElementDocWrapper) {
|
|
meth = (AnnotationTypeElementDoc)
|
|
((HidingAnnotationTypeElementDocWrapper)meth).
|
|
getWrappedObject();
|
|
} else if (meth instanceof HidingMethodDocWrapper) {
|
|
meth = (MethodDoc)
|
|
((HidingMethodDocWrapper)meth).getWrappedObject();
|
|
}
|
|
|
|
return _getMethodDoc().overrides((MethodDoc) meth);
|
|
}
|
|
}
|