net.sourceforge.pmd.lang.vm.util
Class LogUtil

java.lang.Object
  extended by net.sourceforge.pmd.lang.vm.util.LogUtil

public class LogUtil
extends Object

Convenient wrapper for LogChute functions. This implements the RuntimeLogger methods (and then some). It is hoped that use of this will fully replace use of the RuntimeLogger.

Since:
1.5
Version:
$Id: Log.java 724825 2008-12-09 18:56:06Z nbubna $
Author:
Nathan Bubna

Constructor Summary
LogUtil()
           
 
Method Summary
static String formatFileString(AbstractVmNode node)
          Creates a string that formats the template filename with line number and column of the given Node.
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(String template, int linenum, int colnum)
          Simply creates a string that formats the template filename with line number and column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogUtil

public LogUtil()
Method Detail

formatFileString

public static final String formatFileString(Directive directive)
Creates a string that formats the template filename with line number and column of the given Directive. We use this routine to provide a cosistent format for displaying file errors.


formatFileString

public static final String formatFileString(AbstractVmNode node)
Creates a string that formats the template filename with line number and column of the given Node. We use this routine to provide a cosistent format for displaying file errors.


formatFileString

public static final String formatFileString(String template,
                                            int linenum,
                                            int colnum)
Simply creates a string that formats the template filename with line number and column. We use this routine to provide a cosistent format for displaying file errors.

Parameters:
template - File name of template, can be null
linenum - Line number within the file
colnum - Column number withing the file at linenum


Copyright © 2002–2015 InfoEther. All rights reserved.