public class Diagnostic extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Diagnostic.Level
Diagnostic levels.
|
Modifier and Type | Field and Description |
---|---|
Diagnostic.Level |
level
The level of this diagnostic.
|
String |
message
The user friendly message.
|
Region |
region
Corresponded region, or
null if unknown. |
Constructor and Description |
---|
Diagnostic(Diagnostic.Level level,
AstNode node,
String message,
Object... arguments)
Creates and returns a new instance.
|
Diagnostic(Diagnostic.Level level,
Region region,
String message)
Creates and returns a new instance.
|
Diagnostic(Diagnostic.Level level,
Region region,
String message,
Object... arguments)
Creates and returns a new instance.
|
public final Diagnostic.Level level
public final String message
public final Region region
null
if unknown.public Diagnostic(Diagnostic.Level level, Region region, String message)
level
- the level of thisregion
- the corresponded region, or null
if unknownmessage
- the messageIllegalArgumentException
- if some parameters were null
public Diagnostic(Diagnostic.Level level, Region region, String message, Object... arguments)
level
- the level of thisregion
- the corresponded region, or null
if unknownmessage
- the message pattern in form of MessageFormat.format(String, Object...)
arguments
- arguments of the messageIllegalArgumentException
- if some parameters were null
public Diagnostic(Diagnostic.Level level, AstNode node, String message, Object... arguments)
level
- the level of thisnode
- the corresponded AST, or null
if unknownmessage
- the message pattern in form of MessageFormat.format(String, Object...)
arguments
- arguments of the messageIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.