Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current ·  View Page History

Here are some larger examples of DSLDs. All scripts here are available under an EPL license:

Delegate

Singleton

// need to use a bind pointcut here since we want to bind to the outermost pointcut
bind( type : currentType(annotatedBy(Singleton))).accept {
method name:"getInstance", type:type, isStatic:true, declaringType:type, doc:"Get the singleton instance of this Class"
property name:"instance", type:type, isStatic:true, declaringType:type, doc:"Get the singleton instance of this Class"
}

DSLD Meta Script

This script defines editing support for DSLDs themselves.

Labels
  • None