Interface VariableDeclarations

    • Method Detail

      • hasVariable

        boolean hasVariable​(java.lang.String name)
        Whether the variable is declared
        Parameters:
        name - name of the variable being queried
        Returns:
        whether the variable is declared
      • getVariable

        Node getVariable​(java.lang.String name)
        Tries to fetch a variable

        Before a variable is fetched it should be checked whether it is declared through hasVariable(String).
        Parameters:
        name - name of the variable to be fetched
        Returns:
        an AST (abstract syntax tree) node representing the variable