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