gov.llnl.babel.msg

Class UserMsg

Implemented Interfaces:
Comparable
Known Direct Subclasses:
UserMsg0, UserMsg2

public class UserMsg
extends java.lang.Object
implements Comparable

Encapsulation of a single Error, Warning, or Remark based on a single Token to provide back to the user.

Field Summary

static int
ERROR
static int
INTERNAL_ERROR
static int
REMARK
static int
WARNING
protected ASTNode
d_ast_node
protected int
d_col
protected String
d_filename
protected int
d_line
protected String
d_msg
protected int
d_type
protected int
d_verbiosity
static String[]
s_types

Constructor Summary

UserMsg(int type, String msg)
UserMsg(int type, String msg, ASTNode ast_node)

Method Summary

int
compareTo(Object obj)
User Messages sort by line number first, column number second.
int
getType()
int
getVerbiosity()
void
setVerbiosity(int verbiosity)
String
toString()

Field Details

ERROR

public static final int ERROR
Field Value:
1

INTERNAL_ERROR

public static final int INTERNAL_ERROR
Field Value:
0

REMARK

public static final int REMARK
Field Value:
3

WARNING

public static final int WARNING
Field Value:
2

d_ast_node

protected ASTNode d_ast_node

d_col

protected int d_col

d_filename

protected String d_filename

d_line

protected int d_line

d_msg

protected String d_msg

d_type

protected int d_type

d_verbiosity

protected int d_verbiosity

s_types

public static String[] s_types

Constructor Details

UserMsg

public UserMsg(int type,
               String msg)

UserMsg

public UserMsg(int type,
               String msg,
               ASTNode ast_node)

Method Details

compareTo

public int compareTo(Object obj)
User Messages sort by line number first, column number second.

getType

public int getType()

getVerbiosity

public int getVerbiosity()

setVerbiosity

public void setVerbiosity(int verbiosity)

toString

public String toString()