Interface IBranchResolution
public interface IBranchResolution
Branch resolution data for a dynamic callsite. Contains a list of possible target sites, or a definitely resolved callsite.
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of candidate targets, if it exists.Get the resolved target, if it exists.Get branch targets.booleanisEmpty()Determine whether no branch target information is available.booleanDetermine if the branch was resolved.
-
Method Details
-
isEmpty
boolean isEmpty()Determine whether no branch target information is available.- Returns:
- true if there are no targets
-
getTargets
List<BranchTarget> getTargets()Get branch targets.- Returns:
- branch targets
-
isResolved
boolean isResolved()Determine if the branch was resolved.- Returns:
- if true,
getResolvedTarget()can be used to retrieve the target
-
getResolvedTarget
IBranchTarget getResolvedTarget()Get the resolved target, if it exists.- Returns:
- may be null
-
getCandidates
List<IBranchTarget> getCandidates()Get the list of candidate targets, if it exists.- Returns:
- may be empty
-