javaMethodDef

The <javaMethodDef> element provides the elements for the method or constructor declaration, the return value of the method or constructor, the definition of the parameters, and the exceptions thrown by the execution of the method.

Description

A method declares the executable code that can be invoked when passing a fixed number of values as arguments:

MethodDeclaration:
       MethodModifiersopt   ResultType  MethodDeclarator   Throwsopt    ClassBody
MethodModifier:
        public protected private
       abstract static final synchronized native
ResultType:
        Type (class interface primitive array) void
Throws:
       throws ClassType, ClassTypeList

Contained by

javaMethodDetail

Contains

javaAbstractMethod, javaException, javaFinalMethod, javaMethodAccess, javaNativeMethod, javaParam, javaReturn, javaStaticMethod, javaSynchronizedMethod, javaVoid

Content model

( (javaFinalMethod) (optional) then (javaAbstractMethod) (optional) then (javaStaticMethod) (optional) then (javaNativeMethod) (optional) then (javaSynchronizedMethod) (optional) then (javaMethodAccess) (optional) then (javaReturn or javaVoid) then (javaParam) (any number) then (javaException) (any number))

Inheritance

topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef