Package japicmp.model

Class JApiMethod

All Implemented Interfaces:
JApiCanBeSynthetic, JApiCompatibility, JApiHasAbstractModifier, JApiHasAccessModifier, JApiHasAnnotations, JApiHasBridgeModifier, JApiHasChangeStatus, JApiHasFinalModifier, JApiHasLineNumber, JApiHasModifiers, JApiHasStaticModifier, JApiHasSyntheticAttribute, JApiHasSyntheticModifier

public class JApiMethod extends JApiBehavior
  • Field Details

    • oldMethod

      private final Optional<javassist.CtMethod> oldMethod
    • newMethod

      private final Optional<javassist.CtMethod> newMethod
    • returnType

      private final JApiReturnType returnType
  • Constructor Details

  • Method Details

    • evaluateChangeStatus

      private JApiChangeStatus evaluateChangeStatus(JApiChangeStatus changeStatus)
    • computeReturnTypeChanges

      private JApiReturnType computeReturnTypeChanges(Optional<javassist.CtMethod> oldMethodOptional, Optional<javassist.CtMethod> newMethodOptional)
    • computeReturnType

      private String computeReturnType(javassist.CtMethod oldMethod)
    • hasSameReturnType

      public boolean hasSameReturnType(JApiMethod otherMethod)
    • hasSameSignature

      public boolean hasSameSignature(JApiMethod jApiMethod)
    • getNewMethod

      public Optional<javassist.CtMethod> getNewMethod()
    • getOldMethod

      public Optional<javassist.CtMethod> getOldMethod()
    • getReturnType

      public JApiReturnType getReturnType()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public static String toString(Optional<javassist.CtMethod> method)