Class JavaScriptAstParser.FunctionReturnVisitor

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

    private class JavaScriptAstParser.FunctionReturnVisitor
    extends java.lang.Object
    implements org.mozilla.javascript.ast.NodeVisitor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.ArrayList<org.mozilla.javascript.ast.ReturnStatement> returnStatements  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TypeDeclaration getCommonReturnType()
      Iterate through all the return types and check they are all the same, otherwise return no type
      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
    • Field Detail

      • returnStatements

        private java.util.ArrayList<org.mozilla.javascript.ast.ReturnStatement> returnStatements
    • Constructor Detail

      • FunctionReturnVisitor

        private FunctionReturnVisitor()
    • Method Detail

      • visit

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

        public TypeDeclaration getCommonReturnType()
        Iterate through all the return types and check they are all the same, otherwise return no type
        Returns: