Extension SDK

oracle.jdeveloper.webservices.util
Class MethodSignature

java.lang.Object
  extended byoracle.jdeveloper.webservices.util.MethodSignature

public final class MethodSignature
extends java.lang.Object

A common representation for Java method signatures.


Constructor Summary
MethodSignature(int modifiers, java.lang.String methodName, java.lang.String returnType)
          Construct a MethodSignature object will the signature data.
MethodSignature(java.lang.String methodName, java.lang.String returnType)
          Construct a MethodSignature object will the signature data.
 
Method Summary
 void addParameter(java.lang.String paramType, java.lang.String paramName)
          Add a parameter to the method (parameters must be added in the correct order).
 void clearParams()
          Clear the existing parameters.
 int getModifiers()
          Get the modifiers for this method.
 java.lang.String getName()
          Get the name of the method.
 java.lang.String[] getParamNames()
          Get the parameter names (in method signature order).
 java.lang.String[] getParamTypes()
          Get the parameter types (in method signature order).
 java.lang.String getReturnType()
          Get the method's return type.
 void setModifiers(int modifiers)
          Set the modifiers for this method.
 void setName(java.lang.String methodName)
          Set the name of the method.
 void setReturnType(java.lang.String returnType)
          Set the method's return type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodSignature

public MethodSignature(java.lang.String methodName,
                       java.lang.String returnType)
Construct a MethodSignature object will the signature data. Parameter data should be added after construction. This is a convenience constructor which defaults the modifier to public.


MethodSignature

public MethodSignature(int modifiers,
                       java.lang.String methodName,
                       java.lang.String returnType)
Construct a MethodSignature object will the signature data. Parameter data should be added after construction.

Method Detail

setModifiers

public void setModifiers(int modifiers)
Set the modifiers for this method.


getModifiers

public int getModifiers()
Get the modifiers for this method.


setName

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


getName

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


setReturnType

public void setReturnType(java.lang.String returnType)
Set the method's return type.


getReturnType

public java.lang.String getReturnType()
Get the method's return type.


addParameter

public void addParameter(java.lang.String paramType,
                         java.lang.String paramName)
Add a parameter to the method (parameters must be added in the correct order).


getParamTypes

public java.lang.String[] getParamTypes()
Get the parameter types (in method signature order).


getParamNames

public java.lang.String[] getParamNames()
Get the parameter names (in method signature order).


clearParams

public void clearParams()
Clear the existing parameters.


toString

public java.lang.String toString()

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.