javaNativeMethod

The <javaNativeMethod> element flags that the method as implemented in code is native for the platform.

Description

Possible alternative definitions of the method declaration are the javaFinalMethod, javaNativeMethod, and javaSyncronizedMethod elements. The <javaNativeMethod> element must not be used with the <javaAbstractMethod> element. This element has the following predefined attributes: name ="native" and value ="native".

Example

Click on the following link to open the Java API topic type example in
<javaMethod id="com.ibm.xtools.pluglets.engine.OutputStream">
   <apiName>getInstance</apiName>
   <shortdesc>Native is a singleton class.</shortdesc>
   <javaMethodDetail>
      <javaMethodDef>
        <javaStaticMethod/>
        <javaNativeMethod/>
        <javaMethodAccess value="public"/>
        <javaReturn>
          <javaMethodClass href=".../api/java/platform/Native.html" format="html" 
            scope="local">Native</javaMethodClass>
        </javaReturn>
     </javaMethodDef>
     <apiDesc>Use this method to create a Native object.</apiDesc>
   </javaMethodDetail>
</javaMethod>

Processing Expectations

Contained by

javaMethodDef

Content model

no content

Inheritance

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