Class Pass

    • Constructor Detail

      • Pass

        public Pass()
    • Method Detail

      • setLang

        public void setLang​(@Nullable LanguageFrontend lang)
        Passes may need information about what source language they are parsing.
        Parameters:
        lang - May be null
      • cleanup

        public abstract void cleanup()
      • supportsLanguageFrontend

        public boolean supportsLanguageFrontend​(LanguageFrontend lang)
        Specifies, whether this pass supports this particular language frontend. This defaults to true and needs to be overridden if a different behaviour is wanted.

        Note: this is not yet used, since we do not have an easy way at the moment to find out which language frontend a result used.

        Parameters:
        lang - the language frontend
        Returns:
        true by default