org.glassfish.hk2.classmodel.reflect.impl
Class MethodModelImpl

java.lang.Object
  extended by org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
      extended by 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 inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
annotations, name
 
Constructor Summary
MethodModelImpl(java.lang.String name, ExtensibleType owner, java.lang.String signature)
           
 
Method Summary
 java.lang.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
 java.lang.String getName()
          Annotated element have a name, which vary depending on the actual subclass type.
 java.lang.String getReturnType()
          Returns the method return type
 java.lang.String getSignature()
          Returns the method signature.
 
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
getAnnotation, getAnnotations, print, 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, shortDesc
 

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: Member
returns the type of the member

Specified by:
getMemberType in interface Member
Returns:
the member type as a value of @link{Member#Type}

getDeclaringType

public ExtensibleType<?> getDeclaringType()
Description copied from interface: MethodModel
Returns the class or interface model this method belongs to.

Specified by:
getDeclaringType in interface Member
Specified by:
getDeclaringType in interface MethodModel
Returns:
the class of this method

getName

public java.lang.String getName()
Description copied from interface: AnnotatedElement
Annotated element have a name, which vary depending on the actual subclass type. For instance, a class annotated element's name is the class name as obtained from Class.getName()

Specified by:
getName in interface AnnotatedElement
Overrides:
getName in class AnnotatedElementImpl
Returns:
the annotated element name

getSignature

public java.lang.String getSignature()
Description copied from interface: MethodModel
Returns the method signature.

Specified by:
getSignature in interface MethodModel
Returns:
this method signature

getReturnType

public java.lang.String getReturnType()
Description copied from interface: MethodModel
Returns the method return type

Specified by:
getReturnType in interface MethodModel
Returns:
the method's return type

getArgumentTypes

public java.lang.String[] getArgumentTypes()
Description copied from interface: MethodModel
Returns the parameter types as string

Specified by:
getArgumentTypes in interface MethodModel
Returns:
the parameter types


Copyright © 2010 Oracle Corporation. All Rights Reserved.