public class StringUtils extends Object
Constructor and Description |
---|
StringUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
formatFileString(Directive directive)
Creates a string that formats the template filename with line number
and column of the given Directive.
|
static String |
formatFileString(Info info)
Simply creates a string that formats the template filename with line number
and column.
|
static String |
formatFileString(Node node)
Creates a string that formats the template filename with line number
and column of the given Node.
|
static String |
formatFileString(String template,
int linenum,
int colnum)
Simply creates a string that formats the template filename with line number
and column.
|
public static String formatFileString(Directive directive)
directive
- currrent directivepublic static String formatFileString(Node node)
node
- current nodepublic static String formatFileString(Info info)
info
- template name, line and column infospublic static String formatFileString(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 linenumCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.