Top Fields Constructors Methods
com.sun.faces.facelets.compiler

pack-priv final Class TextUnit

extends CompilationUnit
Class Inheritance
Imports
java.util.ArrayList, .List, .Stack, com.sun.faces.facelets.el.ELText, jakarta.el.ELException, jakarta.faces.view.facelets.CompositeFaceletHandler, .FaceletHandler, .Tag, .TagAttribute, .TagException

Author
Jacob Hookom
Version
$Id$

Field Summary

Modifier and TypeField and Description
private final String
private final StringBuffer
private final List<E>
private final String
private final List<Instruction>
private boolean
private final Stack<Tag>
private final StringBuffer
Inherited from com.sun.faces.facelets.compiler.CompilationUnit:
LEAF

Constructor Summary

AccessConstructor and Description
public
TextUnit(String alias, String id)

Method Summary

Modifier and TypeMethod and Description
public void
private void
public FaceletHandler
public void
private void
protected void
flushBufferToConfig(boolean child)

private void
flushTextBuffer(boolean child)

public boolean
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private static String
public void
write(String text)

public void
public void
Inherited from com.sun.faces.facelets.compiler.CompilationUnit:
finishNotifygetNextFaceletHandlerremoveChildrenstartNotify

Field Detail

aliasback to summary
private final String alias
bufferback to summary
private final StringBuffer buffer
childrenback to summary
private final List<E> children

Hides com.sun.faces.facelets.compiler.CompilationUnit.children.

idback to summary
private final String id
instructionBufferback to summary
private final List<Instruction> instructionBuffer
startTagOpenback to summary
private boolean startTagOpen
tagsback to summary
private final Stack<Tag> tags
textBufferback to summary
private final StringBuffer textBuffer

Constructor Detail

TextUnitback to summary
public TextUnit(String alias, String id)

Method Detail

addChildback to summary
public void addChild(CompilationUnit unit)

Overrides com.sun.faces.facelets.compiler.CompilationUnit.addChild.

Annotations
@Override
addInstructionback to summary
private void addInstruction(Instruction instruction)
createFaceletHandlerback to summary
public FaceletHandler createFaceletHandler()

Overrides com.sun.faces.facelets.compiler.CompilationUnit.createFaceletHandler.

Annotations
@Override
endTagback to summary
public void endTag()
finishStartTagback to summary
private void finishStartTag()
flushBufferToConfigback to summary
protected void flushBufferToConfig(boolean child)
flushTextBufferback to summary
private void flushTextBuffer(boolean child)
isClosedback to summary
public boolean isClosed()
startTagback to summary
public void startTag(Tag tag)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
trimRightback to summary
private static String trimRight(String s)
writeback to summary
public void write(String text)
writeCommentback to summary
public void writeComment(String text)
writeInstructionback to summary
public void writeInstruction(String text)