Class SyntheticLocalVariableTable
- java.lang.Object
-
- com.tonic.analysis.source.recovery.SyntheticLocalVariableTable
-
public final class SyntheticLocalVariableTable extends Object
Builds aLocalVariableTablefor a STRIPPED method from the decompiler's recovered slot model, keyed to the method's ORIGINAL bytecode offsets.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocalVariableTableAttributebuild(IRMethod ir, RecoveryContext ctx, MethodEntry method, int codeLength, int maxLocals, ConstPool constPool)
-
-
-
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) ofmethodctx- the recovery context whose slot partition holds the recovered namesmethod- the source method (the attribute's parent)codeLength- the original code length (scopes are clamped to it)maxLocals- the method'smax_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
-
-