Class JavaScriptCompletionResolver.CompilerNodeVisitor

java.lang.Object
org.fife.rsta.ac.js.resolver.JavaScriptCompletionResolver.CompilerNodeVisitor
All Implemented Interfaces:
org.mozilla.javascript.ast.NodeVisitor
Enclosing class:
JavaScriptCompletionResolver

private class JavaScriptCompletionResolver.CompilerNodeVisitor extends Object implements org.mozilla.javascript.ast.NodeVisitor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
    private HashSet<org.mozilla.javascript.ast.AstNode>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    CompilerNodeVisitor(boolean ignoreParams)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    collectAllNodes(org.mozilla.javascript.ast.AstNode node)
    Get all nodes within AstNode and add to an ArrayList
    private String
    createLookupString(org.mozilla.javascript.ast.FunctionCall fn)
     
    private boolean
    ignore(org.mozilla.javascript.ast.AstNode node, boolean ignoreParams)
    Test node to check whether to ignore resolving, this is for parameters
    private boolean
    isParameter(org.mozilla.javascript.ast.AstNode node)
    Check the function that a name may belong to contains this actual parameter
    private boolean
    validNode(org.mozilla.javascript.ast.AstNode node)
     
    boolean
    visit(org.mozilla.javascript.ast.AstNode node)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ignoreParams

      private boolean ignoreParams
    • paramNodes

      private HashSet<org.mozilla.javascript.ast.AstNode> paramNodes
  • Constructor Details

    • CompilerNodeVisitor

      private CompilerNodeVisitor(boolean ignoreParams)
  • Method Details

    • visit

      public boolean visit(org.mozilla.javascript.ast.AstNode node)
      Specified by:
      visit in interface org.mozilla.javascript.ast.NodeVisitor
    • validNode

      private boolean validNode(org.mozilla.javascript.ast.AstNode node)
    • createLookupString

      private String createLookupString(org.mozilla.javascript.ast.FunctionCall fn)
    • ignore

      private boolean ignore(org.mozilla.javascript.ast.AstNode node, boolean ignoreParams)
      Test node to check whether to ignore resolving, this is for parameters
      Parameters:
      node - node to test
      Returns:
      true to ignore
    • collectAllNodes

      private void collectAllNodes(org.mozilla.javascript.ast.AstNode node)
      Get all nodes within AstNode and add to an ArrayList
      Parameters:
      node -
    • isParameter

      private boolean isParameter(org.mozilla.javascript.ast.AstNode node)
      Check the function that a name may belong to contains this actual parameter
      Parameters:
      node - Node to check
      Returns:
      true if the function contains the parameter