public IText createText(final CharSequence text) { return new Text(text); }
public void handleText( final char[] buffer, final int offset, final int len, final int line, final int col) throws RawParseException { this.templateHandler.handleText( new Text(new String(buffer, offset, len), this.templateName, this.lineOffset + line, (line == 1? this.colOffset : 0) + col)); }
@Override public void handleText( final char[] buffer, final int offset, final int len, final int line, final int col) throws ParseException { this.templateHandler.handleText( new Text(new String(buffer, offset, len), this.templateName, this.lineOffset + line, (line == 1? this.colOffset : 0) + col)); }
@Override public void handleText( final char[] buffer, final int offset, final int len, final int line, final int col) throws TextParseException { this.templateHandler.handleText( new Text(new String(buffer, offset, len), this.templateName, this.lineOffset + line, (line == 1? this.colOffset : 0) + col)); }
static Text asEngineText(final IText text) { if (text instanceof Text) { return (Text) text; } return new Text(text.getText(), text.getTemplateName(), text.getLine(), text.getCol()); }
final Text textForFirst = new Text(firstTextBodyEvent.subSequence(0, lastBodyEventCutPoint)); final Text textForMiddle = new Text(firstTextBodyEvent.subSequence(firstBodyEventCutPoint, lastBodyEventCutPoint)); final Text textForLast = new Text(firstTextBodyEvent.subSequence(firstBodyEventCutPoint, firstTextBodyEvent.length())); final Text headTextForMiddleAndMax = new Text(firstTextBodyEvent.subSequence(firstBodyEventCutPoint, firstTextBodyEvent.length())); modelMiddle.replace(1, headTextForMiddleAndMax); modelLast.replace(1, headTextForMiddleAndMax); final Text tailTextForFirstAndMiddle = new Text(lastTextBodyEvent.subSequence(0, lastBodyEventCutPoint)); modelFirst.replace(gatheredModelSize - 2, tailTextForFirstAndMiddle); modelMiddle.replace(gatheredModelSize - 2, tailTextForFirstAndMiddle);
model.add(new Text(structureHandler.insertTextValue)); modelHandler = structureHandler.insertTextProcessable? this : this.next;
text = new Text(structureHandler.setTextValue);
model.add(new Text(structureHandler.insertTextValue)); modelHandler = structureHandler.insertTextProcessable? this : this.next;