001 package railo.intergral.fusiondebug.server.type; 002 003 import railo.runtime.type.Collection; 004 import railo.runtime.type.KeyImpl; 005 006 import com.intergral.fusiondebug.server.IFDStackFrame; 007 import com.intergral.fusiondebug.server.IFDValue; 008 import com.intergral.fusiondebug.server.IFDVariable; 009 010 public class FDVariable implements IFDVariable { 011 012 private Collection.Key name; 013 private IFDValue value; 014 private IFDStackFrame frame; 015 016 public FDVariable(IFDStackFrame frame,String name,IFDValue value){ 017 this(frame,KeyImpl.getInstance(name), value); 018 } 019 020 /** 021 * Constructor of the class 022 * @param name 023 * @param value 024 * @param frame 025 */ 026 public FDVariable(IFDStackFrame frame,Collection.Key name,IFDValue value){ 027 this.name=name; 028 this.value=value; 029 this.frame=frame; 030 } 031 032 /** 033 * @see com.intergral.fusiondebug.server.IFDVariable#getName() 034 */ 035 public String getName() { 036 return name.getString(); 037 } 038 039 /** 040 * @see com.intergral.fusiondebug.server.IFDVariable#getStackFrame() 041 */ 042 public IFDStackFrame getStackFrame() { 043 return frame; 044 } 045 046 /** 047 * @see com.intergral.fusiondebug.server.IFDVariable#getValue() 048 */ 049 public IFDValue getValue() { 050 return value; 051 } 052 }