|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.compiler.CompilerMessage
public class CompilerMessage
This class encapsulates a message produced by a programming language processor (whether interpreted or compiled).
| Nested Class Summary | |
|---|---|
static class |
CompilerMessage.Kind
As we are still 1.5 required we use a wrapper to Diagnostic.Kind and some compilers don't know jdk constants. |
| Constructor Summary | |
|---|---|
CompilerMessage(String message)
Deprecated. Use CompilerMessage(String,Kind) instead |
|
CompilerMessage(String message,
boolean error)
Deprecated. Use CompilerMessage(String,Kind) instead |
|
CompilerMessage(String file,
boolean error,
int startline,
int startcolumn,
int endline,
int endcolumn,
String message)
Deprecated. Use CompilerMessage(String,Kind,int,int,int,int,String) instead |
|
CompilerMessage(String message,
CompilerMessage.Kind kind)
Constructs a compiler message. |
|
CompilerMessage(String file,
CompilerMessage.Kind kind,
int startline,
int startcolumn,
int endline,
int endcolumn,
String message)
Constructs a compiler message. |
|
| Method Summary | |
|---|---|
int |
getEndColumn()
Returns the ending column number of the program text originating this compiler message. |
int |
getEndLine()
Return the ending line number of the program text originating this compiler message. |
String |
getFile()
Returns the filename associated with this compiler message. |
CompilerMessage.Kind |
getKind()
Returns the kind of the compiler message. |
String |
getMessage()
Returns the message produced by the language processor. |
int |
getStartColumn()
Returns the starting column number of the program text originating this compiler message. |
int |
getStartLine()
Returns the starting line number of the program text originating this compiler message. |
boolean |
isError()
Asserts whether this is an error message or not. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public CompilerMessage(String file,
boolean error,
int startline,
int startcolumn,
int endline,
int endcolumn,
String message)
CompilerMessage(String,Kind,int,int,int,int,String) instead
file - The name of the file containing the offending program texterror - true if this is a error message, or false if it
is a warning messagestartline - The start line number of the offending program textstartcolumn - The start column number of the offending program textendline - The end line number of the offending program textendcolumn - The end column number of the offending program textmessage - The actual message text produced by the language processor
public CompilerMessage(String file,
CompilerMessage.Kind kind,
int startline,
int startcolumn,
int endline,
int endcolumn,
String message)
file - The name of the file containing the offending program textkind - The kind of messagestartline - The start line number of the offending program textstartcolumn - The start column number of the offending program textendline - The end line number of the offending program textendcolumn - The end column number of the offending program textmessage - The actual message text produced by the language processor@Deprecated public CompilerMessage(String message)
CompilerMessage(String,Kind) instead
message - The actual message text produced by the language processor
@Deprecated
public CompilerMessage(String message,
boolean error)
CompilerMessage(String,Kind) instead
message - The actual message text produced by the language processorerror - true if this is a error message, or false if it
is a warning message
public CompilerMessage(String message,
CompilerMessage.Kind kind)
message - The actual message text produced by the language processorkind - The kind of message| Method Detail |
|---|
public String getFile()
public boolean isError()
public int getStartLine()
public int getStartColumn()
public int getEndLine()
public int getEndColumn()
public String getMessage()
public CompilerMessage.Kind getKind()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||