|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.javasource.Java5HacksHelper
public final class Java5HacksHelper
Makes an effort to identify where Override annotations belong. We are limited
in what we look at and we do not use reflection to identify if a class truly
extends the appropriate class. We only check the class of the arguments. This
class may not be generically useful, but is useful with the code generated by
Castor.
Our one public method, addOverrideAnnotations(JMethodSignature)
,
should only be called when you already know that you are generating Java-5
style code.
Method Summary | |
---|---|
static void |
addOverrideAnnotations(JMethodSignature jms)
Given the method signature, add the Override annotation if this class is one that we know requires this annotation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addOverrideAnnotations(JMethodSignature jms)
jms
- The method signature to inspect.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |