Class JavaScriptNavigator

    • Constructor Detail

      • JavaScriptNavigator

        public JavaScriptNavigator()
        Create a new script navigator.
    • Method Detail

      • getNavigationPoints

        public java.util.List<NavigationPoint> getNavigationPoints​(java.lang.String text)
        Description copied from interface: Navigator
        Parses the specified source text and returns a list of navigation points.
        Specified by:
        getNavigationPoints in interface Navigator
        Parameters:
        text - the source text to determine navigation points for
        Returns:
        a (possibly empty) list of the extracted points
      • processTree

        protected void processTree​(org.mozilla.javascript.ast.AstRoot node)
        Description copied from class: AbstractUtilityParser
        This is called after each script is parsed to allow the utility access to the resulting abstract syntax tree. In the event of a serious parser error that prevents the tree from being generated, the root node will be null.
        Overrides:
        processTree in class SyntaxChecker
        Parameters:
        node - the root of the parse tree