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.runtime.debug; 020 021public class ImplicitAccessImpl implements ImplicitAccess { 022 023 private int count=1; 024 private String scope; 025 private String template; 026 private int line; 027 private String name; 028 029 public ImplicitAccessImpl(String scope, String name, String template, int line) { 030 this.scope=scope; 031 this.name=name; 032 this.template=template; 033 this.line=line; 034 } 035 036 public void inc() { 037 count++; 038 } 039 040 /** 041 * @return the used 042 */ 043 public int getCount() { 044 return count; 045 } 046 047 /** 048 * @return the scope 049 */ 050 public String getScope() { 051 return scope; 052 } 053 054 /** 055 * @return the template 056 */ 057 public String getTemplate() { 058 return template; 059 } 060 061 /** 062 * @return the line 063 */ 064 public int getLine() { 065 return line; 066 } 067 068 /** 069 * @return the name 070 */ 071 public String getName() { 072 return name; 073 } 074}