|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.ide.common.blame.Message
@Immutable public final class Message
| Nested Class Summary | |
|---|---|
static class |
Message.Kind
|
| Constructor Summary | |
|---|---|
Message(Message.Kind kind,
java.lang.String text,
SourceFilePosition sourceFilePosition,
SourceFilePosition... sourceFilePositions)
Create a new message, which has a Message.Kind, a String which will be shown to the user and
at least one SourceFilePosition. |
|
Message(Message.Kind kind,
java.lang.String text,
java.lang.String rawMessage,
com.google.common.base.Optional<java.lang.String> toolName,
com.google.common.collect.ImmutableList<SourceFilePosition> positions)
|
|
Message(Message.Kind kind,
java.lang.String text,
java.lang.String rawMessage,
java.lang.String toolName,
SourceFilePosition sourceFilePosition,
SourceFilePosition... sourceFilePositions)
Create a new message, which has a Message.Kind, a String which will be shown to the user and
at least one SourceFilePosition. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getColumn()
Deprecated. |
Message.Kind |
getKind()
|
int |
getLineNumber()
Deprecated. |
java.lang.String |
getRawMessage()
|
java.util.List<SourceFilePosition> |
getSourceFilePositions()
Returns a list of source positions. |
java.lang.String |
getSourcePath()
|
java.lang.String |
getText()
|
com.google.common.base.Optional<java.lang.String> |
getToolName()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Message(@NonNull
Message.Kind kind,
@NonNull
java.lang.String text,
@NonNull
SourceFilePosition sourceFilePosition,
@NonNull
SourceFilePosition... sourceFilePositions)
Message.Kind, a String which will be shown to the user and
at least one SourceFilePosition.
kind - the message type.text - the text of the message.sourceFilePosition - the first source file position the message .sourceFilePositions - any additional source file positions, may be empty.
public Message(@NonNull
Message.Kind kind,
@NonNull
java.lang.String text,
@NonNull
java.lang.String rawMessage,
@Nullable
java.lang.String toolName,
@NonNull
SourceFilePosition sourceFilePosition,
@NonNull
SourceFilePosition... sourceFilePositions)
Message.Kind, a String which will be shown to the user and
at least one SourceFilePosition.
It also has a rawMessage, to store the original string for cases when the message is
constructed by parsing the output from another tool.
kind - the message kind.text - a human-readable string explaining the issue.rawMessage - the original text of the message, usually from an external tool.toolName - the name of the tool that produced the message, e.g. AAPT.sourceFilePosition - the first source file position.sourceFilePositions - any additional source file positions, may be empty.
public Message(@NonNull
Message.Kind kind,
@NonNull
java.lang.String text,
@NonNull
java.lang.String rawMessage,
@NonNull
com.google.common.base.Optional<java.lang.String> toolName,
@NonNull
com.google.common.collect.ImmutableList<SourceFilePosition> positions)
| Method Detail |
|---|
@NonNull public Message.Kind getKind()
@NonNull public java.lang.String getText()
@NonNull public java.util.List<SourceFilePosition> getSourceFilePositions()
@NonNull public java.lang.String getRawMessage()
@NonNull public com.google.common.base.Optional<java.lang.String> getToolName()
@Nullable public java.lang.String getSourcePath()
@Deprecated public int getLineNumber()
@Deprecated public int getColumn()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||