001 package railo.runtime.debug; 002 003 public class ImplicitAccessImpl implements ImplicitAccess { 004 005 private int count=1; 006 private String scope; 007 private String template; 008 private int line; 009 private String name; 010 011 public ImplicitAccessImpl(String scope, String name, String template, int line) { 012 this.scope=scope; 013 this.name=name; 014 this.template=template; 015 this.line=line; 016 } 017 018 public void inc() { 019 count++; 020 } 021 022 /** 023 * @return the used 024 */ 025 public int getCount() { 026 return count; 027 } 028 029 /** 030 * @return the scope 031 */ 032 public String getScope() { 033 return scope; 034 } 035 036 /** 037 * @return the template 038 */ 039 public String getTemplate() { 040 return template; 041 } 042 043 /** 044 * @return the line 045 */ 046 public int getLine() { 047 return line; 048 } 049 050 /** 051 * @return the name 052 */ 053 public String getName() { 054 return name; 055 } 056 }