Search in sources :

Example 1 with ILineAttributeNode

use of jadx.core.dex.attributes.ILineAttributeNode in project jadx by skylot.

the class AnnotatedCodeWriter method processDefinitionAnnotations.

private void processDefinitionAnnotations() {
    if (!annotations.isEmpty()) {
        annotations.entrySet().removeIf(entry -> {
            Object v = entry.getValue();
            if (v instanceof DefinitionWrapper) {
                ILineAttributeNode l = ((DefinitionWrapper) v).getNode();
                CodePosition codePos = entry.getKey();
                l.setDecompiledLine(codePos.getLine());
                l.setDefPosition(codePos.getPos());
                return true;
            }
            return false;
        });
    }
}
Also used : ILineAttributeNode(jadx.core.dex.attributes.ILineAttributeNode) CodePosition(jadx.api.CodePosition)

Aggregations

CodePosition (jadx.api.CodePosition)1 ILineAttributeNode (jadx.core.dex.attributes.ILineAttributeNode)1