Class JavaReconAnon
java.lang.Object
com.pnfsoftware.jeb.core.units.code.java.JavaReconAnon
An object holding reconstructed information for an anonymous class.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaReconAnon(List<Integer> superInitIndices, Map<Integer, IJavaInstanceField> constParamIndexToField) Create anonymous-class reconstruction metadata. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve argument indices consumed by the super-constructor call.getCaptureSite(int index) Retrieve the synthetic field receiving a captured constructor argument.booleanisCapturedToSyntheticField(int index) Determine whether a constructor argument was captured to a synthetic field.
-
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 callconstParamIndexToField- mapping of captured constructor arguments to synthetic fields
-
-
Method Details
-
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
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
-