Interface AltMethod

All Known Implementing Classes:
ElementAltMethodImpl, MethodAltMethodImpl

public interface AltMethod
Author:
jwells
  • Method Details

    • getName

      String getName()
      Returns the name of the method
      Returns:
      The non null name of the method
    • getReturnType

      AltClass getReturnType()
      Returns the return type of the method
      Returns:
      The non-null return type (may still be an AltClass representing void.class)
    • getParameterTypes

      List<AltClass> getParameterTypes()
    • getFirstTypeArgument

      AltClass getFirstTypeArgument()
      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
      Returns:
      The possibly null (if there is no first type argument) Class that is the first type argument of the return value
    • getFirstTypeArgumentOfParameter

      AltClass getFirstTypeArgumentOfParameter(int index)
    • getAnnotation

      AltAnnotation getAnnotation(String annotation)
      Returns the annotation if found on the method, or null if not found
      Parameters:
      annotation -
      Returns:
    • getAnnotations

      List<AltAnnotation> getAnnotations()
    • isVarArgs

      boolean isVarArgs()
    • setMethodInformation

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

      MethodInformationI getMethodInformation()
      Gets the method information once it has been calculated. This field is not set by the underlying provider, but is calculated later
      Returns:
      The possibly null methodInformation