MCPcopy Create free account

hub / github.com/RefactoringGuru/design-patterns-typescript / functions

Functions581 in github.com/RefactoringGuru/design-patterns-typescript

↓ 252 callersMethodlog
(message: string)
src/AbstractFactory/RealWorld/index.ts:71
↓ 13 callersMethodaddContact
(contact: Contact)
src/Iterator/RealWorld/index.ts:23
↓ 10 callersMethodadd
(packageComponent: PackageComponent)
src/Composite/RealWorld/index.ts:47
↓ 9 callersMethodhandle
(request: Request)
src/ChainOfResponsibility/RealWorld/index.ts:21
↓ 8 callersMethodoperation
()
src/Decorator/Conceptual/index.ts:21
↓ 6 callersMethodadd
* EN: A composite object can add or remove other components (both simple or * complex) to or from its child list. * * RU: Объект контей
src/Composite/Conceptual/index.ts:119
↓ 6 callersMethodinsertCoin
(_: Coin)
src/State/RealWorld/index.ts:159
↓ 6 callersMethodnotify
(sender: object, event: string, payload?: string)
src/Mediator/RealWorld/index.ts:14
↓ 5 callersMethodselectProduct
(_: Product)
src/State/RealWorld/index.ts:162
↓ 5 callersMethodshowState
()
src/Memento/RealWorld/index.ts:49
↓ 4 callersMethodadd
(component: ComponentPrototype)
src/Prototype/RealWorld/index.ts:36
↓ 4 callersMethodbuildRoute
(origin: string, destination: string)
src/Strategy/Book/index.ts:2
↓ 4 callersMethodgetPrice
()
src/Composite/Book/index.ts:2
↓ 4 callersFunctionhandleError
(error)
src/State/RealWorld/index.ts:195
↓ 4 callersMethodprocess
(req: ControllerRequest)
src/Decorator/RealWorld/index.ts:17
↓ 4 callersMethodpublish
()
src/State/Book/index.ts:3
↓ 4 callersMethodreadFile
(filename: string)
src/Flyweight/RealWorld/index.ts:29
↓ 4 callersMethodrender
()
src/State/Book/index.ts:2
↓ 4 callersMethodsend
(message: string)
src/Decorator/Book/index.ts:2
↓ 4 callersMethodtransitionTo
* EN: The Context allows changing the State object at runtime.
src/State/RealWorld/index.ts:91
↓ 4 callersMethodundo
()
src/Memento/RealWorld/index.ts:111
↓ 4 callersMethodvolumeDown
()
src/Observer/RealWorld/index.ts:35
↓ 4 callersMethodvolumeUp
()
src/Observer/RealWorld/index.ts:30
↓ 3 callersMethodaddItem
(item: string)
src/Iterator/Conceptual/index.ts:132
↓ 3 callersMethodaddItem
(item: Component)
src/Composite/Book/index.ts:18
↓ 3 callersMethodaddLine
(newLine: InvoiceLine)
src/TemplateMethod/RealWorld/index.ts:33
↓ 3 callersMethodbackup
()
src/Memento/Conceptual/index.ts:157
↓ 3 callersMethodbackup
()
src/Memento/RealWorld/index.ts:106
↓ 3 callersMethoddisplayText
()
src/Memento/Book/index.ts:26
↓ 3 callersMethoddoSomething
* EN: The Originator's business logic may affect its internal state. * Therefore, the client should backup the state before launching methods of
src/Memento/Conceptual/index.ts:46
↓ 3 callersMethodexecute
()
src/Command/RealWorld/index.ts:15
↓ 3 callersMethodgetCount
()
src/Iterator/Conceptual/index.ts:128
↓ 3 callersMethodgetProduct
* EN: Concrete Builders are supposed to provide their own methods for * retrieving results. That's because various types of builders may create
src/Builder/Conceptual/index.ts:101
↓ 3 callersMethodgetProduct
()
src/Builder/RealWorld/index.ts:68
↓ 3 callersMethodgetVehicle
* EN: Checks if the external state exists in the cache, otherwise it * creates a new one and stores it for reusing in the future
src/Flyweight/RealWorld/index.ts:87
↓ 3 callersMethodlistParts
()
src/Builder/Conceptual/index.ts:126
↓ 3 callersMethodoperation
()
src/FactoryMethod/Conceptual/index.ts:97
↓ 3 callersMethodpublishMessage
(message: string)
src/Mediator/RealWorld/index.ts:30
↓ 3 callersMethodrequest
()
src/Proxy/Conceptual/index.ts:25
↓ 3 callersMethodsetEmail
(email: string)
src/Builder/RealWorld/index.ts:29
↓ 3 callersMethodsetGender
(gender: Gender)
src/Builder/RealWorld/index.ts:36
↓ 3 callersMethodsetName
(name: string)
src/Builder/RealWorld/index.ts:21
↓ 3 callersMethodsetRouteStrategy
(strategy: RouteStrategy)
src/Strategy/Book/index.ts:26
↓ 3 callersMethodsetSurname
(surname: string)
src/Builder/RealWorld/index.ts:25
↓ 3 callersMethodsomeBusinessLogic
* EN: Usually, the subscription logic is only a fraction of what a Subject * can really do. Subjects commonly hold some important business logic,
src/Observer/Conceptual/index.ts:123
↓ 3 callersMethodtransitionTo
* EN: The Context allows changing the State object at runtime. * * RU: Контекст позволяет изменять объект Состояния во время выполнения.
src/State/Conceptual/index.ts:39
↓ 2 callersMethodaccept
(visitor: Visitor)
src/Visitor/Conceptual/index.ts:20
↓ 2 callersFunctionaddCarToPoliceDatabase
( ff: FlyweightFactory, plates: string, owner: string, brand: string, model: string, color: string, )
src/Flyweight/Conceptual/index.ts:117
↓ 2 callersMethodaddCredit
* EN: Some context public methods that the state will interact with
src/State/RealWorld/index.ts:52
↓ 2 callersMethodattach
(observer: Observer)
src/Observer/Conceptual/index.ts:34
↓ 2 callersFunctioncalculateCosts
* EN: The client code can be factored to reuse several visitors with the same * product set.
src/Visitor/RealWorld/index.ts:132
↓ 2 callersMethodchangeState
(state: State)
src/State/Book/index.ts:13
↓ 2 callersFunctionclient
* EN: The client function receives a factory to produce what it needs to * execute the application. It's not concerned about the environment.
src/AbstractFactory/RealWorld/index.ts:122
↓ 2 callersFunctionclientCode
* EN: The client code works with all objects using the Component interface. * This way it can stay independent of the concrete classes of components
src/Decorator/Conceptual/index.ts:111
↓ 2 callersFunctionclientCode
* EN: The client code is usually suited to work with a single handler. In most * cases, it is not even aware that the handler is part of a chain. *
src/ChainOfResponsibility/Conceptual/index.ts:103
↓ 2 callersFunctionclientCode
* EN: The client code can run visitor operations over any set of elements * without figuring out their concrete classes. The accept operation directs
src/Visitor/Conceptual/index.ts:135
↓ 2 callersFunctionclientCode
* EN: The client code is supposed to work with all objects (both subjects and * proxies) via the Subject interface in order to support both real subj
src/Proxy/Conceptual/index.ts:112
↓ 2 callersFunctionclientCode
* EN: The client code works with real and proxied services
src/Proxy/RealWorld/index.ts:79
↓ 2 callersFunctionclientCode
* EN: The client code works with an instance of a concrete creator, albeit * through its base interface. As long as the client keeps working with the
src/FactoryMethod/Conceptual/index.ts:128
↓ 2 callersFunctionclientCode
* EN: The client code calls the template method to execute the algorithm. * Client code does not have to know the concrete class of an object it work
src/TemplateMethod/Conceptual/index.ts:136
↓ 2 callersFunctionclientCode
* EN: Except for the initialization phase, where an Abstraction object gets * linked with a specific Implementation object, the client code should on
src/Bridge/Conceptual/index.ts:108
↓ 2 callersFunctionclientCode
* EN: The client code works with factories and products only through abstract * types: AbstractFactory and AbstractProduct. This lets you pass any fa
src/AbstractFactory/Conceptual/index.ts:184
↓ 2 callersFunctionclientCode
* EN: The client code supports all classes that follow the Target interface. * * RU: Клиентский код поддерживает все классы, использующие целевой ин
src/Adapter/Conceptual/index.ts:66
↓ 2 callersFunctionclientCode
* EN: The client code works with all of the components via the base interface. * * RU: Клиентский код работает со всеми компонентами через базовый и
src/Composite/Conceptual/index.ts:161
↓ 2 callersMethodclone
()
src/Prototype/RealWorld/index.ts:14
↓ 2 callersMethodconnect
()
src/AbstractFactory/RealWorld/index.ts:35
↓ 2 callersMethodconstructHouse
()
src/Builder/Book/index.ts:118
↓ 2 callersFunctioncreateFurniture
(factory: FurnitureFactory)
src/AbstractFactory/Book/index.ts:73
↓ 2 callersMethoddeliver
()
src/FactoryMethod/Book/index.ts:2
↓ 2 callersMethoddescribeHouse
()
src/Builder/Book/index.ts:28
↓ 2 callersMethoddoC
()
src/Mediator/Conceptual/index.ts:100
↓ 2 callersMethoddoSomeBusinessLogic
* EN: The Context delegates some work to the Strategy object instead of * implementing multiple versions of the algorithm on its own. *
src/Strategy/Conceptual/index.ts:59
↓ 2 callersMethodeditText
(newText: string)
src/Memento/Book/index.ts:22
↓ 2 callersMethodexclusiveMethodOfConcreteComponentA
* EN: Concrete Components may have special methods that don't exist in * their base class or interface. The Visitor is still able to use these
src/Visitor/Conceptual/index.ts:54
↓ 2 callersMethodgetItems
()
src/Iterator/Conceptual/index.ts:124
↓ 2 callersMethodgetKey
* EN: Returns a Flyweight's string hash for a given state. * * RU: Возвращает хеш строки Легковеса для данного состояния.
src/Flyweight/Conceptual/index.ts:65
↓ 2 callersMethodgetName
()
src/Memento/Book/index.ts:2
↓ 2 callersMethodgetRenderedItem
()
src/Bridge/RealWorld/index.ts:41
↓ 2 callersMethodgetResult
()
src/Builder/Book/index.ts:44
↓ 2 callersMethodisCommand
(object)
src/Command/Conceptual/index.ts:153
↓ 2 callersMethodlistFlyweights
()
src/Flyweight/Conceptual/index.ts:89
↓ 2 callersFunctionmain
* EN: The client function accepts any concrete factory
src/FactoryMethod/RealWorld/index.ts:68
↓ 2 callersMethodnext
()
src/Iterator/Conceptual/index.ts:22
↓ 2 callersMethodoperation1
()
src/Facade/Conceptual/index.ts:74
↓ 2 callersMethodoperationImplementation
()
src/Bridge/Conceptual/index.ts:75
↓ 2 callersMethodplanDelivery
()
src/FactoryMethod/Book/index.ts:41
↓ 2 callersMethodproducePartA
()
src/Builder/Conceptual/index.ts:23
↓ 2 callersMethodraiseSalaryTo
(newSalary: number)
src/Memento/RealWorld/index.ts:28
↓ 2 callersMethodrequest
()
src/Proxy/RealWorld/index.ts:13
↓ 2 callersMethodreset
()
src/Builder/Conceptual/index.ts:51
↓ 2 callersMethodreset
()
src/Builder/RealWorld/index.ts:81
↓ 2 callersMethodsetAddress
( streetName: string, number: number, city: string, zipCode: string, country: st
src/Builder/RealWorld/index.ts:40
↓ 2 callersMethodsetDoors
(doors: number)
src/Builder/Book/index.ts:12
↓ 2 callersMethodsetIsAdmin
(isAdmin: boolean)
src/Builder/RealWorld/index.ts:49
↓ 2 callersMethodsetMediator
(mediator: Mediator)
src/Mediator/Conceptual/index.ts:74
↓ 2 callersMethodsetNext
(handler: Handler<Request, Result>)
src/ChainOfResponsibility/RealWorld/index.ts:19
↓ 2 callersMethodsetPhoneNumber
(phoneNumber: string)
src/Builder/RealWorld/index.ts:53
↓ 2 callersMethodsetRoof
(roof: string)
src/Builder/Book/index.ts:20
↓ 2 callersMethodsetSwimmingPool
(swimmingPool: boolean)
src/Builder/Book/index.ts:24
↓ 2 callersMethodsetText
(text: string)
src/Prototype/RealWorld/index.ts:80
next →1–100 of 581, ranked by callers