|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Target(value={METHOD,CONSTRUCTOR})
@Retention(value=RUNTIME)
public @interface NotYetImplemented
Eclipse and other tools will generate default implementation for you if you
want to implement an interface. The problem with this implementation is
that you must always overwrite this default implementation.
To be able to mark these methods as "not yet finished" you can put this
annotation in front of it. If you add a text this text is used for
thrown UnsupportedOperationException. You can add "{0}" if you want to see
the method name in the exception e.g.
@NotYetImplemented("don''t call {0} today").
NOTE: a single quote must be written as "''" (see example above) because
java.text.MessageFormat is used here for the error message.
See patterntesting.sample.Fraction in PatternTesting Samples as an example
how to use it.
UnsupportedOperation,
MessageFormat| Optional Element Summary | |
|---|---|
String |
value
You can define the text here which is used for the thrown UnsupportedOperationException. |
public abstract String value
@NotYetImplemented("don''t call {0} today").
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||