Class JApiAnnotation
java.lang.Object
japicmp.model.JApiAnnotation
- All Implemented Interfaces:
JApiCompatibility, JApiHasChangeStatus
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JApiChangeStatusprivate final List<JApiAnnotationElement> private final Stringprivate final Optional<javassist.bytecode.annotation.Annotation> private final Optional<javassist.bytecode.annotation.Annotation> -
Constructor Summary
ConstructorsConstructorDescriptionJApiAnnotation(String fullyQualifiedName, Optional<javassist.bytecode.annotation.Annotation> oldAnnotation, Optional<javassist.bytecode.annotation.Annotation> newAnnotation, JApiChangeStatus changeStatus) -
Method Summary
Modifier and TypeMethodDescriptionbuildMemberValueMap(javassist.bytecode.annotation.Annotation annotation) private voidcomputeElements(List<JApiAnnotationElement> elements, Optional<javassist.bytecode.annotation.Annotation> oldAnnotationOptional, Optional<javassist.bytecode.annotation.Annotation> newAnnotationOptional) private JApiChangeStatusevaluateChangeStatus(JApiChangeStatus changeStatus) Returns the change status of this element.Returns all compatibility changes.Optional<javassist.bytecode.annotation.Annotation> Optional<javassist.bytecode.annotation.Annotation> booleanReturns true if this element has changed binary compatible.booleanReturns true if this element has changed source compatible.toString()
-
Field Details
-
fullyQualifiedName
-
oldAnnotation
-
newAnnotation
-
elements
-
changeStatus
-
-
Constructor Details
-
JApiAnnotation
public JApiAnnotation(String fullyQualifiedName, Optional<javassist.bytecode.annotation.Annotation> oldAnnotation, Optional<javassist.bytecode.annotation.Annotation> newAnnotation, JApiChangeStatus changeStatus)
-
-
Method Details
-
toString
-
computeElements
private void computeElements(List<JApiAnnotationElement> elements, Optional<javassist.bytecode.annotation.Annotation> oldAnnotationOptional, Optional<javassist.bytecode.annotation.Annotation> newAnnotationOptional) -
buildMemberValueMap
-
evaluateChangeStatus
-
getChangeStatus
Description copied from interface:JApiHasChangeStatusReturns the change status of this element.- Specified by:
getChangeStatusin interfaceJApiHasChangeStatus- Returns:
- the change status of this element
-
getFullyQualifiedName
-
getOldAnnotation
-
getNewAnnotation
-
getElements
-
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
-