Class DefaultEntryPointCreator

java.lang.Object
soot.jimple.infoflow.entryPointCreators.BaseEntryPointCreator
soot.jimple.infoflow.entryPointCreators.DefaultEntryPointCreator
All Implemented Interfaces:
IEntryPointCreator

public class DefaultEntryPointCreator extends BaseEntryPointCreator
Entry point creator that performs Java method invocations. The invocation order is simulated to be arbitrary. If you only need a sequential list, use the SequentialEntryPointCreator instead.
Author:
Steven Arzt
  • Constructor Details

    • DefaultEntryPointCreator

      public DefaultEntryPointCreator(Collection<String> methodsToCall)
      Creates a new instanceof the DefaultEntryPointCreator class
      Parameters:
      methodsToCall - A collection containing the methods to be called in the dummy main method. Note that the order of the method calls is simulated to be arbitrary. Entries must be valid Soot method signatures.
  • Method Details

    • createDummyMainInternal

      protected soot.SootMethod createDummyMainInternal()
      Description copied from class: BaseEntryPointCreator
      Implementors need to overwrite this method for providing the actual dummy main method
      Specified by:
      createDummyMainInternal in class BaseEntryPointCreator
      Returns:
      The generated dummy main method
    • getRequiredClasses

      public Collection<String> getRequiredClasses()
      Description copied from interface: IEntryPointCreator
      Gets the set of classes used in this dummy main method. These classes will be loaded by the FlowDroid engine.
      Returns:
      The list of required classes in this dummy main method
    • getAdditionalMethods

      public Collection<soot.SootMethod> getAdditionalMethods()
      Description copied from interface: IEntryPointCreator
      Gets the set of additional methods that are used by the entry point and that were generated by this entry point creator, although they are not directly entry points on their own.
      Returns:
      The set of additional helper methods used by the generated entry point
    • getAdditionalFields

      public Collection<soot.SootField> getAdditionalFields()
      Description copied from interface: IEntryPointCreator
      Gets the set of additional fields that are used by the entry point and that were generated by this entry point creator.
      Returns:
      The set of additional helper fields used by the generated entry point