FileDocCategorySizeDatePackage
DefaultFileLineFormatter.javaAPI DocGlassfish v2 API742Wed Aug 30 15:34:06 BST 2006persistence.antlr

DefaultFileLineFormatter

public class DefaultFileLineFormatter extends FileLineFormatter

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetFormatString(java.lang.String fileName, int line, int column)

        StringBuffer buf = new StringBuffer();

        if (fileName != null)
            buf.append(fileName + ":");

        if (line != -1) {
            if (fileName == null)
                buf.append("line ");

            buf.append(line);

            if (column != -1)
                buf.append(":" + column);

            buf.append(":");
        }

        buf.append(" ");

        return buf.toString();