Class ASTManager

    • Constructor Detail

    • Method Detail

      • getLanguageVersion

        public net.sourceforge.pmd.lang.LanguageVersion getLanguageVersion()
      • setLanguageVersion

        public void setLanguageVersion​(net.sourceforge.pmd.lang.LanguageVersion version)
      • languageVersionProperty

        public org.reactfx.value.Var<net.sourceforge.pmd.lang.LanguageVersion> languageVersionProperty()
      • getCompilationUnit

        public java.util.Optional<net.sourceforge.pmd.lang.ast.Node> getCompilationUnit()
      • updateIfChanged

        public java.util.Optional<net.sourceforge.pmd.lang.ast.Node> updateIfChanged​(java.lang.String source,
                                                                                     java.lang.ClassLoader classLoader)
                                                                              throws ParseAbortedException
        Refreshes the compilation unit given the current parameters of the model.
        Parameters:
        source - Source code
        Throws:
        ParseAbortedException - if parsing fails and cannot recover