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.Messageid in interface MessageMethod.Messagepublic boolean hasId()
MessageMethod.Messagetrue if the message id was specified or
inherited, otherwise returns false.hasId in interface MessageMethod.Messagetrue if the message id was provided, otherwise false.public boolean inheritsId()
MessageMethod.Messagetrue only if the message id is inherited, otherwise
false is returned.inheritsId in interface MessageMethod.Messagetrue if the message id was inherited, otherwise false.public java.lang.String value()
MessageMethod.MessageMessageMethod.Message.format().value in interface MessageMethod.Messagepublic Message.Format format()
MessageMethod.Messageformat in interface MessageMethod.Messagepublic java.lang.String toString()
toString in class java.lang.Object