Callables.with_one_of_the_names()
with_one_of_the_names(
names: List[str]
,
sensitivity: bool = True
) →
Callables
Adds a filter to get callables having specified names. Returns a filtered Callables child object. This method can be called on all Callables child classes: Functions and Modifiers.
To filter given a single name, refer to Callables.with_name().
To get all but some specified names, refer to Callables.without_names().
Functions Example
from glider import *
def query():
# Retrieve all functions that are named `sendMessage` and `totalSupply`
functions = Functions().with_one_of_the_names(["sendMessage", "totalSupply"]).exec(100)
# Return the first five functions
return functions[:5]
Output:

Modifiers Example
from glider import *
def query():
# Retrieve the modifiers that are named `onlyCaller` and `onlyClient`
modifiers = Modifiers().with_one_of_the_names(["onlyCaller", "onlyClient"]).exec(100)
# Return the first five modifiers
return modifiers[:5]
Output:

Last updated