UML.Code.Method
Class Method

java.lang.Object
  |
  +--UML.Code.Method.Method

public class Method
extends java.lang.Object

Method class represent a method of the Java class for which code is generated.


Constructor Summary
Method()
          Constructor.
 
Method Summary
 void add(Body body)
          Adds the method body.
 void add(Parameter parameter)
          Adds a parameter to this method.
 java.lang.String getCode(boolean isConstructor)
          Gets the code for this method.
 java.lang.String getName()
          Gets the name of the method.
 void setIsAbstract(boolean isAbstract)
          Determines if the method is declared abstract.
 void setName(java.lang.String name)
          Sets the name of the method.
 void setVisibility(java.lang.String visibility)
          Sets the visibility of the method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Method

public Method()
Constructor.

Method Detail

setName

public void setName(java.lang.String name)
Sets the name of the method.


getName

public java.lang.String getName()
Gets the name of the method.

Returns:
name the name of the method.

setIsAbstract

public void setIsAbstract(boolean isAbstract)
Determines if the method is declared abstract.


setVisibility

public void setVisibility(java.lang.String visibility)
Sets the visibility of the method.


add

public void add(Parameter parameter)
Adds a parameter to this method.


add

public void add(Body body)
Adds the method body.


getCode

public java.lang.String getCode(boolean isConstructor)
Gets the code for this method.

Returns:
code the generated code.