public class StringUtils
extends java.lang.Object
Constructor and Description |
---|
StringUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatFileString(Directive directive)
Creates a string that formats the template filename with line number
and column of the given Directive.
|
static java.lang.String |
formatFileString(Info info)
Simply creates a string that formats the template filename with line number
and column.
|
static java.lang.String |
formatFileString(Node node)
Creates a string that formats the template filename with line number
and column of the given Node.
|
static java.lang.String |
formatFileString(java.lang.String template,
int linenum,
int colnum)
Simply creates a string that formats the template filename with line number
and column.
|
public static java.lang.String formatFileString(Directive directive)
directive
- currrent directivepublic static java.lang.String formatFileString(Node node)
node
- current nodepublic static java.lang.String formatFileString(Info info)
info
- template name, line and column infospublic static java.lang.String formatFileString(java.lang.String template, int linenum, int colnum)
template
- File name of template, can be nulllinenum
- Line number within the filecolnum
- Column number withing the file at linenum