for information about XES schema see these
pages.
nodeNameList used to store additional info for classes and methods
This may be the first child of a class node (excluding comments) to hold "extends"
or "implements" information.
This may be the second child of a method node, after the parameters (excluding
comments) to hold "throws" information.
Attributes used
- Attribute "elementName" indicates what this name list is used
for. May be either: "extends", "implements" or "throws".
- Attribute "name" used in "throws" to hold the list of
errors which may be thown.
- Attribute "type" used in "extends" or "implements"
to hold list of classes/interfaces to be extended/implemeted..
- Attribute "genericsType" .
Child Elements
Only comment nodes are allowed.
Schema entry
<xs:complexType name="nodeNameListType">
<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>
Possible Improvements
Examples of usage
usage |
java example |
XES example |
extending a class |
class myClass extends baseClass{
} |
<class def="true" name="myClass">
<nameList elementName="extends" type="baseClass"/>
</class>
|
implementing an interface |
class myClass implements baseInterface{
} |
<class def="true" name="myClass">
<nameList elementName="implements" type="baseInterface,baseInterface2"/>
</class> |
extend and implement |
class myClass extends baseClass implements baseInterface{} |
<class def="true" name="myClass">
<nameList elementName="extends" type="baseClass"/>
<nameList elementName="implements" type="baseInterface"/>
</class> |
throw |
public void myMethod() throws myError{} |
<method name="myMethod" public="true" type="void">
<parameterList/>
<nameList elementName="throws" name="myError"/>
</method> |
multiple throws |
public void myMethod() throws myError1,myError2{} |
<method name="myMethod" public="true" type="void">
<parameterList/>
<nameList elementName="throws" name="myError1,myError2"/>
</method> |
|
|
|
Java
see above
Scala
This site may have errors. Don't use for critical systems.