.. ******************************************************************************* * MetaFactory.io R2 * Technical Documentation * * File name : CIX_JCIE_Method.rst * Created by : Marnix Bochove (original text) * Updated by : Niels de Nies * * MetaFactory BV Amsterdam ******************************************************************************* .. include:: /metadata_include.txt .. include:: /inline-images.txt Method ====== is a child element of or and defines a Java method. .. rubric:: Usage The name attribute is mandatory and indicates the name of the method. Syntax of the method element: .. code-block:: xml :caption: example :name: method-01 :linenos: :emphasize-lines: 4-29 ... name="" visibility="" static="" abstract="" final="" synchronized="" default="" code instruction base ... .. rubric:: Attributes .. list-table:: **attributes of ** :widths: 20 80 :header-rows: 1 :class: tight-table * - Name - Details * - name - The name of the java method made. When you name it “constructor” it will create a constructor. * - visibility - Visibility of the method. Possible values are public, protected en private. If left empty, then private is used. * - static - true or false. Indicates whether or not the method should be defined static. * - abstract - true or false. Indicates whether or not the method should be defined abstract. * - final - true or false. Indicates whether or not the method should be defined final. * - synchronized - |Question S| * - default - |Question S| * - code instruction base - |Loupe S| :ref:`Code instruction base `. .. rubric:: Sub elements .. list-table:: **sub elements of ** :widths: 15 70 15 :header-rows: 1 :class: tight-table * - Name - Details - Number * - apicommentline - Javadoc that is attached to this method. - 0 or more * - devcommentline - Commentary that is attached to this attribute. - 0 or more * - import - All library elements under import are translated as import statements. - 0 or more * - annotation - Annotation defined for the attribute. - 0 or more * - body - The contents of the method. - 0 or 1 * - :ref:`parameter ` - Parameter of this method. The parameter with the name 'return is reserved for specifying the return parameter. - 0 or more * - :ref:`exception ` - Exception thrown by this method. - 0 or 1 .. rubric:: Reference to Sub elements .. toctree:: :maxdepth: 1 CIX_JCIE_Parameter CIX_JCIE_Exception