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