Class SymbolTable


  • public final class SymbolTable
    extends java.lang.Object
    Class SymbolTable defines the symbol table used by the 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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void enumerate​(com.adobe.xfa.formcalc.ScopeTable oScope, java.util.List<CalcSymbol> oSymbols)
      Enumerates entries in this object.
      • Methods inherited from class java.lang.Object

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

      • enumerate

        public void enumerate​(com.adobe.xfa.formcalc.ScopeTable oScope,
                              java.util.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.