Package japicmp.model
Class JApiMethod
- java.lang.Object
-
- japicmp.model.JApiBehavior
-
- japicmp.model.JApiMethod
-
- All Implemented Interfaces:
JApiCanBeSynthetic,JApiCompatibility,JApiHasAbstractModifier,JApiHasAccessModifier,JApiHasAnnotations,JApiHasBridgeModifier,JApiHasChangeStatus,JApiHasFinalModifier,JApiHasLineNumber,JApiHasModifiers,JApiHasStaticModifier,JApiHasSyntheticAttribute,JApiHasSyntheticModifier
public class JApiMethod extends JApiBehavior
-
-
Field Summary
Fields Modifier and Type Field Description private Optional<javassist.CtMethod>newMethodprivate Optional<javassist.CtMethod>oldMethodprivate JApiReturnTypereturnType-
Fields inherited from class japicmp.model.JApiBehavior
changeStatus
-
-
Constructor Summary
Constructors Constructor Description JApiMethod(JApiClass jApiClass, java.lang.String name, JApiChangeStatus changeStatus, Optional<javassist.CtMethod> oldMethod, Optional<javassist.CtMethod> newMethod, JarArchiveComparator jarArchiveComparator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringcomputeReturnType(javassist.CtMethod oldMethod)private JApiReturnTypecomputeReturnTypeChanges(Optional<javassist.CtMethod> oldMethodOptional, Optional<javassist.CtMethod> newMethodOptional)private JApiChangeStatusevaluateChangeStatus(JApiChangeStatus changeStatus)Optional<javassist.CtMethod>getNewMethod()Optional<javassist.CtMethod>getOldMethod()JApiReturnTypegetReturnType()booleanhasSameReturnType(JApiMethod otherMethod)booleanhasSameSignature(JApiMethod jApiMethod)java.lang.StringtoString()static java.lang.StringtoString(Optional<javassist.CtMethod> method)-
Methods inherited from class japicmp.model.JApiBehavior
addParameter, extractSyntheticAttribute, geNewLineNumber, getAbstractModifier, getAccessModifier, getAnnotations, getAttributes, getBridgeModifier, getChangeStatus, getCompatibilityChanges, getExceptions, getFinalModifier, getjApiClass, getModifiers, getName, getNewLineNumberAsString, getOldLineNumber, getOldLineNumberAsString, getParameters, getStaticModifier, getSyntheticAttribute, getSyntheticModifier, hasSameParameter, isBinaryCompatible, isSourceCompatible
-
-
-
-
Field Detail
-
oldMethod
private final Optional<javassist.CtMethod> oldMethod
-
newMethod
private final Optional<javassist.CtMethod> newMethod
-
returnType
private final JApiReturnType returnType
-
-
Constructor Detail
-
JApiMethod
public JApiMethod(JApiClass jApiClass, java.lang.String name, JApiChangeStatus changeStatus, Optional<javassist.CtMethod> oldMethod, Optional<javassist.CtMethod> newMethod, JarArchiveComparator jarArchiveComparator)
-
-
Method Detail
-
evaluateChangeStatus
private JApiChangeStatus evaluateChangeStatus(JApiChangeStatus changeStatus)
-
computeReturnTypeChanges
private JApiReturnType computeReturnTypeChanges(Optional<javassist.CtMethod> oldMethodOptional, Optional<javassist.CtMethod> newMethodOptional)
-
computeReturnType
private java.lang.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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public static java.lang.String toString(Optional<javassist.CtMethod> method)
-
-