Class FunTableImpl

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FunTableImpl()
      Creates a FunTableImpl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<FunInfo> getFunInfoList()
      Returns a list of FunInfo objects.
      java.util.List<java.lang.String> getReservedWords()
      Returns a list of words (String) which may not be used as identifiers.
      java.util.List<Resolver> getResolvers()
      Returns a list of Resolver objects.
      java.util.List<Resolver> getResolvers​(java.lang.String name, Syntax syntax)
      Returns a list of resolvers for an operator with a given name and syntax.
      void init()
      Initializes the function table.
      boolean isProperty​(java.lang.String s)
      Returns whether a string is a property-style (postfix) operator.
      boolean isReserved​(java.lang.String s)
      Returns whether a string is a reserved word.
      • Methods inherited from class java.lang.Object

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

      • FunTableImpl

        protected FunTableImpl()
        Creates a FunTableImpl.
    • Method Detail

      • init

        public final void init()
        Initializes the function table.
      • getReservedWords

        public java.util.List<java.lang.String> getReservedWords()
        Description copied from interface: FunTable
        Returns a list of words (String) which may not be used as identifiers.
        Specified by:
        getReservedWords in interface FunTable
      • isReserved

        public boolean isReserved​(java.lang.String s)
        Description copied from interface: FunTable
        Returns whether a string is a reserved word.
        Specified by:
        isReserved in interface FunTable
      • isProperty

        public boolean isProperty​(java.lang.String s)
        Description copied from interface: FunTable
        Returns whether a string is a property-style (postfix) operator. This is used during parsing to disambiguate functions from unquoted member names.
        Specified by:
        isProperty in interface FunTable
      • getResolvers

        public java.util.List<Resolver> getResolvers​(java.lang.String name,
                                                     Syntax syntax)
        Description copied from interface: FunTable
        Returns a list of resolvers for an operator with a given name and syntax. Never returns null; if there are no resolvers, returns the empty list.
        Specified by:
        getResolvers in interface FunTable
        Parameters:
        name - Operator name
        syntax - Operator syntax
        Returns:
        List of resolvers for the operator