javaFinalMethod

The <javaFinalMethod> element within the MethodModifiersopt declaration indicates that the method cannot be overridden.

Description

Possible alternative definitions of the method declaration are the javaFinalMethod, javaNativeMethod, and javaSyncronizedMethod elements. The <javaFinalMethod> element must not be used with the <javaAbstractMethod> element.

Example

Click on the following link to open the Java API topic type example in
<javaMethod id="com.ibm.xtools.ras.impord.engine.tasks.AbstractImportEngineTask.notify">
   <apiName>notify</apiName>
   <shortDesc> Wakes up a single thread that is waiting on this object's monitor.</shortDesc>
   <javaMethodDetail>
      <javaMethodDef>
         <javaFinalMethod/>
         <javaMethodAccess value="public"/>
         <javaVoid/>
      </javaMethodDef>
      <apiDesc>Wakes up a single thread that is waiting on this object's monitor.
          If any threads are waiting on this object, one of them is chosen to be awakened.
          The choice is arbitrary and occurs at the discretion of the implementation.
          A thread waits on an object's monitor by calling one of the wait methods.
      </apiDesc>
   </javaFieldDetail>
   <related-links>
       <link href="http://java.sun.com/../Object.html#notifyAll()" format="html">
          <linktext>notifyAll()</linktext>
       </link>
       <link href="http://java.sun.com/../Object.html#wait()" format="html">
          <linktext>wait()</linktext>
       </link>
   </related-links>
</javaMethod>

Processing Expectations

Contained by

javaMethodDef

Content model

no content

Inheritance

topic/state reference/state apiRef/apiQualifier apiOperation/apiQualifier