public interface MethodInfo extends MemberInfo
Modifier and Type | Method and Description |
---|---|
List<Variable> |
arguments()
Return a list of arguments for this method.
|
List<Type> |
exceptions()
Return a list of all Exception types that are declared as being
throwable from this method.
|
Constructor |
getConstructor()
Return the Constructor that is represented by this MethodInfo, or null
if no such Constructor instance exists (because this MethodInfo represents
a Constructor being generated, rather than a Constructor in a Class that is
loaded into the VM).
|
Method |
getMethod()
Return the Method that is represented by this MethodInfo, or null
if no such Method instance exists (because this MethodInfo represents
a Method being generated, rather than a Method in a Class that is
loaded into the VM).
|
boolean |
isConstructor()
Returns true if this is a constructor, false if
method.
|
Type |
returnType()
Return the Type that is returned by this method.
|
Signature |
signature()
Return the signature of this method.
|
isAccessibleInContext, modifiers, myClassInfo, name
boolean isConstructor()
Type returnType()
List<Type> exceptions()
Signature signature()
Method getMethod()
IllegalStateException
- if isConstructor() is true.Constructor getConstructor()
IllegalStateException
- if isConstructor() is false.Copyright © 2017 Oracle. All rights reserved.