Class OverloadedMethodsDictionary


  • public class OverloadedMethodsDictionary
    extends Object
    Dictionary of IOpenMethod instances. Categorizes methods using their signatures.
    • Constructor Detail

      • OverloadedMethodsDictionary

        public OverloadedMethodsDictionary()
    • Method Detail

      • contains

        public boolean contains​(IOpenMethod method)
        Checks that method already in dictionary.
        Parameters:
        method - IOpenMethod instance
        Returns:
        true if method already exists in dictionary; false - otherwise
      • add

        public void add​(TableSyntaxNode table)
        Adds TableSyntaxNode instance to dictionary. If method(s) with same signature already exists in dictionary new one will be added to its group; otherwise - new entry will be created.
        Parameters:
        table - executable table
      • addAll

        public void addAll​(List<TableSyntaxNode> tables)
        Adds all nodes to dictionary.
        Parameters:
        tables - list of executable nodes
      • getAllMethodOverloads

        public Set<TableSyntaxNodeKey> getAllMethodOverloads​(IOpenMethod method)
        Gets group of all possible overloads for specified method.
        Parameters:
        method - IOpenMethod instance
        Returns:
        group of methods