Package com.pnfsoftware.jeb.core.actions
Class ActionXrefsData
java.lang.Object
com.pnfsoftware.jeb.core.actions.ActionData
com.pnfsoftware.jeb.core.actions.ActionXrefsData
- All Implemented Interfaces:
IActionData
Action payload for
Actions.QUERY_XREFS.-
Field Summary
Fields inherited from class com.pnfsoftware.jeb.core.actions.ActionData
ERRCODE_UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of addresses.Get a list of optional details, associated to the list of returned addresses.intRetrieve the optional cap for the number of references that the plugin should return.Get the effective target for the xref query.Get a list of optional details, associated to the list of returned addresses.voidsetAddresses(List<String> addresses) Set the list of addresses.voidsetDetails(List<String> details) Set the list of detail strings.voidsetHintMaxResults(int hintMaxResults) Set an optional cap for the number of references that the plugin should return.voidCan be used by the client or plugin.voidsetUserAddresses(List<String> userAddresses) Set the list of user-friendly addresses.Methods inherited from class com.pnfsoftware.jeb.core.actions.ActionData
canReuseObject, getDescription, getExecutionErrorCode, getExecutionErrorMessage, getValue, isNoInfoRequest, reset, setDescription, setExecutionError, setExecutionErrorCode, setExecutionErrorMessage, setValue
-
Constructor Details
-
ActionXrefsData
public ActionXrefsData()
-
-
Method Details
-
setHintMaxResults
public void setHintMaxResults(int hintMaxResults) Set an optional cap for the number of references that the plugin should return. This method is used by clients.- Parameters:
hintMaxResults- hint, may be set to 0 or negative to mean that no-cap
-
getHintMaxResults
public int getHintMaxResults()Retrieve the optional cap for the number of references that the plugin should return. This method is used by plugins.- Returns:
- cap hint, may be set to 0 or negative to mean that no-cap
-
getTarget
Get the effective target for the xref query.- Returns:
- the target address or signature, or
nullif it must be inferred by the plugin
-
setTarget
Can be used by the client or plugin. If the client leaves it to null, it is up to the plugin to determine the wanted target address, and fill up this field. If the client provides it, the plugin must use it.- Parameters:
target- target address or signature
-
getAddresses
Get the list of addresses. This method is used by clients.- Returns:
- a list of addresses
-
setAddresses
Set the list of addresses. This method is used by plugins.- Parameters:
addresses- list of addresses
-
getDetails
Get a list of optional details, associated to the list of returned addresses. This method is used by clients. If non-null, must contain the same number of entries asgetAddresses().- Returns:
- if non-null, the length must be the same as the list of addresses; the individual elements may be null
-
setDetails
Set the list of detail strings. This method is used by plugins.- Parameters:
details- detail strings aligned withgetAddresses()
-
getUserAddresses
Get a list of optional details, associated to the list of returned addresses. This method is used by clients. If non-null, must contain the same number of entries asgetAddresses().- Returns:
- an optional list of user addresses
-
setUserAddresses
Set the list of user-friendly addresses. This method is used by plugins.- Parameters:
userAddresses- user-friendly addresses aligned withgetAddresses()
-