Exemple #1
0
        /// <summary>
        /// text := &lt;TEXT&gt;
        /// </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: protected AstNode text() throws org.camunda.bpm.engine.impl.juel.Scanner.ScanException, ParseException
        protected internal virtual AstNode text()
        {
            AstNode v = null;

            if (token.Symbol == TEXT)
            {
                v = new AstText(token.Image);
                consumeToken();
            }
            return(v);
        }
Exemple #2
0
        /// <summary>
        /// tree := text? ((dynamic text?)+ | (deferred text?)+)?
        /// </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public Tree tree() throws org.camunda.bpm.engine.impl.juel.Scanner.ScanException, ParseException
        public virtual Tree tree()
        {
            consumeToken();
            AstNode t = text();

            if (token.Symbol == EOF)
            {
                if (t == null)
                {
                    t = new AstText("");
                }
                return(new Tree(t, functions, identifiers, false));
            }
            AstEval e = eval();

            if (token.Symbol == EOF && t == null)
            {
                return(new Tree(e, functions, identifiers, e.Deferred));
            }
            List <AstNode> list = new List <AstNode>();

            if (t != null)
            {
                list.Add(t);
            }
            list.Add(e);
            t = text();
            if (t != null)
            {
                list.Add(t);
            }
            while (token.Symbol != EOF)
            {
                if (e.Deferred)
                {
                    list.Add(eval(true, true));
                }
                else
                {
                    list.Add(eval(true, false));
                }
                t = text();
                if (t != null)
                {
                    list.Add(t);
                }
            }
            return(new Tree(createAstComposite(list), functions, identifiers, e.Deferred));
        }