Search in sources :

Example 1 with OpaqueTrigger

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);
}
Also used : OpaqueTrigger(org.finos.legend.engine.protocol.pure.v1.model.packageableElement.persistence.trigger.OpaqueTrigger) EngineException(org.finos.legend.engine.shared.core.operational.errorManagement.EngineException) ParseTreeWalkerSourceInformation(org.finos.legend.engine.language.pure.grammar.from.ParseTreeWalkerSourceInformation) SourceInformation(org.finos.legend.engine.protocol.pure.v1.model.SourceInformation)

Aggregations

ParseTreeWalkerSourceInformation (org.finos.legend.engine.language.pure.grammar.from.ParseTreeWalkerSourceInformation)1 SourceInformation (org.finos.legend.engine.protocol.pure.v1.model.SourceInformation)1 OpaqueTrigger (org.finos.legend.engine.protocol.pure.v1.model.packageableElement.persistence.trigger.OpaqueTrigger)1 EngineException (org.finos.legend.engine.shared.core.operational.errorManagement.EngineException)1