Class JApiAnnotationElement
java.lang.Object
japicmp.model.JApiAnnotationElement
- All Implemented Interfaces:
JApiCompatibility, JApiHasChangeStatus
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JApiChangeStatusprivate final Stringprivate final Optional<javassist.bytecode.annotation.MemberValue> private final Optional<javassist.bytecode.annotation.MemberValue> -
Constructor Summary
ConstructorsConstructorDescriptionJApiAnnotationElement(String name, Optional<javassist.bytecode.annotation.MemberValue> oldValue, Optional<javassist.bytecode.annotation.MemberValue> newValue, JApiChangeStatus changeStatus) -
Method Summary
Modifier and TypeMethodDescriptionprivate JApiChangeStatusevaluateChangeStatus(JApiChangeStatus changeStatus) Returns the change status of this element.Returns all compatibility changes.(package private) static JApiAnnotationElementValuegetMemberValue(javassist.bytecode.annotation.MemberValue memberValue) getName()Optional<javassist.bytecode.annotation.MemberValue> Optional<javassist.bytecode.annotation.MemberValue> booleanReturns true if this element has changed binary compatible.booleanReturns true if this element has changed source compatible.toString()
-
Field Details
-
name
-
oldValue
-
newValue
-
changeStatus
-
-
Constructor Details
-
JApiAnnotationElement
public JApiAnnotationElement(String name, Optional<javassist.bytecode.annotation.MemberValue> oldValue, Optional<javassist.bytecode.annotation.MemberValue> newValue, JApiChangeStatus changeStatus)
-
-
Method Details
-
toString
-
evaluateChangeStatus
-
getMemberValue
static JApiAnnotationElementValue getMemberValue(javassist.bytecode.annotation.MemberValue memberValue) -
getName
-
getOldValue
-
getNewValue
-
getChangeStatus
Description copied from interface:JApiHasChangeStatusReturns the change status of this element.- Specified by:
getChangeStatusin interfaceJApiHasChangeStatus- Returns:
- the change status of this element
-
getOldElementValues
-
getNewElementValues
-
isBinaryCompatible
public boolean isBinaryCompatible()Description copied from interface:JApiCompatibilityReturns true if this element has changed binary compatible.- Specified by:
isBinaryCompatiblein interfaceJApiCompatibility- Returns:
- true if this element has changed binary compatible
-
isSourceCompatible
public boolean isSourceCompatible()Description copied from interface:JApiCompatibilityReturns true if this element has changed source compatible.- Specified by:
isSourceCompatiblein interfaceJApiCompatibility- Returns:
- true if this element has changed source compatible
-
getCompatibilityChanges
Description copied from interface:JApiCompatibilityReturns all compatibility changes.- Specified by:
getCompatibilityChangesin interfaceJApiCompatibility- Returns:
- a list of compatibility changes
-