@Override
public Object getValue(PageContext pc) throws PageException {
if(name instanceof Variable){
return new FunctionValueImpl(toStringArray(pc,(Set)name),refValue==null?objValue:refValue.getValue(pc));
}
if(name instanceof Literal) {
return new FunctionValueImpl(((Literal)name).getString(pc),refValue==null?objValue:refValue.getValue(pc));
}
// TODO no idea if this is ever used
if(name instanceof Set){
return new FunctionValueImpl(railo.runtime.type.util.ListUtil.arrayToList(toStringArray(pc,(Set)name),"."),refValue==null?objValue:refValue.getValue(pc));
}
throw new InterpreterException("invalid syntax in named argument");
//return new FunctionValueImpl(key,value.getValue());
}