ContextJ: Context-oriented Programming with Java
Malte Appeltauer, Robert Hirschfeld, Michael Haupt et al. · Journal of information processing · 2011
Context-oriented programming (COP) allows for the modularization of context-dependent behavioral variations. So far, COP has been implemented for dynamically-typed languages such as Lisp, Smalltalk, Python, and Ruby relying on reflection mechanisms, and for the statically-typed programming language Java based on a library and a pre-processor. ContextJ is our COP implementation for Java. It properly integrates COP’s layer concept into the Java type system. ContextJ is compiler-based. As confirmed by a benchmark and a case study, it provides both better performance and higher-level abstraction mechanisms than its Java-based predecessors. In this paper, we present the ContextJ language and explain its constructs and semantics. Further, we give an overview of the implementation of our compiler and discuss run-time benchmarks.
Cited by 89 works. doi:10.11185/imt.6.399
Authors
References
- Aspect-Oriented Programming
- An Overview of AspectJ
- Object-Oriented Programming in the Beta Programming Language
- Concurrent object-oriented programming
- Adaptive Object-Oriented Software: The Demeter Method with Propagation Patterns
- Scaling step-wise refinement
- Multi-Dimensional Separation of Concerns and the Hyperspace Approach
- Context-oriented Programming.
- The jastadd extensible java compiler
- JastAdd—an aspect-oriented compiler construction system