|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MethodSignature
This interface describes a Java method signature; i.e. its "name" and its "parameter types". The parameter types are referenced by name, allowing us to reference classes that are not (or cannot be) loaded.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
This interface is not intended to be implemented by clients.
| Method Summary | |
|---|---|
void |
appendSignatureTo(java.lang.StringBuilder sb)
Append a string representation of the method's signature: |
boolean |
describes(java.lang.reflect.Method method)
Return whether the method signature describes the specified method. |
boolean |
equals(MethodSignature other)
Return whether the method signature equals the specified signature. |
boolean |
equals(java.lang.String otherName,
JavaType[] otherParameterTypes)
Return whether the method signature equals the specified signature. |
java.lang.String |
getName()
Return the method's name. |
JavaType[] |
getParameterTypes()
Return the method's parameter types. |
java.lang.String |
getSignature()
Return a string representation of the method's signature: |
void |
printSignatureOn(java.io.PrintWriter pw)
Print a string representation of the method's signature: |
| Method Detail |
|---|
java.lang.String getName()
JavaType[] getParameterTypes()
boolean describes(java.lang.reflect.Method method)
boolean equals(java.lang.String otherName,
JavaType[] otherParameterTypes)
boolean equals(MethodSignature other)
java.lang.String getSignature()
"foo(int, java.lang.String)"
void appendSignatureTo(java.lang.StringBuilder sb)
"foo(int, java.lang.String)"
void printSignatureOn(java.io.PrintWriter pw)
"foo(int, java.lang.String)"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||