|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public JotClass getDeclaringClass()
public java.lang.String getName()
public JotType getReturnType()
public int getModifiers()
The modifier encodings are defined in The Java Virtual Machine Specification, table 4.1.
Modifier
public JotClass[] getParameterTypes()
public JotParameter[] getParameters()
public JotParameter getFirstParameter()
null
if this method has no parameters.public JotParameter getParameter(java.lang.String name)
name
- the name of the requested parameterpublic JotType[] getThrowSpecifiers()
throws
clause of this method. If this
method throws no exceptions, then returns a zero-length array.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |