use of org.finos.legend.engine.protocol.pure.v1.model.packageableElement.persistence.trigger.OpaqueTrigger in project legend-engine by finos.
the class PersistenceParseTreeWalker method visitTrigger.
/**
********
* trigger
*********
*/
private Trigger visitTrigger(PersistenceParserGrammar.TriggerContext ctx) {
SourceInformation sourceInformation = walkerSourceInformation.getSourceInformation(ctx);
if (ctx.TRIGGER_OPAQUE() != null) {
OpaqueTrigger opaqueTrigger = new OpaqueTrigger();
opaqueTrigger.sourceInformation = sourceInformation;
return opaqueTrigger;
}
throw new EngineException("Unrecognized trigger", sourceInformation, EngineErrorType.PARSER);
}
Aggregations