public class VelocityDocumentFormatter extends AbstractDocumentFormatter
AbstractDocumentFormatter.DirectiveToParse| Modifier and Type | Field and Description |
|---|---|
protected static String |
ITEM_TOKEN |
protected static String |
ITEM_TOKEN_OPEN_BRACKET |
NO_ESCAPE| Constructor and Description |
|---|
VelocityDocumentFormatter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsInterpolation(String content) |
int |
extractListDirectiveInfo(String content,
DirectivesStack directives,
boolean dontRemoveListDirectiveInfo) |
String |
extractModelTokenPrefix(String fieldName) |
String |
formatAsCallTextStyling(long variableIndex,
String fieldName,
String documentKind,
String syntaxKind,
boolean syntaxWithDirective,
String elementId,
String entryName) |
String |
formatAsFieldItemList(String content,
String fieldName,
boolean forceAsField) |
String |
formatAsSimpleField(boolean noescape,
boolean encloseInDirective,
String... fields) |
String |
formatAsTextStylingField(long variableIndex,
String property) |
String |
getDefineDirective(String name,
String value) |
String |
getElseDirective() |
String |
getEndIfDirective(String fieldName) |
String |
getEndLoopDirective(String itemNameList) |
String |
getEndNoParse() |
String |
getFunctionDirective(boolean noescape,
boolean encloseInDirective,
String key,
String methodName,
String... parameters) |
int |
getIndexOfScript(String fieldName) |
protected String |
getItemToken() |
protected String |
getItemTokenOpenBracket() |
String |
getLoopCountDirective(String fieldName) |
String |
getSetDirective(String name,
String value,
boolean valueIsField) |
String |
getStartIfDirective(String fieldName,
boolean exists) |
String |
getStartLoopDirective(String itemNameList,
String listName) |
String |
getStartNoParse() |
boolean |
hasDirective(String characters) |
protected boolean |
isModelField(String content,
String fieldName) |
int |
parseEndDirective(String content,
DirectivesStack directives,
boolean dontRemoveListDirectiveInfo,
int startOfEndListDirectiveIndex) |
int |
parseStartIf(String content,
DirectivesStack directives,
int startOfStartIfDirectiveIndex) |
int |
parseStartLoop(String content,
DirectivesStack directives,
int startOfStartListDirectiveIndex) |
extractItemNameList, extractListDirectiveInfo, formatAsSimpleField, getDirectiveToParse, getEndDocumentDirective, getFunctionDirective, getFunctionDirective, getMinIndex, getSetDirective, getStartDocumentDirective, getStartIfDirective, getStartLoopDirective, getVariableName, setEndDocumentDirective, setStartDocumentDirectiveprotected static final String ITEM_TOKEN
protected static final String ITEM_TOKEN_OPEN_BRACKET
public String formatAsFieldItemList(String content, String fieldName, boolean forceAsField)
public String getElseDirective()
protected boolean isModelField(String content, String fieldName)
isModelField in class AbstractDocumentFormatterprotected String getItemToken()
getItemToken in class AbstractDocumentFormatterprotected String getItemTokenOpenBracket()
public String getFunctionDirective(boolean noescape, boolean encloseInDirective, String key, String methodName, String... parameters)
public String formatAsSimpleField(boolean noescape, boolean encloseInDirective, String... fields)
public boolean containsInterpolation(String content)
public int extractListDirectiveInfo(String content, DirectivesStack directives, boolean dontRemoveListDirectiveInfo)
public int parseEndDirective(String content, DirectivesStack directives, boolean dontRemoveListDirectiveInfo, int startOfEndListDirectiveIndex)
public int parseStartIf(String content, DirectivesStack directives, int startOfStartIfDirectiveIndex)
public int parseStartLoop(String content, DirectivesStack directives, int startOfStartListDirectiveIndex)
public int getIndexOfScript(String fieldName)
public String formatAsCallTextStyling(long variableIndex, String fieldName, String documentKind, String syntaxKind, boolean syntaxWithDirective, String elementId, String entryName)
public String formatAsTextStylingField(long variableIndex, String property)
public boolean hasDirective(String characters)
public String getStartNoParse()
public String getEndNoParse()
Copyright © 2015. All Rights Reserved.