Interpreter Design Pattern

Type: Behavioral Design Pattern


Summary :

Interpreter design pattern is a behavioral design pattern. It is used to interpret or evaluate an expression(like sentence, query, mathematical expression etc). 


In this pattern Expression is considered to be composition or Terminal Expression and Compound Expressions. 


Example: 

SQL Squery,  Search engine query processing are example for Interpreter design pattern.

Comments

Popular posts from this blog

Difference between volatile and synchronized

Converting Java Map to String

Masking Credit Card number in Java