public class MethodModelImpl extends AnnotatedElementImpl implements MethodModel
Member.Type| Constructor and Description |
|---|
MethodModelImpl(String name,
ExtensibleType owner,
String signature) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getArgumentTypes()
Returns the parameter types as string
|
ExtensibleType<?> |
getDeclaringType()
Returns the class or interface model this method belongs to.
|
Member.Type |
getMemberType()
returns the type of the member
|
Parameter |
getParameter(int index)
Return the parameter by index
|
List<Parameter> |
getParameters()
Returns the list of parameter
|
ParameterizedType |
getReturnType()
Returns the method return type
|
String |
getSignature()
Returns the method signature.
|
void |
setParameters(List<Parameter> parameters) |
void |
setReturnType(ParameterizedType returnType) |
getAnnotation, getAnnotations, getName, isApplicationClass, print, setApplicationClass, shortDesc, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getName, shortDescpublic MethodModelImpl(String name, ExtensibleType owner, String signature)
public Member.Type getMemberType()
MembergetMemberType in interface Memberpublic ExtensibleType<?> getDeclaringType()
MethodModelgetDeclaringType in interface MembergetDeclaringType in interface MethodModelpublic String getSignature()
MethodModelgetSignature in interface MethodModelpublic ParameterizedType getReturnType()
MethodModelgetReturnType in interface MethodModelpublic void setReturnType(ParameterizedType returnType)
public String[] getArgumentTypes()
MethodModelgetArgumentTypes in interface MethodModelpublic List<Parameter> getParameters()
MethodModelgetParameters in interface MethodModelpublic Parameter getParameter(int index)
MethodModelgetParameter in interface MethodModelCopyright © 2009–2022 Oracle Corporation. All rights reserved.