|
ESC/Java2 © 2003,2004,2005,2006 David Cok and Joseph Kiniry © 2005,2006 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavafe.reader.MethodSignature
Represents the signature of a method in terms of AST elements.
| Field Summary | |
private java.util.Vector |
parameters
The parameter types of this method signature. |
private Type |
return_
The return type of this method signature. |
| Constructor Summary | |
(package private) |
MethodSignature(int classLocation)
Construct a new method signature with an empty sequence of parameter types and a void return type. |
| Method Summary | |
(package private) void |
appendParameter(Type parameterType)
Append a parameter type to this method signature. |
(package private) int |
countParameters()
Count the number of parameter types in this method signature. |
(package private) Type |
getReturn()
Return the return type of this method signature. |
(package private) Type |
parameterAt(int index)
Return a parameter type from this method signature. |
(package private) void |
setReturn(Type return_)
Change the return type of this method signature. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.Vector parameters
private Type return_
| Constructor Detail |
MethodSignature(int classLocation)
| Method Detail |
int countParameters()
Type parameterAt(int index)
index - the index of the parameter type to return
void appendParameter(Type parameterType)
parameterType - the parameter type to appendType getReturn()
void setReturn(Type return_)
return_ - the new return type
|
ESC/Java2 © 2003,2004,2005,2006 David Cok and Joseph Kiniry © 2005,2006 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||