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
  • Constructor Details

  • Method Details

    • 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
    • getSignature

      public String getSignature()
      Description copied from interface: MethodModel
      Returns the method signature.
      Specified by:
      getSignature in interface MethodModel
      Returns:
      this method signature
    • getReturnType

      public ParameterizedType getReturnType()
      Description copied from interface: MethodModel
      Returns the method return type
      Specified by:
      getReturnType in interface MethodModel
      Returns:
      the method's return type
    • setReturnType

      public void setReturnType(ParameterizedType returnType)
    • getArgumentTypes

      public String[] getArgumentTypes()
      Description copied from interface: MethodModel
      Returns the parameter types as string
      Specified by:
      getArgumentTypes in interface MethodModel
      Returns:
      the parameter types
    • getExceptionTypes

      public String[] getExceptionTypes()
      Specified by:
      getExceptionTypes in interface MethodModel
      Returns:
      the checked exception types, or an empty array if the method doesn't declare any thrown exceptions
    • setExceptionTypes

      public void setExceptionTypes(List<ParameterizedType> exceptionTypes)
    • getParameters

      public List<Parameter> getParameters()
      Description copied from interface: MethodModel
      Returns the list of parameter
      Specified by:
      getParameters in interface MethodModel
      Returns:
      the list of parameter
    • getParameter

      public Parameter getParameter(int index)
      Description copied from interface: MethodModel
      Return the parameter by index
      Specified by:
      getParameter in interface MethodModel
      Parameters:
      index -
      Returns:
      the parameter by index
    • setParameters

      public void setParameters(List<Parameter> parameters)