com.borland.jbuilder.jot
Interface JotMethod

All Known Subinterfaces:
JotConstructor, JotConstructorSource, JotMethodSource

public interface JotMethod

This interface represents a method in an object. See section 8.4 of the Java Language Specification for more information about methods.


Method Summary
 JotClass getDeclaringClass()
          Returns a reference to the JotClass object in which this method is declared.
 JotParameter getFirstParameter()
          Returns the first JotParameter object of this method, or null if this method has no parameters.
 int getModifiers()
          Returns the Java language modifiers for this method encoded in an integer.
 java.lang.String getName()
          Returns the name of this method.
 JotParameter getParameter(java.lang.String name)
          Returns the named JotParameter object.
 JotParameter[] getParameters()
          Returns an array of JotParameter objects which represent the parameters of this method.
 JotClass[] getParameterTypes()
          Returns an array of JotClass objects containing the parameter types of this method.
 JotType getReturnType()
          Returns a JotType object which contains the return type of this method.
 JotType[] getThrowSpecifiers()
          Returns an array of JotType objects containing the exception types declared in the throws clause of this method.
 

Method Detail

getDeclaringClass

public JotClass getDeclaringClass()
Returns a reference to the JotClass object in which this method is declared.

getName

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

getReturnType

public JotType getReturnType()
Returns a JotType object which contains the return type of this method.

getModifiers

public int getModifiers()
Returns the Java language modifiers for this method encoded in an integer. The modifiers consist of the Java Virtual Machine's constants for public, protected, private, final, synchronized, static and strictfp. They should be decoded using the methods of class Modifier.

The modifier encodings are defined in The Java Virtual Machine Specification, table 4.1.

See Also:
Modifier

getParameterTypes

public JotClass[] getParameterTypes()
Returns an array of JotClass objects containing the parameter types of this method. If this method has no parameters, then returns a zero- length array.

getParameters

public JotParameter[] getParameters()
Returns an array of JotParameter objects which represent the parameters of this method. If this method has no parameters, then returns a zero- length array.

getFirstParameter

public JotParameter getFirstParameter()
Returns the first JotParameter object of this method, or null if this method has no parameters.

getParameter

public JotParameter getParameter(java.lang.String name)
Returns the named JotParameter object.

Parameters:
name - the name of the requested parameter

getThrowSpecifiers

public JotType[] getThrowSpecifiers()
Returns an array of JotType objects containing the exception types declared in the throws clause of this method. If this method throws no exceptions, then returns a zero-length array.