Package soot

Class BodyTransformer

    • Constructor Detail

      • BodyTransformer

        public BodyTransformer()
    • Method Detail

      • transform

        public final void transform​(Body b,
                                    String phaseName,
                                    Map<String,​String> options)
        Called by clients of the transformation. Acts as a generic interface for BodyTransformers. Calls internalTransform with the optionsString properly set up. That is, the options in optionsString override those in the Scene.
        Parameters:
        b - the body on which to apply the transformation
        phaseName - phaseName for the transform. Used to retrieve options from the Scene.
      • transform

        public final void transform​(Body b,
                                    String phaseName)
      • transform

        public final void transform​(Body b)
      • internalTransform

        protected abstract void internalTransform​(Body b,
                                                  String phaseName,
                                                  Map<String,​String> options)
        This method is called to perform the transformation itself. It is declared abstract; subclasses must implement this method by making it the entry point to their actual Body transformation.
        Parameters:
        b - the body on which to apply the transformation
        phaseName - the phasename for this transform; not typically used by implementations.
        options - the actual computed options; a combination of default options and Scene specified options.