(STWriter out, InstanceScope scope, Object o, String[] options)
| 719 | } |
| 720 | |
| 721 | protected int writePOJO(STWriter out, InstanceScope scope, Object o, String[] options) throws IOException { |
| 722 | String formatString = null; |
| 723 | if ( options!=null ) formatString = options[Option.FORMAT.ordinal()]; |
| 724 | // ask the native group defining the surrounding template for the renderer |
| 725 | AttributeRenderer r = scope.st.impl.nativeGroup.getAttributeRenderer(o.getClass()); |
| 726 | String v; |
| 727 | if ( r!=null ) v = r.toString(o, formatString, locale); |
| 728 | else v = o.toString(); |
| 729 | int n; |
| 730 | if ( options!=null && options[Option.WRAP.ordinal()] !=null ) { |
| 731 | n = out.write(v, options[Option.WRAP.ordinal()]); |
| 732 | } |
| 733 | else { |
| 734 | n = out.write(v); |
| 735 | } |
| 736 | return n; |
| 737 | } |
| 738 | |
| 739 | protected int getExprStartChar(InstanceScope scope) { |
| 740 | Interval templateLocation = scope.st.impl.sourceMap[scope.ip]; |
no test coverage detected