|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtend.expression.LoggingNullEvaluationHandler
public class LoggingNullEvaluationHandler
Logs null evaluation events to the log category of this class.
The log level of the resulting message is configurable. By default messages will be logged with ERROR level.
Nested Class Summary | |
---|---|
static class |
LoggingNullEvaluationHandler.Level
|
Constructor Summary | |
---|---|
LoggingNullEvaluationHandler()
|
Method Summary | |
---|---|
protected java.lang.CharSequence |
buildMessage(SyntaxElement element,
ExecutionContext ctx)
Build the error message. |
java.lang.Object |
handleNullEvaluation(SyntaxElement element,
ExecutionContext ctx)
|
void |
setLevel(LoggingNullEvaluationHandler.Level level)
Set log level for messages. |
void |
setLogCategory(java.lang.String category)
Changes the log category. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggingNullEvaluationHandler()
Method Detail |
---|
public java.lang.Object handleNullEvaluation(SyntaxElement element, ExecutionContext ctx)
handleNullEvaluation
in interface NullEvaluationHandler
public void setLogCategory(java.lang.String category)
category
- Logger categorypublic void setLevel(LoggingNullEvaluationHandler.Level level)
level
- The levelprotected java.lang.CharSequence buildMessage(SyntaxElement element, ExecutionContext ctx)
element
- Current SyntaxElement
that raised the Null Evaluationctx
- Current context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |