Package org.openl.rules.lang.xls
Class OverloadedMethodsDictionary
- java.lang.Object
-
- org.openl.rules.lang.xls.OverloadedMethodsDictionary
-
public class OverloadedMethodsDictionary extends Object
Dictionary of IOpenMethod instances. Categorizes methods using their signatures.
-
-
Constructor Summary
Constructors Constructor Description OverloadedMethodsDictionary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(TableSyntaxNode table)Adds TableSyntaxNode instance to dictionary.voidaddAll(List<TableSyntaxNode> tables)Adds all nodes to dictionary.booleancontains(IOpenMethod method)Checks that method already in dictionary.Set<TableSyntaxNodeKey>getAllMethodOverloads(IOpenMethod method)Gets group of all possible overloads for specified method.
-
-
-
Method Detail
-
contains
public boolean contains(IOpenMethod method)
Checks that method already in dictionary.- Parameters:
method- IOpenMethod instance- Returns:
trueif 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
-
-