Attributes used
none.
Child Elements
Only nodeParameter andcomment nodes.
Schema entry
For information about XES schema see these pages.
none.
Only nodeParameter andcomment nodes.
For information about XES schema see these pages.
<xs:complexType name="methodType">
<xs:sequence>
<xs:element name="parameterList" type="parameterListType"/>
<xs:element name="tags" type="tagList"/>
<xs:element name="meta" type="xs:string"/>
<xs:element name="variable" type="variableType"/>
<xs:element name="call" type="callType"/>
<xs:element name="comment" type="commentType"/>
<xs:element name="if" type="ifType"/>
<xs:element name="loop" type="loopType"/>
<xs:element name="switch" type="switchType"/>
<xs:element name="try" type="tryType"/>
<xs:element name="break" type="breakType"/>
<xs:element name="return" type="returnType"/>
<xs:element name="block" type="blockType"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="type" type="xs:string"/>
<xs:attribute name="public" type="xs:boolean"/>
<xs:attribute name="private" type="xs:boolean"/>
<xs:attribute name="protected" type="xs:boolean"/>
<xs:attribute name="static" type="xs:boolean"/>
<xs:attribute name="abstract" type="xs:boolean"/>
<xs:attribute name="native" type="xs:boolean"/>
<xs:attribute name="synchonised" type="xs:boolean"/>
<xs:attribute name="final" type="xs:boolean"/>
</xs:complexType>
<xs:complexType name="parameterListType">
<xs:sequence>
<xs:element name="comment" type="commentType"/>
<xs:element name="parameter" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="comment" type="commentType"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="type" type="xs:string"/>
<xs:attribute name="tagType" type="xs:string"/>
<xs:attribute name="tagValue" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
usage | java example | XES example |
no parameters | myMethod() { } |
<method constructor="true" name="myMethod"> <parameterList/> </method> |
primitive type parameter. | myMethod(int i) { } |
<method constructor="true" name="myMethod"> <parameterList> <parameter name="i" type="int"/> </parameterList> </method> |
non-primitive type parameter. | myMethod(myClass mc){ } |
<method constructor="true" name="myMethod"> <parameterList> <parameter name="mc" type="myClass"/> </parameterList> </method> |
multiple parameters. | myMethod(int i,myClass mc) { } |
<method constructor="true" name="myMethod"> <parameterList> <parameter name="i" type="int"/> <parameter name="mc" type="myClass"/> </parameterList> </method> |
Each parameter is defined by parameter node.
myMethod(int i,myClass mc) {
}
metadata block |
|
see also: |
|
Correspondence about this page |
This site may have errors. Don't use for critical systems.
Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.