org.apache.sling.commons.compiler
Class CompilerMessage

java.lang.Object
  extended by org.apache.sling.commons.compiler.CompilerMessage

public class CompilerMessage
extends java.lang.Object

This class encapsulates a message produced the compiler. A message is either a warning or an error. The messages are retrieved from the CompilationResult.

Since:
2.0

Constructor Summary
CompilerMessage(java.lang.String file, int line, int column, java.lang.String message)
          The error message constructor.
 
Method Summary
 int getColumn()
          Return the column number of the program text originating this message
 java.lang.String getFile()
          Return the filename associated with this compiler message.
 int getLine()
          Return the line number of the program text originating this message
 java.lang.String getMessage()
          Return the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilerMessage

public CompilerMessage(java.lang.String file,
                       int line,
                       int column,
                       java.lang.String message)
The error message constructor.

Parameters:
file - The name of the file containing the offending program text
line - The line number of the offending program text
column - The column number of the offending program text
message - The actual text
Method Detail

getFile

public java.lang.String getFile()
Return the filename associated with this compiler message.

Returns:
The filename associated with this compiler message

getLine

public int getLine()
Return the line number of the program text originating this message

Returns:
The line number of the program text originating this message

getColumn

public int getColumn()
Return the column number of the program text originating this message

Returns:
The column number of the program text originating this message

getMessage

public java.lang.String getMessage()
Return the message

Returns:
The message


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.