public class Message5WH_Builder extends Object
Message5WH object.| Modifier and Type | Field and Description |
|---|---|
protected StrBuilder |
how
How did it happen?
|
protected int |
initialCapacity
Initial capacity for StrBuilder members
|
protected Object |
reporter
Who reports it?
|
protected E_MessageType |
type
Type of message
|
protected StrBuilder |
what
What happened?
|
protected Object |
when
When did take place/happen?
|
protected int |
whereColumn
Where did it happen: column.
|
protected int |
whereLine
Where did it happen: line.
|
protected Object |
whereLocation
Where did it happen: location.
|
protected Object |
who
Who is this message about?
|
protected StrBuilder |
why
Why did it happen?
|
| Constructor and Description |
|---|
Message5WH_Builder() |
| Modifier and Type | Method and Description |
|---|---|
Message5WH_Builder |
addHow(Object... how)
Adds to the How? part of the message.
|
Message5WH_Builder |
addWhat(Object... what)
Adds to the What? part of the message.
|
Message5WH_Builder |
addWhy(Object... why)
Adds to the Why? part of the message.
|
Message5WH |
build()
Builds a message object with the set parameters.
|
Message5WH_Builder |
setReporter(Object reporter)
Sets the Reporter of the message.
|
Message5WH_Builder |
setType(E_MessageType type)
Sets the type of the message.
|
Message5WH_Builder |
setWhen(Object when)
Sets the When? part of the message.
|
Message5WH_Builder |
setWhere(Object where)
Sets the Where? part of the message.
|
Message5WH_Builder |
setWhere(Object where,
int line,
int column)
Sets the Where? part of the message.
|
Message5WH_Builder |
setWhere(Object where,
ParserRuleContext lineAndColumn)
Sets the Where? part of the message.
|
Message5WH_Builder |
setWhere(Object where,
RecognitionException lineAndColumn)
Sets the Where? part of the message.
|
Message5WH_Builder |
setWhere(Object where,
Token lineAndColumn)
Sets the Where? part of the message.
|
Message5WH_Builder |
setWhere(StackTraceElement ste)
Sets the Where? part of the message.
|
Message5WH_Builder |
setWho(Object who)
Sets the Who? part of the message.
|
protected int initialCapacity
protected Object who
protected StrBuilder what
protected Object whereLocation
protected int whereLine
protected int whereColumn
protected Object when
protected StrBuilder why
protected StrBuilder how
protected Object reporter
protected E_MessageType type
public Message5WH_Builder addHow(Object... how)
how - additional information for How?public Message5WH_Builder addWhat(Object... what)
what - additional information for What?public Message5WH_Builder addWhy(Object... why)
why - additional information for Why?public Message5WH_Builder setReporter(Object reporter)
reporter - new reporterpublic Message5WH_Builder setType(E_MessageType type)
type - new typepublic Message5WH_Builder setWhen(Object when)
when - new When? partpublic Message5WH_Builder setWhere(Object where, int line, int column)
where - location for Where?line - line for Where?, ignored if <1;column - column for Where?, ignored if <1public Message5WH_Builder setWhere(Object where, RecognitionException lineAndColumn)
where - location for Where?lineAndColumn - source for the Where? partpublic Message5WH_Builder setWhere(Object where)
where - location for Where?public Message5WH_Builder setWhere(Object where, Token lineAndColumn)
where - location for Where?lineAndColumn - source for the Where? partpublic Message5WH_Builder setWhere(Object where, ParserRuleContext lineAndColumn)
where - location for Where?lineAndColumn - source for the Where? partpublic Message5WH_Builder setWhere(StackTraceElement ste)
ste - source for the Where? partpublic Message5WH_Builder setWho(Object who)
who - new Who? partpublic Message5WH build()
Copyright © 2010–2017. All rights reserved.