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

43 lines
1,013 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.ClassDoc;
import com.sun.javadoc.ThrowsTag;
import com.sun.javadoc.Type;
class HidingThrowsTagWrapper extends HidingTagWrapper implements ThrowsTag {
public HidingThrowsTagWrapper(ThrowsTag thrtag, Map mapWrappers) {
super(thrtag, mapWrappers);
}
private ThrowsTag _getThrowsTag() {
return (ThrowsTag)getWrappedObject();
}
@Override
public String exceptionName() {
return _getThrowsTag().exceptionName();
}
@Override
public String exceptionComment() {
return _getThrowsTag().exceptionComment();
}
@Override
public ClassDoc exception() {
return (ClassDoc)wrapOrHide(_getThrowsTag().exception());
}
@Override
public Type exceptionType() {
return (Type)wrapOrHide(_getThrowsTag().exceptionType());
}
}