com.android.ide.common.blame.parser
Class JsonEncodedGradleMessageParser

java.lang.Object
  extended by com.android.ide.common.blame.parser.JsonEncodedGradleMessageParser
All Implemented Interfaces:
PatternAwareOutputParser

public class JsonEncodedGradleMessageParser
extends java.lang.Object
implements PatternAwareOutputParser

Reconstruct Messages that were parsed by the gradle plugin.


Field Summary
static java.lang.String STDOUT_ERROR_TAG
           
 
Constructor Summary
JsonEncodedGradleMessageParser()
           
 
Method Summary
 boolean parse(java.lang.String line, OutputLineReader reader, java.util.List<com.android.ide.common.blame.Message> messages, com.android.utils.ILogger logger)
          Parses the given output line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STDOUT_ERROR_TAG

public static final java.lang.String STDOUT_ERROR_TAG
See Also:
Constant Field Values
Constructor Detail

JsonEncodedGradleMessageParser

public JsonEncodedGradleMessageParser()
Method Detail

parse

public boolean parse(@NonNull
                     java.lang.String line,
                     @NonNull
                     OutputLineReader reader,
                     @NonNull
                     java.util.List<com.android.ide.common.blame.Message> messages,
                     @NonNull
                     com.android.utils.ILogger logger)
              throws ParsingFailedException
Description copied from interface: PatternAwareOutputParser
Parses the given output line.

Specified by:
parse in interface PatternAwareOutputParser
Parameters:
line - the line to parse.
reader - passed in case this parser needs to parse more lines in order to create a Message.
messages - stores the messages created during parsing, if any.
Returns:
true if this parser was able to parser the given line, false otherwise.
Throws:
ParsingFailedException - if something goes wrong (e.g. malformed output.)