Pointcut
In aspect-oriented programming, a pointcut is a set of join points. A pointcut specifies where exactly to apply an advice, which allows separation of concerns and helps in modularizing business logic. Pointcuts are often specified using class names or method names, in some cases using regular expressions that match class or method names. Different frameworks support different Pointcut expressions; AspectJ syntax is considered as de facto standard. Frameworks are available for various programming languages like Java, Perl, Ruby, and many more which support pointcuts .
In aspect-oriented programming, a pointcut is a set of join points. A pointcut specifies where exactly to apply an advice, which allows separation of concerns and helps in modularizing business logic. Pointcuts are often specified using class names or method names, in some cases using regular expressions that match class or method names. Different frameworks support different Pointcut expressions; AspectJ syntax is considered as de facto standard. Frameworks are available for various programming languages like Java, Perl, Ruby, and many more which support pointcuts . ==Execution== Whenever the program execution reaches one of the join points described in the pointcut, a piece of code associated with the pointcut (called advice) is executed. This allows a programmer to describe where and when additional code should be executed in addition to already-defined behavior. Pointcut permits the addition of aspects to existing software, as well as the design of software with a clear separation of concerns, wherein the programmer weaves (merges) different aspects into a complete application. execution(void User.setPassword(password)) This pointcut matches execution of the User.setPassword method. call(void User.getPassword()) When User.getPassword is called, this pointcut is matched. handler(ArrayIndexOutOfBounds) Pointcut will match when there is an ArrayIndexOutOfBounds exception this(UserType) Pointcut will match when the object currently executing is of UserType. target(UserType) Pointcut will match when the target object is of UserType. within(UserType) Pointcut will match when the code executing belongs to UserType. ==References== ==External links== Paper "Back to the Future: Pointcuts as Predicates over Traces" by Karl Klose and Klaus Ostermann Paper "Remote Pointcut - A Language Construct for Distributed AOP" by Muga Nishizawa, Shigeru Chiba and Michiaki Tatsubori Paper "Datalog as a Pointcut Language in Aspect-Oriented Programming" Paper "Expressiveness and Complexity of Crosscut Languages" by Karl J. Lieberherr, Jeffrey Palm and Ravi Sundaram
References
- A Classification of Pointcut Language Constructs · retrieved 2026-11-19 · rev 1376416966
Cite this reference
MLA "A Classification of Pointcut Language Constructs." "A Classification of Pointcut Language Constructs" (PDF). 2026-11-19. https://pp.ipd.kit.edu/uploads/publikationen/stoerzer05splat.pdf. Accessed 24 November 2026.
Chicago "A Classification of Pointcut Language Constructs." "A Classification of Pointcut Language Constructs" (PDF). 2026-11-19. https://pp.ipd.kit.edu/uploads/publikationen/stoerzer05splat.pdf.
APA "A Classification of Pointcut Language Constructs" (PDF). (2026). A Classification of Pointcut Language Constructs. Retrieved November 24, 2026, from https://pp.ipd.kit.edu/uploads/publikationen/stoerzer05splat.pdf
- Introduction to AspectJ · retrieved 2026-11-19 · rev 1376416966
Cite this reference
MLA "Introduction to AspectJ." 2026-11-19. https://eclipse.org/aspectj/doc/next/progguide/starting-aspectj.html. Accessed 24 November 2026.
Chicago "Introduction to AspectJ." 2026-11-19. https://eclipse.org/aspectj/doc/next/progguide/starting-aspectj.html.
APA encyclopegia.org. (2026). Introduction to AspectJ. Retrieved November 24, 2026, from https://eclipse.org/aspectj/doc/next/progguide/starting-aspectj.html
- JBoss AOP - User Guide · retrieved 2016-09-13 · rev 1376416966
Cite this reference
MLA "JBoss AOP - User Guide." 2016-09-13. http://docs.jboss.org/aop/1.0/aspect-framework/userguide/en/html_single/index.html#what. Accessed 24 November 2026.
Chicago "JBoss AOP - User Guide." 2016-09-13. http://docs.jboss.org/aop/1.0/aspect-framework/userguide/en/html_single/index.html#what.
APA encyclopegia.org. (2016). JBoss AOP - User Guide. Retrieved November 24, 2026, from http://docs.jboss.org/aop/1.0/aspect-framework/userguide/en/html_single/index.html#what
- Join Points and Pointcuts · retrieved 2026-11-19 · rev 1376416966
Cite this reference
MLA "Join Points and Pointcuts." 2026-11-19. https://eclipse.org/aspectj/doc/next/progguide/language-joinPoints.html. Accessed 24 November 2026.
Chicago "Join Points and Pointcuts." 2026-11-19. https://eclipse.org/aspectj/doc/next/progguide/language-joinPoints.html.
APA encyclopegia.org. (2026). Join Points and Pointcuts. Retrieved November 24, 2026, from https://eclipse.org/aspectj/doc/next/progguide/language-joinPoints.html
- Inductively generated PointCuts to support refactoring to Aspects · retrieved 2026-11-19 · rev 1376416966
Cite this reference
MLA "Inductively generated PointCuts to support refactoring to Aspects." a b Tourwé, Tom; Kellens, Andy; Vanderperren, Wim; Vannieuwenhuyse, Frederik (2004). 2026-11-19. https://soft.vub.ac.be/Publications/2004/vub-prog-tr-04-09.pdf. Accessed 24 November 2026.
Chicago "Inductively generated PointCuts to support refactoring to Aspects." a b Tourwé, Tom; Kellens, Andy; Vanderperren, Wim; Vannieuwenhuyse, Frederik (2004). 2026-11-19. https://soft.vub.ac.be/Publications/2004/vub-prog-tr-04-09.pdf.
APA a b Tourwé, Tom; Kellens, Andy; Vanderperren, Wim; Vannieuwenhuyse, Frederik (2004). (2026). Inductively generated PointCuts to support refactoring to Aspects. Retrieved November 24, 2026, from https://soft.vub.ac.be/Publications/2004/vub-prog-tr-04-09.pdf
- A Classification of Pointcut Language Constructs . · retrieved 2026-09-22 · rev 1376416966
Cite this reference
MLA "A Classification of Pointcut Language Constructs ." 2026-09-22. https://en.wikipedia.org/w/index.php?oldid=1376416966. Accessed 24 November 2026.
Chicago "A Classification of Pointcut Language Constructs ." 2026-09-22. https://en.wikipedia.org/w/index.php?oldid=1376416966.
APA encyclopegia.org. (2026). A Classification of Pointcut Language Constructs . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376416966
- Introduction to AspectJ . retrieved 14 September 2016 · retrieved 2026-09-22 · rev 1376416966
Cite this reference
MLA "Introduction to AspectJ . retrieved 14 September 2016." Introduction to AspectJ. 2026-09-22. https://en.wikipedia.org/w/index.php?oldid=1376416966. Accessed 24 November 2026.
Chicago "Introduction to AspectJ . retrieved 14 September 2016." Introduction to AspectJ. 2026-09-22. https://en.wikipedia.org/w/index.php?oldid=1376416966.
APA Introduction to AspectJ. (2026). Introduction to AspectJ . retrieved 14 September 2016. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376416966
- JBoss AOP - User Guide . docs.jboss.org . retrieved 2016-09-14 · retrieved 2016-09-13 · rev 1376416966
Cite this reference
MLA "JBoss AOP - User Guide . docs.jboss.org . retrieved 2016-09-14." JBoss AOP - User Guide. 2016-09-13. https://en.wikipedia.org/w/index.php?oldid=1376416966. Accessed 24 November 2026.
Chicago "JBoss AOP - User Guide . docs.jboss.org . retrieved 2016-09-14." JBoss AOP - User Guide. 2016-09-13. https://en.wikipedia.org/w/index.php?oldid=1376416966.
APA JBoss AOP - User Guide. (2016). JBoss AOP - User Guide . docs.jboss.org . retrieved 2016-09-14. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376416966
- Join Points and Pointcuts . retrieved 14 September 2016 · retrieved 2026-09-22 · rev 1376416966
Cite this reference
MLA "Join Points and Pointcuts . retrieved 14 September 2016." Join Points and Pointcuts. 2026-09-22. https://en.wikipedia.org/w/index.php?oldid=1376416966. Accessed 24 November 2026.
Chicago "Join Points and Pointcuts . retrieved 14 September 2016." Join Points and Pointcuts. 2026-09-22. https://en.wikipedia.org/w/index.php?oldid=1376416966.
APA Join Points and Pointcuts. (2026). Join Points and Pointcuts . retrieved 14 September 2016. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376416966
- Inductively generated PointCuts to support refactoring to Aspects . · retrieved 2026-09-22 · rev 1376416966
Cite this reference
MLA "Inductively generated PointCuts to support refactoring to Aspects ." 2026-09-22. https://en.wikipedia.org/w/index.php?oldid=1376416966. Accessed 24 November 2026.
Chicago "Inductively generated PointCuts to support refactoring to Aspects ." 2026-09-22. https://en.wikipedia.org/w/index.php?oldid=1376416966.
APA encyclopegia.org. (2026). Inductively generated PointCuts to support refactoring to Aspects . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376416966
Cite this article
MLA
"Pointcut." encyclopegia.org, 2026, https://encyclopegia.org/wiki/pointcut. Accessed 24 November 2026.
Chicago
"Pointcut." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/pointcut.
APA
encyclopegia.org. (2026). Pointcut. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/pointcut
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON