Class ScriptEntryPoints.ScriptEntryPoint

java.lang.Object
com.ibm.wala.ipa.callgraph.Entrypoint
com.ibm.wala.cast.ipa.callgraph.ScriptEntryPoints.ScriptEntryPoint
All Implemented Interfaces:
BytecodeConstants
Enclosing class:
ScriptEntryPoints

public class ScriptEntryPoints.ScriptEntryPoint extends Entrypoint
  • Constructor Details

    • ScriptEntryPoint

      public ScriptEntryPoint(IMethod scriptCodeBody)
  • Method Details

    • makeSite

      public CallSiteReference makeSite(int programCounter)
      Description copied from class: Entrypoint
      Create a call site reference representing a call to this entrypoint
      Overrides:
      makeSite in class Entrypoint
      Parameters:
      programCounter - the bytecode index of the synthesize call
      Returns:
      the call site reference, or null if failed to find entrypoint
    • getParameterTypes

      public TypeReference[] getParameterTypes(int i)
      Specified by:
      getParameterTypes in class Entrypoint
      Returns:
      types to allocate for parameter i; for non-static methods, parameter 0 is "this"
    • getNumberOfParameters

      public int getNumberOfParameters()
      Specified by:
      getNumberOfParameters in class Entrypoint
      Returns:
      number of parameters to this call, including "this" for non-statics
    • addCall

      Description copied from class: Entrypoint
      Add a call to this entrypoint from the fake root method
      Overrides:
      addCall in class Entrypoint
      Parameters:
      m - the Fake Root Method
      Returns:
      the call instruction added, or null if the operation fails