Class SyntheticLocalVariableTable


  • public final class SyntheticLocalVariableTable
    extends Object
    Builds a LocalVariableTable for a STRIPPED method from the decompiler's recovered slot model, keyed to the method's ORIGINAL bytecode offsets.
    • Method Detail

      • build

        public static LocalVariableTableAttribute build​(IRMethod ir,
                                                        RecoveryContext ctx,
                                                        MethodEntry method,
                                                        int codeLength,
                                                        int maxLocals,
                                                        ConstPool constPool)
        Parameters:
        ir - the lifted IR (after baseline transforms) of method
        ctx - the recovery context whose slot partition holds the recovered names
        method - the source method (the attribute's parent)
        codeLength - the original code length (scopes are clamped to it)
        maxLocals - the method's max_locals (entry slots must be below it)
        constPool - the pool the entry names and descriptors are interned into
        Returns:
        the synthetic attribute, or null when nothing recoverable