Class CompilerMessage
- java.lang.Object
-
- org.apache.sling.commons.compiler.CompilerMessage
-
@ProviderType public class CompilerMessage extends Object
This class encapsulates a message produced the compiler. A message is either a warning or an error. The messages are retrieved from theCompilationResult
.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description CompilerMessage(String file, int line, int column, String message)
The error message constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
Return the column number of the program text originating this messageString
getFile()
Return the filename associated with this compiler message.int
getLine()
Return the line number of the program text originating this messageString
getMessage()
Return the message
-
-
-
Constructor Detail
-
CompilerMessage
public CompilerMessage(String file, int line, int column, String message)
The error message constructor.- Parameters:
file
- The name of the file containing the offending program textline
- The line number of the offending program textcolumn
- The column number of the offending program textmessage
- The actual text
-
-
Method Detail
-
getFile
public 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 String getMessage()
Return the message- Returns:
- The message
-
-