FreeHEP API
Version current

org.freehep.jaco.rtti
Class IMethod

java.lang.Object
  extended byorg.freehep.jaco.rtti.IMethod

public class IMethod
extends Object

Defines a method in the RTTI.

Version:
$Id: IMethod.java,v 1.15 2005/01/26 23:59:19 duns Exp $
Author:
Mark Donszelmann
Source Code:
IMethod.java

Method Summary
 boolean equals(Object o)
          We consider two methods equal if one would override the other
 String[] getComments(String language)
          Returns the list of comments decribing this method.
 String[] getExceptionTypes()
          Returns a list of exceptions, thrown by this method
 String getName()
          Returns the name of the method
 INamedType[] getParameterTypes()
          Returns a list of named types which are parameters to this method
 IType getReturnType()
          Indicates the return type of this method
 String getSignature(String packageName, Properties imports)
           
 String[] getTemplateParameters()
          Indicates the templateParameters used.
 boolean isConst()
          Indicates if this method is const.
 boolean isStatic()
          Indicates if this method is static.
 String toString()
          Semi-java string representation of this method
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public String getName()
Returns the name of the method

Returns:
name of the method

getComments

public String[] getComments(String language)
Returns the list of comments decribing this method.

Returns:
list of comments

isStatic

public boolean isStatic()
Indicates if this method is static.

Returns:
true if method is static

getTemplateParameters

public String[] getTemplateParameters()
Indicates the templateParameters used.

Returns:
array of template parameter names.

getReturnType

public IType getReturnType()
Indicates the return type of this method

Returns:
return type

isConst

public boolean isConst()
Indicates if this method is const.

Returns:
true if method is const

getParameterTypes

public INamedType[] getParameterTypes()
Returns a list of named types which are parameters to this method

Returns:
list of named parameter types

getExceptionTypes

public String[] getExceptionTypes()
Returns a list of exceptions, thrown by this method

Returns:
list of exception names (may be fully qualified)

getSignature

public String getSignature(String packageName,
                           Properties imports)

toString

public String toString()
Semi-java string representation of this method

Returns:
Semi-java string representation of this method

equals

public boolean equals(Object o)
We consider two methods equal if one would override the other


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.