001    package railo.transformer.bytecode.expression.type;
002    
003    import org.objectweb.asm.Type;
004    
005    import railo.transformer.bytecode.BytecodeContext;
006    import railo.transformer.bytecode.BytecodeException;
007    import railo.transformer.bytecode.expression.ExpressionBase;
008    import railo.transformer.bytecode.expression.var.Variable;
009    import railo.transformer.bytecode.literal.LitString;
010    import railo.transformer.bytecode.util.Types;
011    
012    public class CollectionKey extends ExpressionBase {
013    
014            private String value;
015    
016            public CollectionKey(String value,int line) {
017                    super(line);
018                    this.value=value;
019            }
020    
021            @Override
022            public Type _writeOut(BytecodeContext bc, int mode) throws BytecodeException {
023                    Variable.registerKey(bc, LitString.toExprString(value));
024                    return Types.COLLECTION_KEY;
025            }
026    
027    }