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, MethodModel

public class MethodModelImpl
extends AnnotatedElementImpl
implements MethodModel

Implementation of a method model


Field Summary
 
Fields inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
annotations, name
 
Constructor Summary
MethodModelImpl(ModelBuilder mb)
           
 
Method Summary
 ExtensibleType<?> getDeclaringType()
          Returns the class or interface model this method belongs to.
 java.lang.String getName()
          Annotated element have a name, which vary depending on the actual subclass type.
 
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
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
getAnnotations, shortDesc
 

Constructor Detail

MethodModelImpl

public MethodModelImpl(ModelBuilder mb)
Method Detail

getDeclaringType

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

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


Copyright © 2010 Sun Microsystems, Inc.. All Rights Reserved.