kawigi.problem
Class MethodDecl

java.lang.Object
  extended by kawigi.problem.MethodDecl

public class MethodDecl
extends java.lang.Object

Represents the method to be implemented for a problem.


Constructor Summary
MethodDecl(java.lang.String methodName, EditorDataType returnType, EditorDataType[] paramTypes, java.lang.String[] paramNames)
          Constructs a MethodDecl with the given parameters.
 
Method Summary
 java.lang.String getName()
          Returns the name of this method.
 java.lang.String[] getParamNames()
          Returns the names of the parameters to this method.
 EditorDataType[] getParamTypes()
          Returns the types of the parameters to this method.
 EditorDataType getReturnType()
          Returns the return type of this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodDecl

public MethodDecl(java.lang.String methodName,
                  EditorDataType returnType,
                  EditorDataType[] paramTypes,
                  java.lang.String[] paramNames)
Constructs a MethodDecl with the given parameters.

Method Detail

getName

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


getReturnType

public EditorDataType getReturnType()
Returns the return type of this method.


getParamNames

public java.lang.String[] getParamNames()
Returns the names of the parameters to this method. Element i of this array corresponds to element i of the array returned by getParamTypes.


getParamTypes

public EditorDataType[] getParamTypes()
Returns the types of the parameters to this method. Element i of this array corresponds to element i of the array returned by getParamNames.