Package nl.talsmasoftware.umldoclet.uml
Class Method
java.lang.Object
nl.talsmasoftware.umldoclet.uml.UMLNode
nl.talsmasoftware.umldoclet.uml.TypeMember
nl.talsmasoftware.umldoclet.uml.Method
UML representation of a method.
- Author:
- Sjoerd Talsma
-
Field Summary
FieldsFields inherited from class nl.talsmasoftware.umldoclet.uml.TypeMember
isDeprecated, isStatic, name, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String name, TypeName type) Add a parameter to this method.booleaninthashCode()protected <IPW extends IndentingPrintWriter>
IPWwriteParametersTo(IPW output) <IPW extends IndentingPrintWriter>
IPWwriteTo(IPW output) Renders this object to the given indentingoutput.protected <IPW extends IndentingPrintWriter>
IPWwriteTypeTo(IPW output) Methods inherited from class nl.talsmasoftware.umldoclet.uml.TypeMember
getVisibility, setVisibilityMethods inherited from class nl.talsmasoftware.umldoclet.uml.UMLNode
addChild, findParent, getChildren, getChildren, getConfiguration, getParent, removeChildren, setParent, toString, writeChildrenTo
-
Field Details
-
isAbstract
public boolean isAbstractIf this method is an abstract method.
-
-
Constructor Details
-
Method
Create a new method in the containing type with a specific name and return type.- Parameters:
containingType- The containing type the member is part of.name- The name of the method.returnType- The name of the return type.
-
-
Method Details
-
addParameter
Add a parameter to this method.- Parameters:
name- The name of the parameter.type- The type of the parameter.
-
writeTo
Description copied from class:UMLNodeRenders this object to the given indentingoutput.- Overrides:
writeToin classTypeMember- Type Parameters:
IPW- The subclass of indenting print writer being written to.- Parameters:
output- The output to render this object to.- Returns:
- A reference to the output for method chaining purposes.
-
writeParametersTo
- Overrides:
writeParametersToin classTypeMember
-
writeTypeTo
- Overrides:
writeTypeToin classTypeMember
-
hashCode
public int hashCode()- Overrides:
hashCodein classTypeMember
-
equals
- Overrides:
equalsin classTypeMember
-