public void writeDoctype(String name, String publicId, String systemId) { if (this.finished) { return; } DoctypeUnit unit = new DoctypeUnit(this.alias, this.nextTagId(), name, publicId, systemId, faceletsProcessingInstructions.isHtml5Doctype()); this.startUnit(unit); }
public void writeText(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId()); this.startUnit(unit); } unit.write(value); }
public void writeInstruction(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId()); this.startUnit(unit); } unit.writeInstruction(value); }
public void writeInstruction(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText()); this.startUnit(unit); } unit.writeInstruction(value); }
public void writeText(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText()); this.startUnit(unit); } unit.write(value); }
public void writeComment(String text) { if (this.compiler.isTrimmingComments()) return; if (this.finished) { return; } // don't carelessly add empty tags if (text.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId()); this.startUnit(unit); } unit.writeComment(text); }
public void writeText(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText(), faceletsProcessingInstructions.isCompressSpaces()); this.startUnit(unit); } unit.write(value); }
public void writeInstruction(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText(), faceletsProcessingInstructions.isCompressSpaces()); this.startUnit(unit); } unit.writeInstruction(value); }
public void writeComment(String text) { if (this.compiler.isTrimmingComments()) return; if (this.finished) { return; } // don't carelessly add empty tags if (text.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText()); this.startUnit(unit); } unit.writeComment(text); }
NamespaceUnit nsUnit = this.namespaceManager.toNamespaceUnit(this.tagLibrary); this.units.push(nsUnit); this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and [Trimmed] TagUnit pushed"); CompositeComponentUnit compositeRootCompilationUnit = new CompositeComponentUnit(); this.startUnit(compositeRootCompilationUnit); interfaceCompilationUnit = new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId()); this.startUnit(interfaceCompilationUnit); interfaceCompilationUnit = null; this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and TagUnit pushed"); this.startUnit(new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); unit = new TextUnit(this.alias, this.nextTagId()); this.startUnit(unit);
NamespaceUnit nsUnit = this.namespaceManager.toNamespaceUnit(this.tagLibrary); this.units.push(nsUnit); this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and [Trimmed] TagUnit pushed"); CompositeComponentUnit compositeRootCompilationUnit = new CompositeComponentUnit(); this.startUnit(compositeRootCompilationUnit); interfaceCompilationUnit = new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId()); this.startUnit(interfaceCompilationUnit); interfaceCompilationUnit = null; this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and TagUnit pushed"); this.startUnit(new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText()); this.startUnit(unit);
public void writeComment(String text) { if (this.compiler.isTrimmingComments()) { return; } if (this.finished) { return; } // don't carelessly add empty tags if (text.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText(), faceletsProcessingInstructions.isCompressSpaces()); this.startUnit(unit); } unit.writeComment(text); }
NamespaceUnit nsUnit = this.namespaceManager.toNamespaceUnit(this.tagLibrary); this.units.push(nsUnit); this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and [Trimmed] TagUnit pushed"); CompositeComponentUnit compositeRootCompilationUnit = new CompositeComponentUnit(); this.startUnit(compositeRootCompilationUnit); interfaceCompilationUnit = new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId()); this.startUnit(interfaceCompilationUnit); interfaceCompilationUnit = null; this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and TagUnit pushed"); this.startUnit(new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText(), faceletsProcessingInstructions.isCompressSpaces());