• Home
  • LLMs
  • Docker
  • Kubernetes
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Design Patterns | Interpreter
  1. References
  2. Example
    • The Context
    • The Interpreter
    • The Concrete Interpreter (1)
    • The Concrete Interpreter (2)
    • The Concrete Interpreter (2-1)
    • The Concrete Interpreter (2-2)
    • A simple class to test the Interpreter design pattern

  1. References
    • Definition: (source: http://en.wikipedia.org/wiki/Interpreter_pattern)

      The intent of the interpreter pattern is to specify how to evaluate sentences in a language.

    • Class diagram: (source: http://en.wikipedia.org/wiki/Interpreter_pattern)

      Interpreter Pattern
  2. Example
    • The Context:


    • The Interpreter:


    • The Concrete Interpreter (1):


    • The Concrete Interpreter (2):


    • The Concrete Interpreter (2-1):


    • The Concrete Interpreter (2-2):


    • A simple class to test the Interpreter design pattern:


© 2025  mtitek