|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@ClassLabel(copyright="Copyright (C) 2008 Hans-Hermann Bode", ident="$Id: ClassLabel.java,v 1.2 2008/11/29 01:34:33 h2b Exp $") @Documented @Retention(value=CLASS) @Target(value=TYPE) public @interface ClassLabel
An annotation type for putting certain information into a class file. There are a copyright and an identifier element that can be used appropriately. Both have a default empty-string value, respectively, so that one is able to use one or both of them (or none, although this wouldn't make too much sense).
The retention policy for the annotation is to be recorded in the class file by the compiler but need not be retained by the VM at run time. (This is the default behavior.)
The annotation is targeted for class, interface (including annotation type), or enum declaration.
Optional Element Summary | |
---|---|
java.lang.String |
copyright
To be used for a copyright notification. |
java.lang.String |
ident
To be used for an identifier. |
public abstract java.lang.String copyright
public abstract java.lang.String ident
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |