javaReturn

The <javaReturn> element within the ResultType declaration provides the return value of the method.

Description

A method declaration either specifies the type of the return value (for example, class, interface, primitive array) or uses the keyword void to indicate that the method does not have a return value.

MethodDeclaration:
       MethodModifiersopt   ResultType  MethodDeclarator   Throwsopt    ClassBody
ResultType:
       Type (class interface primitive array) void

Contained by

javaMethodDef

Contains

apiDefNote, javaMethodArray, javaMethodClass, javaMethodInterface, javaMethodPrimitive

Content model

( (javaMethodClass or javaMethodInterface or javaMethodPrimitive) then (javaMethodArray) (any number) then (apiDefNote) (optional))

Inheritance

topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn