class Text extends AbstractTextualTemplateEvent implements IText {



    Text(final CharSequence text) {
        super(text);
    }


    Text(final CharSequence text, final String templateName, final int line, final int col) {
        super(text, templateName, line, col);
    }




    public String getText() {
        return getContentText();
    }


    public int length() {
        return getContentLength();
    }


    public char charAt(final int index) {
        return charAtContent(index);
    }


    public CharSequence subSequence(final int start, final int end) {
        return contentSubSequence(start, end);
    }




    public void accept(final IModelVisitor visitor) {
        visitor.visit(this);
    }


    public void write(final Writer writer) throws IOException {
        writeContent(writer);
    }




    // Meant to be called only from within the engine
    static Text asEngineText(final IText text) {<FILL_FUNCTION_BODY>}




    @Override
    public void beHandled(final ITemplateHandler handler) {
        handler.handleText(this);
    }




    @Override
    public String toString() {
        return getText();
    }


}

        if (text instanceof Text) {
            return (Text) text;
        }
        return new Text(text.getText(), text.getTemplateName(), text.getLine(), text.getCol());
    
<methods>public java.lang.String toString() ,public final void writeContent(java.io.Writer) throws java.io.IOException<variables>private volatile java.lang.Boolean computedContentIsInlineable,private volatile java.lang.Boolean computedContentIsWhitespace,private volatile int computedContentLength,private volatile java.lang.String computedContentStr,private final non-sealed java.lang.CharSequence contentCharSeq,private final non-sealed int contentLength,private final non-sealed java.lang.String contentStr