001 package railo.transformer.bytecode.statement.tag; 002 003 import railo.transformer.bytecode.expression.Expression; 004 005 public final class Attribute { 006 007 final String name; 008 final Expression value; 009 private final String type; 010 private final boolean dynamicType; 011 private String setterName; 012 013 public Attribute(boolean dynamicType,String name, Expression value, String type) { 014 this.dynamicType = dynamicType; 015 this.name = name; 016 this.value = value; 017 this.type = type; 018 } 019 020 /** 021 * @return the name 022 */ 023 public String getName() { 024 return name; 025 } 026 027 /** 028 * @return the value 029 */ 030 public Expression getValue() { 031 return value; 032 } 033 034 /** 035 * @return the type 036 */ 037 public String getType() { 038 return type; 039 } 040 041 /** 042 * @return the dynamicType 043 */ 044 public boolean isDynamicType() { 045 return dynamicType; 046 } 047 048 public String toString(){ 049 return "name:"+this.name 050 +";value:"+this.value 051 +";type:"+this.type 052 +";dynamicType:"+this.dynamicType 053 +";setterName:"+this.setterName; 054 } 055 }