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>
newMethod
private Optional<javassist.CtMethod>
oldMethod
private JApiReturnType
returnType
-
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.String
computeReturnType(javassist.CtMethod oldMethod)
private JApiReturnType
computeReturnTypeChanges(Optional<javassist.CtMethod> oldMethodOptional, Optional<javassist.CtMethod> newMethodOptional)
private JApiChangeStatus
evaluateChangeStatus(JApiChangeStatus changeStatus)
Optional<javassist.CtMethod>
getNewMethod()
Optional<javassist.CtMethod>
getOldMethod()
JApiReturnType
getReturnType()
boolean
hasSameReturnType(JApiMethod otherMethod)
boolean
hasSameSignature(JApiMethod jApiMethod)
java.lang.String
toString()
static java.lang.String
toString(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:
toString
in classjava.lang.Object
-
toString
public static java.lang.String toString(Optional<javassist.CtMethod> method)
-
-