001/** 002 * 003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 017 * 018 **/ 019package lucee.intergral.fusiondebug.server.type.simple; 020 021import java.util.List; 022 023import com.intergral.fusiondebug.server.IFDStackFrame; 024import com.intergral.fusiondebug.server.IFDValue; 025import com.intergral.fusiondebug.server.IFDVariable; 026 027 028public class FDSimpleVariable implements IFDVariable { 029 030 private String name; 031 private IFDValue value; 032 private IFDStackFrame frame; 033 034 /** 035 * Constructor of the class 036 * @param frame 037 * @param name 038 * @param value 039 * @param children 040 */ 041 public FDSimpleVariable(IFDStackFrame frame, String name, IFDValue value) { 042 this.frame = frame; 043 this.name = name; 044 this.value = value; 045 } 046 047 /** 048 * Constructor of the class 049 * @param name 050 * @param value 051 * @param children 052 */ 053 public FDSimpleVariable(IFDStackFrame frame,String name, String value,List children) { 054 this(frame,name,new FDSimpleValue(children,value)); 055 } 056 057 @Override 058 public String getName() { 059 return name; 060 } 061 062 @Override 063 public IFDValue getValue() { 064 return value; 065 } 066 067 @Override 068 public IFDStackFrame getStackFrame() { 069 return frame; 070 } 071 072}