Package japicmp.model
Class JApiAnnotationElement
java.lang.Object
japicmp.model.JApiAnnotationElement
- All Implemented Interfaces:
JApiCompatibility
,JApiHasChangeStatus
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JApiChangeStatus
private final String
private 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 JApiChangeStatus
evaluateChangeStatus
(JApiChangeStatus changeStatus) Returns the change status of this element.Returns all compatibility changes.(package private) static JApiAnnotationElementValue
getMemberValue
(javassist.bytecode.annotation.MemberValue memberValue) getName()
Optional
<javassist.bytecode.annotation.MemberValue> Optional
<javassist.bytecode.annotation.MemberValue> boolean
Returns true if this element has changed binary compatible.boolean
Returns 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:JApiHasChangeStatus
Returns the change status of this element.- Specified by:
getChangeStatus
in interfaceJApiHasChangeStatus
- Returns:
- the change status of this element
-
getOldElementValues
-
getNewElementValues
-
isBinaryCompatible
public boolean isBinaryCompatible()Description copied from interface:JApiCompatibility
Returns true if this element has changed binary compatible.- Specified by:
isBinaryCompatible
in interfaceJApiCompatibility
- Returns:
- true if this element has changed binary compatible
-
isSourceCompatible
public boolean isSourceCompatible()Description copied from interface:JApiCompatibility
Returns true if this element has changed source compatible.- Specified by:
isSourceCompatible
in interfaceJApiCompatibility
- Returns:
- true if this element has changed source compatible
-
getCompatibilityChanges
Description copied from interface:JApiCompatibility
Returns all compatibility changes.- Specified by:
getCompatibilityChanges
in interfaceJApiCompatibility
- Returns:
- a list of compatibility changes
-