Class ElementAltMethodImpl

java.lang.Object
org.glassfish.hk2.xml.internal.alt.papi.ElementAltMethodImpl
All Implemented Interfaces:
AltMethod

public class ElementAltMethodImpl extends Object implements AltMethod
Author:
jwells
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: AltMethod
      Returns the name of the method
      Specified by:
      getName in interface AltMethod
      Returns:
      The non null name of the method
    • getReturnType

      public AltClass getReturnType()
      Description copied from interface: AltMethod
      Returns the return type of the method
      Specified by:
      getReturnType in interface AltMethod
      Returns:
      The non-null return type (may still be an AltClass representing void.class)
    • getParameterTypes

      public List<AltClass> getParameterTypes()
      Specified by:
      getParameterTypes in interface AltMethod
    • getFirstTypeArgument

      public AltClass getFirstTypeArgument()
      Description copied from interface: AltMethod
      Returns the first type argument of the return value. For example, if the return type is List<String> then this would return an AltClass for String
      Specified by:
      getFirstTypeArgument in interface AltMethod
      Returns:
      The possibly null (if there is no first type argument) Class that is the first type argument of the return value
    • getFirstTypeArgumentOfParameter

      public AltClass getFirstTypeArgumentOfParameter(int index)
      Specified by:
      getFirstTypeArgumentOfParameter in interface AltMethod
    • getAnnotation

      public AltAnnotation getAnnotation(String annotation)
      Description copied from interface: AltMethod
      Returns the annotation if found on the method, or null if not found
      Specified by:
      getAnnotation in interface AltMethod
      Returns:
    • getAnnotations

      public List<AltAnnotation> getAnnotations()
      Specified by:
      getAnnotations in interface AltMethod
    • setMethodInformation

      public void setMethodInformation(MethodInformationI methodInfo)
      Description copied from interface: AltMethod
      Sets the method information once it has been calculated. This field is not set by the underlying provider, but is calculated later
      Specified by:
      setMethodInformation in interface AltMethod
      Parameters:
      methodInfo - The possibly null methodInformation
    • getMethodInformation

      public MethodInformationI getMethodInformation()
      Description copied from interface: AltMethod
      Gets the method information once it has been calculated. This field is not set by the underlying provider, but is calculated later
      Specified by:
      getMethodInformation in interface AltMethod
      Returns:
      The possibly null methodInformation
    • isVarArgs

      public boolean isVarArgs()
      Specified by:
      isVarArgs in interface AltMethod
    • toString

      public String toString()
      Overrides:
      toString in class Object