1 16 package org.directwebremoting.dwrp; 17 18 import org.directwebremoting.extend.OutboundContext; 19 import org.directwebremoting.extend.OutboundVariable; 20 21 25 public class SimpleOutboundVariable extends AbstractOutboundVariable implements OutboundVariable 26 { 27 33 public SimpleOutboundVariable(String code, OutboundContext outboundContext, boolean forceInline) 34 { 35 super(outboundContext); 36 37 this.code = code; 38 if (forceInline) 39 { 40 forceInline(true); 41 } 42 } 43 44 47 protected NotInlineDefinition getNotInlineDefinition() 48 { 49 return new NotInlineDefinition("var " + getVariableName() + '=' + code + ';', ""); 50 } 51 52 55 protected String getInlineDefinition() 56 { 57 return code; 58 } 59 60 63 public String toString() 64 { 65 return "Simple:" + code; 66 } 67 68 71 private String code; 72 } 73 | Popular Tags |