Class MethodModelImpl
- java.lang.Object
-
- org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
-
- org.glassfish.hk2.classmodel.reflect.impl.MethodModelImpl
-
- All Implemented Interfaces:
AnnotatedElement,Member,MethodModel
public class MethodModelImpl extends AnnotatedElementImpl implements MethodModel
Implementation of a method model
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.hk2.classmodel.reflect.Member
Member.Type
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ExtensibleType<?>owner(package private) java.util.List<Parameter>parameters(package private) java.lang.Stringsignature
-
Constructor Summary
Constructors Constructor Description MethodModelImpl(java.lang.String name, ExtensibleType owner, java.lang.String signature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getArgumentTypes()Returns the parameter types as stringExtensibleType<?>getDeclaringType()Returns the class or interface model this method belongs to.Member.TypegetMemberType()returns the type of the memberjava.lang.StringgetReturnType()Returns the method return typejava.lang.StringgetSignature()Returns the method signature.-
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
addAnnotation, getAnnotation, getAnnotations, getName, isApplicationClass, print, setApplicationClass, shortDesc, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
-
-
-
-
Field Detail
-
parameters
final java.util.List<Parameter> parameters
-
owner
final ExtensibleType<?> owner
-
signature
final java.lang.String signature
-
-
Constructor Detail
-
MethodModelImpl
public MethodModelImpl(java.lang.String name, ExtensibleType owner, java.lang.String signature)
-
-
Method Detail
-
getMemberType
public Member.Type getMemberType()
Description copied from interface:Memberreturns the type of the member- Specified by:
getMemberTypein interfaceMember- Returns:
- the member type as a value of @link{Member#Type}
-
getDeclaringType
public ExtensibleType<?> getDeclaringType()
Description copied from interface:MethodModelReturns the class or interface model this method belongs to.- Specified by:
getDeclaringTypein interfaceMember- Specified by:
getDeclaringTypein interfaceMethodModel- Returns:
- the class of this method
-
getSignature
public java.lang.String getSignature()
Description copied from interface:MethodModelReturns the method signature.- Specified by:
getSignaturein interfaceMethodModel- Returns:
- this method signature
-
getReturnType
public java.lang.String getReturnType()
Description copied from interface:MethodModelReturns the method return type- Specified by:
getReturnTypein interfaceMethodModel- Returns:
- the method's return type
-
getArgumentTypes
public java.lang.String[] getArgumentTypes()
Description copied from interface:MethodModelReturns the parameter types as string- Specified by:
getArgumentTypesin interfaceMethodModel- Returns:
- the parameter types
-
-