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            @Override
040            public String getName() {
041                    return name;
042            }
043    
044            @Override
045            public IFDValue getValue() {
046                    return value;
047            }
048    
049            @Override
050            public IFDStackFrame getStackFrame() {
051                    return frame;
052            }
053    
054    }