/** * 1-based column number of the last character of the failing template section, or {@code null} if the information * is not available. Note that unlike with Java string API-s, this column number is inclusive. * * @since 2.3.21 */ public Integer getEndColumnNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return endColumnNumber; } }
/** * 1-based line number of the failing section, or {@code null} if the information is not available. * * @since 2.3.21 */ public Integer getLineNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return lineNumber; } }
/** * 1-based column number of the failing section, or {@code null} if the information is not available. * * @since 2.3.21 */ public Integer getColumnNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return columnNumber; } }
/** * Returns the source name ({@link Template#getSourceName()}) of the template where the error has occurred, or * {@code null} if the information isn't available. This is what should be used for showing the error position. * * @since 2.3.22 */ public String getTemplateSourceName() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return templateSourceName; } }
/** * 1-based line number of the last line that contains the failing section, or {@code null} if the information is not * available. * * @since 2.3.21 */ public Integer getEndLineNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return endLineNumber; } }
/** * Returns the name ({@link Template#getName()}) of the template where the error has occurred, or {@code null} if * the information isn't available. This shouldn't be used for showing the error position; use * {@link #getTemplateSourceName()} instead. * * @deprecated Use {@link #getTemplateSourceName()} instead, unless you are really sure that this is what you want. * This method isn't really deprecated, it's just marked so to warn users about this. * * @since 2.3.21 */ @Deprecated public String getTemplateName() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return templateName; } }
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException { // These are calculated from transient fields, so this is the last chance to calculate them: getFTLInstructionStack(); getFTLInstructionStackTopFew(); getDescription(); calculatePosition(); getBlamedExpressionString(); out.defaultWriteObject(); }
/** * 1-based line number of the failing section, or {@code null} if the information is not available. * * @since 2.3.21 */ public Integer getLineNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return lineNumber; } }
/** * 1-based line number of the failing section, or {@code null} if the information is not available. * * @since 2.3.21 */ public Integer getLineNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return lineNumber; } }
/** * 1-based column number of the failing section, or {@code null} if the information is not available. * * @since 2.3.21 */ public Integer getColumnNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return columnNumber; } }
/** * 1-based column number of the failing section, or {@code null} if the information is not available. * * @since 2.3.21 */ public Integer getColumnNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return columnNumber; } }
/** * Returns the source name ({@link Template#getSourceName()}) of the template where the error has occurred, or * {@code null} if the information isn't available. This is what should be used for showing the error position. * * @since 2.3.22 */ public String getTemplateSourceName() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return templateSourceName; } }
/** * 1-based column number of the last character of the failing template section, or {@code null} if the information * is not available. Note that unlike with Java string API-s, this column number is inclusive. * * @since 2.3.21 */ public Integer getEndColumnNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return endColumnNumber; } }
/** * 1-based line number of the last line that contains the failing section, or {@code null} if the information is not * available. * * @since 2.3.21 */ public Integer getEndLineNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return endLineNumber; } }
/** * 1-based line number of the last line that contains the failing section, or {@code null} if the information is not * available. * * @since 2.3.21 */ public Integer getEndLineNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return endLineNumber; } }
/** * Returns the source name ({@link Template#getSourceName()}) of the template where the error has occurred, or * {@code null} if the information isn't available. This is what should be used for showing the error position. * * @since 2.3.22 */ public String getTemplateSourceName() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return templateSourceName; } }
/** * 1-based column number of the last character of the failing template section, or {@code null} if the information * is not available. Note that unlike with Java string API-s, this column number is inclusive. * * @since 2.3.21 */ public Integer getEndColumnNumber() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return endColumnNumber; } }
/** * Returns the name ({@link Template#getName()}) of the template where the error has occurred, or {@code null} if * the information isn't available. This shouldn't be used for showing the error position; use * {@link #getTemplateSourceName()} instead. * * @deprecated Use {@link #getTemplateSourceName()} instead, unless you are really sure that this is what you want. * This method isn't really deprecated, it's just marked so to warn users about this. * * @since 2.3.21 */ @Deprecated public String getTemplateName() { synchronized (lock) { if (!positionsCalculated) { calculatePosition(); } return templateName; } }
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException { // These are calculated from transient fields, so this is the last chance to calculate them: getFTLInstructionStack(); getFTLInstructionStackTopFew(); getDescription(); calculatePosition(); getBlamedExpressionString(); out.defaultWriteObject(); }
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException { // These are calculated from transient fields, so this is the last chance to calculate them: getFTLInstructionStack(); getFTLInstructionStackTopFew(); getDescription(); calculatePosition(); getBlamedExpressionString(); out.defaultWriteObject(); }