|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Example
This annotation allows us to mark classes that we would like to
examine at runtime using the provided Tester.
The method is named Example rather than Examples because of namespace
conflicts that could arise give the likelihood of a student wanting to
write Examples.java as a class in their classpath. If they attempt to
do a batch import of the tester:
import tester.*;
they would encounter a message indicating the class is already defined.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |