Annotation Type CantTouchThis
-
@Retention(CLASS) @Target(METHOD) @Visionary("Jörn Zaefferer") public @interface CantTouchThis
Replaces the implementation of the annotated method to instead print "Stop" along with the specified reason to standard out. For example, calling the method:@CantTouchThis(Stop.HAMMERTIME) public void tryToTouchThis() { System.out.println("This has been touched."); }will cause "Stop, HAMMERTIME" to be printed to standard out.Methods returning primitive numeric values return the equivalent of 0; methods returning boolean return false; methods returning objects return null.
TODO: Enforce this annotation.
-
-
Element Detail
-
value
Stop value
-
-