You cannot do such a check in javadoc tags. Well, if you are distributing the source code, download the source file and parse it for the tag @deprecated, but this is not preferred.
A pre-Java5 way to specify something using the marker interface. You can define your own:
public interface Deprecated {
}
and use obsolete classes. Of course, you cannot use it in methods.
public final class Test implements Deprecated
, Deprecated.class.isAssignableFrom(Test.class).
, .