blob: afe5671c43ae8e9221e635bc5c61881a0bc1f92b [file] [log] [blame]
«IMPORT org::eclipse::xtend::middleend::xpand::test»
«DEFINE testProtect FOR Person»
«FILE "Person.java"»
package org.eclipse.xtend.middleend.xpand.test;
public class Person {
public void someOperation {
«PROTECT CSTART '/*' CEND '*/' ID "Person_" + name + "_1"»
/* TODO Protected Region 1: Implement this method */
«ENDPROTECT»
}
«EXPAND SomeOtherFunction FOR this»
}
«ENDFILE»
«ENDDEFINE»
«DEFINE SomeOtherFunction FOR Person»
public void someOtherFunction {
«PROTECT CSTART '/*' CEND '*/' ID "Person_" + name + "_2"»
/* TODO Protected Region 2: Implement this method */
«ENDPROTECT»
}
«ENDDEFINE»