Here you will find some experiments with Xtext and Xbase.
(The versions for Xtext 2.2.1 can be found in the branch xtext-2.2.1, the versions for Xtext 2.3.1 can be found in the branch xtext-2.3; the branch master deals with the current version of Xtext, or the latest version.)
You will find the following projects:
Some experiments accessing JVM Types from an Xtext DSL (without using Xbase). Blogged here: Using JVM Types in Xtext 2.1 and the ImportManager .
Some experiments using Xbase expressions in an Xtext DSL, while keeping control on the generation (and reusing XbaseCompiler for generating Java code corresponding to Xbase expressions). Blogged here: Xtext 2.1: using Xbase expressions .
Some experiments using Xbase variable declarations in an Xtext DSL, while keeping control on the generation (and reusing XbaseCompiler for generating Java code corresponding to Xbase variable declarations and initialization expressions). Blogged here: Xtext 2.1: using Xbase variables .
Some experiments using Xbase in an Xtext DSL with non direct mapping to Java, using JvmModelInferrer (with custom scoping and validation) and debugging features. Blogged here: The JvmModelInferrer, the debugger and Xbase in Xtext 2.3 .