public interface

IDexAnnotationItem

com.pnfsoftware.jeb.core.units.code.android.dex.IDexAnnotationItem

Class Overview

This interface represents annotation items. An annotation item is made of an annotation and visibility information attached to the annotation.

Summary

Constants
int VISIBILITY_BUILD Visibility constant for build-level annotations.
int VISIBILITY_RUNTIME Visibility constant for runtime-level annotations.
int VISIBILITY_SYSTEM Visibility constant for system-level annotations.
Public Methods
abstract String formatVisibility()
Format the annotation visibility into a human-readable string.
abstract IDexAnnotation getAnnotation()
Get the annotation.
abstract int getVisibility()
Get the visibility for the annotation.
abstract boolean isSystemLevelAnnotation()
Convenience method.

Constants

public static final int VISIBILITY_BUILD

Visibility constant for build-level annotations.

Constant Value: 0 (0x00000000)

public static final int VISIBILITY_RUNTIME

Visibility constant for runtime-level annotations.

Constant Value: 1 (0x00000001)

public static final int VISIBILITY_SYSTEM

Visibility constant for system-level annotations.

Constant Value: 2 (0x00000002)

Public Methods

public abstract String formatVisibility ()

Format the annotation visibility into a human-readable string.

public abstract IDexAnnotation getAnnotation ()

Get the annotation.

Returns
  • the annotation, or null on error

public abstract int getVisibility ()

Get the visibility for the annotation.

Returns
  • the visibility value, refer to the VISIBILITY_* constants

public abstract boolean isSystemLevelAnnotation ()

Convenience method.

Returns
  • true if the visibility of this annotation is {@value #VISIBILITY_SYSTEM}