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