com.android.manifmerger
Class IMergerLog.FileAndLine

java.lang.Object
  extended by com.android.manifmerger.IMergerLog.FileAndLine
Enclosing interface:
IMergerLog

public static class IMergerLog.FileAndLine
extends java.lang.Object

Information about the file and line number where an error occurred.


Constructor Summary
IMergerLog.FileAndLine(java.lang.String filePath, int line)
          Constructs a new IMergerLog.FileAndLine.
 
Method Summary
 java.lang.String getFileName()
          Returns the file path.
 int getLine()
          Returns the line number where the error occurred in the XML file.
 java.lang.String toString()
          Displays the information in the form "file:line".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IMergerLog.FileAndLine

public IMergerLog.FileAndLine(@Nullable
                              java.lang.String filePath,
                              int line)
Constructs a new IMergerLog.FileAndLine.

Parameters:
filePath - The file path. This is typically a file path when the merge is initiated via the process(File...) interface. When using the process(Document...) interface, this will be one of the magic constants IMergerLog.LIBRARY or IMergerLog.MAIN_MANIFEST. When that fails, null is used.
line - The line number where the error occurred in the XML file. Zero is used when the line number isn't known (e.g. when the error happens at the document level rather than on a specific element.)
Method Detail

getFileName

@Nullable
public java.lang.String getFileName()
Returns the file path.

This is typically a file path when the merge is initiated via the process(File...) interface. When using the process(Document...) interface, this will be one of the magic constants IMergerLog.LIBRARY or IMergerLog.MAIN_MANIFEST. When that fails, null is used.


getLine

public int getLine()
Returns the line number where the error occurred in the XML file. Zero is used when the line number isn't known (e.g. when the error happens at the document level rather than on a specific element.)


toString

public java.lang.String toString()
Displays the information in the form "file:line".

Overrides:
toString in class java.lang.Object