je/docs/doclet/HidingTagWrapper.java

63 lines
1.3 KiB
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.Doc;
import com.sun.javadoc.SourcePosition;
import com.sun.javadoc.Tag;
class HidingTagWrapper extends HidingWrapper implements Tag {
public HidingTagWrapper(Tag tag, Map mapWrappers) {
super(tag, mapWrappers);
}
private Tag _getTag() {
return (Tag)getWrappedObject();
}
@Override
public String name() {
return _getTag().name();
}
@Override
public Doc holder() {
return (Doc) wrapOrHide(_getTag().holder());
}
@Override
public String kind() {
return _getTag().kind();
}
@Override
public String text() {
return _getTag().text();
}
@Override
public String toString() {
return _getTag().toString();
}
@Override
public Tag[] inlineTags() {
return (Tag[])wrapOrHide(_getTag().inlineTags());
}
@Override
public Tag[] firstSentenceTags() {
return (Tag[])wrapOrHide(_getTag().firstSentenceTags());
}
@Override
public SourcePosition position() {
return (SourcePosition) wrapOrHide(_getTag().position());
}
}