1 14 15 package com.sun.facelets.compiler; 16 17 import java.io.IOException ; 18 import java.util.List ; 19 20 import javax.faces.context.FacesContext; 21 import javax.faces.context.ResponseWriter; 22 23 import javax.el.ELContext; 24 import javax.el.ExpressionFactory; 25 26 final class LiteralTextInstruction implements Instruction { 27 private final String text; 28 29 public LiteralTextInstruction(String text) { 30 this.text = text; 31 } 32 33 public void write(FacesContext context) throws IOException { 34 context.getResponseWriter().writeText(this.text, null); 35 } 36 37 public Instruction apply(ExpressionFactory factory, ELContext ctx) { 38 return this; 39 } 40 41 public boolean isLiteral() { 42 return true; 43 } 44 } 45 | Popular Tags |