com.go.teatools
Class MethodDescription

java.lang.Object
  |
  +--com.go.teatools.FeatureDescription
        |
        +--com.go.teatools.MethodDescription

public class MethodDescription
extends FeatureDescription

Wrapper for a MethodDescriptor object.

Version:
3 , 11/14/00
Author:
Mark Masse

Constructor Summary
MethodDescription(java.beans.MethodDescriptor md, TeaToolsUtils utils)
          Creates a new MethodDescription
 
Method Summary
 boolean getAcceptsSubstitution()
          Returns true if the specified method accepts a Substitution as its last parameter.
 AccessFlags getAccessFlags()
          Returns a AccessFlags instance that can be used to check the type's modifiers.
 java.beans.FeatureDescriptor getFeatureDescriptor()
          Returns the FeatureDescriptor that is wrapped by this FeatureDescription
 java.lang.String getLongFormat()
          Returns a long format String for this FeatureDescription
 java.lang.reflect.Method getMethod()
          Returns the Method
 java.beans.MethodDescriptor getMethodDescriptor()
          Returns the MethodDescriptor
 ParameterDescription[] getParameters()
          Returns the method's parameters
 TypeDescription getReturnType()
          Returns the method's return type
 java.lang.String getShortFormat()
          Returns a short format String for this FeatureDescription
 
Methods inherited from class com.go.teatools.FeatureDescription
getDescription, getDescriptionFirstSentence, getName, getTeaToolsUtils, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodDescription

public MethodDescription(java.beans.MethodDescriptor md,
                         TeaToolsUtils utils)
Creates a new MethodDescription
Method Detail

getMethodDescriptor

public java.beans.MethodDescriptor getMethodDescriptor()
Returns the MethodDescriptor

getMethod

public java.lang.reflect.Method getMethod()
Returns the Method

getAccessFlags

public AccessFlags getAccessFlags()
Returns a AccessFlags instance that can be used to check the type's modifiers.

getReturnType

public TypeDescription getReturnType()
Returns the method's return type

getParameters

public ParameterDescription[] getParameters()
Returns the method's parameters

getAcceptsSubstitution

public boolean getAcceptsSubstitution()
Returns true if the specified method accepts a Substitution as its last parameter.

getFeatureDescriptor

public java.beans.FeatureDescriptor getFeatureDescriptor()
Description copied from class: FeatureDescription
Returns the FeatureDescriptor that is wrapped by this FeatureDescription
Overrides:
getFeatureDescriptor in class FeatureDescription

getShortFormat

public java.lang.String getShortFormat()
Description copied from class: FeatureDescription
Returns a short format String for this FeatureDescription
Overrides:
getShortFormat in class FeatureDescription

getLongFormat

public java.lang.String getLongFormat()
Description copied from class: FeatureDescription
Returns a long format String for this FeatureDescription
Overrides:
getLongFormat in class FeatureDescription