/* * @(#)MethodD.java */ package javax.ide.model.java.declaration; /** * Represents a method or annotation element.
* * An annotation element MUST be a MethodD because annotation types * may be extended/implemented where an annotation element will be * treated like an ordinary interface method. * * @author Andy Yu */ public interface MethodD extends ExecutableD, HasNameD, HasTypeD { // ---------------------------------------------------------------------- /** * True if this is an annotation element. * * @return True if this is an annotation element. */ public boolean isAnnotationElement(); /** * True if this is modified with "synchronized". * * @return True if this is modified with "synchronized". */ public boolean isSynchronized(); /** * True if marked as a bridge method. * * @return True if marked as a bridge method. */ public boolean isBridge(); /** * True if this is modified with "native". * * @return True if this is modified with "native". */ public boolean isNative(); /** * True if this is modified with "abstract". * * @return True if this is modified with "abstract". */ public boolean isAbstract(); /** * True if this is modified with "strictfp". * * @return True if this is modified with "strictfp". */ public boolean isStrictfp(); // ---------------------------------------------------------------------- /** * Gets the default value, null if this is not an annotation * element. * * @return An object representing the default value: * *