public class InlineSubTemplateReader
extends java.lang.Object
Copyright (C) 2012-2015 JIOWA Business Solutions GmbH, Bettinastr. 30 , 60325 Frankfurt am Main, Germany
Homepage: www.jiowa.de
All rights reserved.
Download: www.jiowa.de/download.html
License: www.jiowa.de/license.html
Modifier and Type | Field and Description |
---|---|
protected java.lang.StringBuffer |
buf |
protected TemplateContext |
context |
protected ErrorPosition |
errorposition |
protected int |
pos |
protected InlineSubTemplateStartToken |
startToken |
Constructor and Description |
---|
InlineSubTemplateReader(TemplateContext context,
InlineSubTemplateStartToken startToken,
BufferPosTuple bufferpos,
ErrorPosition errorposition) |
Modifier and Type | Method and Description |
---|---|
protected com.jiowa.util.tuple.Tuple<java.lang.String,TextOffset> |
adjustContent(java.lang.String content,
int columnOffset)
Adds a column offset to the given text content.
|
com.jiowa.util.tuple.Tuple<InlineSubTemplateContentToken,java.lang.Integer> |
read() |
protected InlineSubTemplateContentToken |
readInlineSubTemplateContent(java.lang.String content,
int columnOffset,
java.util.List<java.lang.String> currentBrackets)
Reads content of an inline subtemplate and tokenizes it accordingly.
|
protected com.jiowa.util.tuple.Tuple<InlineSubTemplateContentToken,java.lang.Integer> |
readInlineSubTemplateContent(java.lang.String start,
java.lang.String end,
java.lang.StringBuffer buf,
int pos)
Reads an inline sub template from a given position if there has been found an inline subtemplate start token "{".
|
protected TemplateContext context
protected InlineSubTemplateStartToken startToken
protected java.lang.StringBuffer buf
protected int pos
protected ErrorPosition errorposition
public InlineSubTemplateReader(TemplateContext context, InlineSubTemplateStartToken startToken, BufferPosTuple bufferpos, ErrorPosition errorposition)
public com.jiowa.util.tuple.Tuple<InlineSubTemplateContentToken,java.lang.Integer> read()
protected com.jiowa.util.tuple.Tuple<InlineSubTemplateContentToken,java.lang.Integer> readInlineSubTemplateContent(java.lang.String start, java.lang.String end, java.lang.StringBuffer buf, int pos)
protected InlineSubTemplateContentToken readInlineSubTemplateContent(java.lang.String content, int columnOffset, java.util.List<java.lang.String> currentBrackets)
InlineSubTemplateContentToken
.protected com.jiowa.util.tuple.Tuple<java.lang.String,TextOffset> adjustContent(java.lang.String content, int columnOffset)