Class JavaReconAnon

java.lang.Object
com.pnfsoftware.jeb.core.units.code.java.JavaReconAnon

@Ser(oldId=65700) public class JavaReconAnon extends Object
An object holding reconstructed information for an anonymous class.
  • Constructor Details

    • JavaReconAnon

      public JavaReconAnon(List<Integer> superInitIndices, Map<Integer,IJavaInstanceField> constParamIndexToField)
      Create anonymous-class reconstruction metadata.
      Parameters:
      superInitIndices - argument indices consumed by the super-constructor call
      constParamIndexToField - mapping of captured constructor arguments to synthetic fields
  • Method Details

    • getArgumentIndicesUsedBySuper

      public List<Integer> getArgumentIndicesUsedBySuper()
      Retrieve argument indices consumed by the super-constructor call.
      Returns:
      argument indices
    • isCapturedToSyntheticField

      public boolean isCapturedToSyntheticField(int index)
      Determine whether a constructor argument was captured to a synthetic field.
      Parameters:
      index - argument index (0 mapping to `this$0`, and should normally be skipped)
      Returns:
      true if the argument was captured to a synthetic field
    • getCaptureSite

      public IJavaInstanceField getCaptureSite(int index)
      Retrieve the synthetic field receiving a captured constructor argument.
      Parameters:
      index - argument index
      Returns:
      synthetic field, or null if the argument was not captured to a synthetic field