Search in sources :

Example 36 with LitString

use of lucee.transformer.expression.literal.LitString in project Lucee by lucee.

the class AbstrCFMLExprTransformer method structElement.

/**
 * Transfomiert ein Collection Element das in eckigen Klammern aufgerufen wird.
 * <br />
 * EBNF:<br />
 * <code>"[" impOp "]"</code>
 * @return CFXD Element
 * @throws TemplateException
 */
private ExprString structElement(ExprData data) throws TemplateException {
    comments(data);
    ExprString name = data.factory.toExprString(assignOp(data));
    if (name instanceof LitString)
        ((LitString) name).fromBracket(true);
    comments(data);
    return name;
}
Also used : LitString(lucee.transformer.expression.literal.LitString) ExprString(lucee.transformer.expression.ExprString)

Aggregations

LitString (lucee.transformer.expression.literal.LitString)36 Expression (lucee.transformer.expression.Expression)21 ExprString (lucee.transformer.expression.ExprString)13 GeneratorAdapter (org.objectweb.asm.commons.GeneratorAdapter)11 Attribute (lucee.transformer.bytecode.statement.tag.Attribute)9 EvaluatorException (lucee.transformer.cfml.evaluator.EvaluatorException)8 TransformerException (lucee.transformer.TransformerException)6 Statement (lucee.transformer.bytecode.Statement)6 ArrayList (java.util.ArrayList)5 Iterator (java.util.Iterator)5 Body (lucee.transformer.bytecode.Body)5 Argument (lucee.transformer.bytecode.expression.var.Argument)5 PrintOut (lucee.transformer.bytecode.statement.PrintOut)5 Literal (lucee.transformer.expression.literal.Literal)5 TemplateException (lucee.runtime.exp.TemplateException)4 BytecodeContext (lucee.transformer.bytecode.BytecodeContext)4 TagLibTag (lucee.transformer.library.tag.TagLibTag)4 Label (org.objectweb.asm.Label)4 BodyBase (lucee.transformer.bytecode.BodyBase)3 Page (lucee.transformer.bytecode.Page)3