private static class MessageMethodBuilder.AptMessage extends java.lang.Object implements MessageMethod.Message
Modifier and Type | Field and Description |
---|---|
private boolean |
hasId |
private int |
id |
private boolean |
inheritsId |
private Message |
message |
Modifier | Constructor and Description |
---|---|
private |
AptMessage(Message message) |
Modifier and Type | Method and Description |
---|---|
Message.Format |
format()
The message format type for the message.
|
boolean |
hasId()
Checks if the message has an id that was provided.
|
int |
id()
The message id for the message to use.
|
boolean |
inheritsId()
Checks if the message id was inherited.
|
java.lang.String |
toString() |
java.lang.String |
value()
A format string that can be used with the
MessageMethod.Message.format() . |
private final Message message
private int id
private boolean hasId
private boolean inheritsId
private AptMessage(Message message)
public int id()
MessageMethod.Message
id
in interface MessageMethod.Message
public boolean hasId()
MessageMethod.Message
true
if the message id was specified or
inherited, otherwise returns false
.hasId
in interface MessageMethod.Message
true
if the message id was provided, otherwise false
.public boolean inheritsId()
MessageMethod.Message
true
only if the message id is inherited, otherwise
false
is returned.inheritsId
in interface MessageMethod.Message
true
if the message id was inherited, otherwise false
.public java.lang.String value()
MessageMethod.Message
MessageMethod.Message.format()
.value
in interface MessageMethod.Message
public Message.Format format()
MessageMethod.Message
format
in interface MessageMethod.Message
public java.lang.String toString()
toString
in class java.lang.Object