Class SymbolTable

java.lang.Object
com.adobe.xfa.formcalc.SymbolTable

public final class SymbolTable extends Object
Class SymbolTable defines the symbol table used by the invalid input: '<'a href=CalcParser.html">FormCalc scripting engine. The FormCalc parser in fact, maintains two symbols tables: one for all built-in functions and a separate one for variables, parameters and functions.

The symbol table for built-ins is quite static in size, but its contents can span several invocations of yyparse(). Conversely, the symbol table for variables, parameters and functions needs to grow to as many variables, parameters and functions as are defined in the FormCalc script, and needs to contract its contents before each invocation of yyparse().

  • Method Details

    • enumerate

      public void enumerate(com.adobe.xfa.formcalc.ScopeTable oScope, List<CalcSymbol> oSymbols)
      Enumerates entries in this object. It populates a list of CalcSymbol pointers to variables, references and parameters. Symbols are not copied, so they must not be stored for later use.
      Parameters:
      oScope - the scope of the symbol being searched for.
      oSymbols - the returned list of symbols.