Search in sources :

Example 1 with OverlayIcon

use of jadx.gui.utils.OverlayIcon in project jadx by skylot.

the class JField method getIcon.

@Override
public Icon getIcon() {
    AccessInfo af = field.getAccessFlags();
    OverlayIcon icon = Utils.makeIcon(af, ICON_FLD_PUB, ICON_FLD_PRI, ICON_FLD_PRO, ICON_FLD_DEF);
    if (af.isTransient()) {
        icon.add(ICON_TRANSIENT);
    }
    if (af.isVolatile()) {
        icon.add(ICON_VOLATILE);
    }
    return icon;
}
Also used : AccessInfo(jadx.core.dex.info.AccessInfo) OverlayIcon(jadx.gui.utils.OverlayIcon)

Example 2 with OverlayIcon

use of jadx.gui.utils.OverlayIcon in project jadx by skylot.

the class JMethod method getIcon.

@Override
public Icon getIcon() {
    AccessInfo accessFlags = mth.getAccessFlags();
    OverlayIcon icon = Utils.makeIcon(accessFlags, ICON_MTH_PUB, ICON_MTH_PRI, ICON_MTH_PRO, ICON_MTH_DEF);
    if (accessFlags.isConstructor()) {
        icon.add(ICON_CONSTRUCTOR);
    }
    if (accessFlags.isSynchronized()) {
        icon.add(ICON_SYNC);
    }
    return icon;
}
Also used : AccessInfo(jadx.core.dex.info.AccessInfo) OverlayIcon(jadx.gui.utils.OverlayIcon)

Aggregations

AccessInfo (jadx.core.dex.info.AccessInfo)2 OverlayIcon (jadx.gui.utils.OverlayIcon)2