Class JavaScriptHelper.InfixVisitor

  • All Implemented Interfaces:
    org.mozilla.javascript.ast.NodeVisitor
    Enclosing class:
    JavaScriptHelper

    private static class JavaScriptHelper.InfixVisitor
    extends java.lang.Object
    implements org.mozilla.javascript.ast.NodeVisitor
    Visitor for infix expression to work out whether the variable should be a string number literal Only works by determining the presence of StringLiterals and NumberLiterals. StringLiteral will override type to evaluate to String. TODO most probably need some work on this
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean visit​(org.mozilla.javascript.ast.AstNode node)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • visit

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