public class

DCopyOptions

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.android.ir.DCopyOptions

Class Overview

IR element copy() options.

Summary

Fields
public Map<Integer, IDVar> identmap Identifier replacement.
public Map<IDExpressionIDExpression> replmap_eq Replacement by equality.
public Map<IDExpressionIDExpression> replmap_id Replacement by identity.
Public Constructors
DCopyOptions()
Public Methods
IDExpression onDup(IDExpression e)
This method is called by copy(DCopyOptions) to provide customized 'duplication'.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public Map<Integer, IDVar> identmap

Identifier replacement.

public Map<IDExpressionIDExpression> replmap_eq

Replacement by equality. The source IR is compared using equals.

public Map<IDExpressionIDExpression> replmap_id

Replacement by identity. The source IR is compared using ==.

Public Constructors

public DCopyOptions ()

Public Methods

public IDExpression onDup (IDExpression e)

This method is called by copy(DCopyOptions) to provide customized 'duplication'. Note that restrictions apply to IDPredicate and IDInstruction, which must be copied to similarly-typed IR, and to non-IDExpression IR ( IDSwitchData, IDTarget, IDIndex), which can only be duplicated.

The default implementation uses the public attributes of this class to support common use cases. This method may be overridden. The override should call super if it were to return null.

Parameters
e a source IR
Returns
  • a copied IR, whose type must be compatible with e and suitable within the containing expression