Add comments

This commit is contained in:
Robert Muir 2016-06-11 16:01:29 -04:00
parent fd9b0f9087
commit 07baefac32
1 changed files with 5 additions and 0 deletions

View File

@ -200,6 +200,11 @@ public final class Definition {
this.handle = handle;
}
/**
* Returns MethodType for this method.
* <p>
* This works even for user-defined Methods (where the MethodHandle is null).
*/
public MethodType getMethodType() {
// we have a methodhandle already (e.g. whitelisted class)
// just return its type