Class DCopyOptions
java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.ir.DCopyOptions
copy()
options for IR expressions.-
Field Summary
FieldsModifier and TypeFieldDescriptionIdentifier replacement.Replacement by equality.Replacement by identity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method is called byIDElement.copy(DCopyOptions)
to provide customized 'duplication'.
-
Field Details
-
replmap_id
Replacement by identity. The source IR is compared using ==. -
replmap_eq
Replacement by equality. The source IR is compared usingequals
. -
identmap
Identifier replacement.
-
-
Constructor Details
-
DCopyOptions
public DCopyOptions()
-
-
Method Details
-
onDup
This method is called byIDElement.copy(DCopyOptions)
to provide customized 'duplication'. Note that restrictions apply toIDPredicate
andIDInstruction
, 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; the IR element returned may be duplicated if it was already provided by a
previous call to
onDup(IDExpression)
-