/// <summary> /// Cleans all text fields in this element /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Generated.Action obj, bool visitSubNodes) { if (obj.getExpression() != null) { obj.setExpression(obj.getExpression().Trim()); } if (obj.getComment() != null) { obj.setComment(obj.getComment().Trim()); } base.visit(obj, visitSubNodes); }
public override void visit(Generated.Action obj, bool visitSubNodes) { Rules.Action action = (Rules.Action)obj; if (Rebuild) { action.Statement = null; } // Side effect : compiles or recompiles the statement DataDictionary.Interpreter.Statement.Statement statement = action.Statement; base.visit(obj, visitSubNodes); }
public override void visit(Generated.Action obj, bool subNodes) { Rules.Action action = obj as Rules.Action; if (action != null) { try { action.Messages.Clear(); if (!action.Expression.Contains('%')) { Interpreter.Statement.Statement statement = checkStatement(action, action.Expression); } } catch (Exception exception) { action.AddException(exception); } } base.visit(obj, subNodes); }
/// <summary> /// Counts the number of actions /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Generated.Action obj, bool visitSubNodes) { Actions += 1; base.visit(obj, visitSubNodes); }