Package sootup.java.core
Class AnnotationUsage
java.lang.Object
sootup.java.core.AnnotationUsage
This class models Annotations
- Author:
- Markus Schmidt
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationUsage(@NonNull ClassType annotation, @NonNull Map<String, Object> values) Creates an annotation usage with runtime visibility, without inferring its retention policy.AnnotationUsage(@NonNull ClassType annotation, @NonNull Map<String, Object> values, boolean runtimeVisible) Creates an annotation usage with the visibility of its containing classfile attribute. -
Method Summary
-
Constructor Details
-
AnnotationUsage
Creates an annotation usage with runtime visibility, without inferring its retention policy. -
AnnotationUsage
public AnnotationUsage(@NonNull ClassType annotation, @NonNull Map<String, Object> values, boolean runtimeVisible) Creates an annotation usage with the visibility of its containing classfile attribute.
-
-
Method Details
-
getAnnotation
-
getValues
-
isRuntimeVisible
public boolean isRuntimeVisible()Returns whether this usage comes from a RuntimeVisible annotation attribute. Nested annotation values inherit the visibility of the containing annotation. Usages created without an explicit visibility, including annotation default values, default totrue. -
toString
-
equals
-
hashCode
public int hashCode()
-