currentTemplateRule = null;
}
}
private boolean tryMapDefinition() {
ATEToken start = T(0);
if(start == null) return false;
String name = start.getAttribute();
if(!matchID(0)) return false;
// should be '::=' right after id
if(isDEFINED_TO_BE(0)) {
// When a defineToBe is matched, we are at the beginning of the content of the template map
nextToken();
} else {
// Invalid template map matching
return false;
}
final ATEToken definedToBeToken = T(-1);
currentTemplateMap = new ElementTemplateMapDefinition(name, start, definedToBeToken, null);
// loop through all new lines
while (matchNewline(0));