Package org.apache.maven.api.toolchain
Class InputLocation
java.lang.Object
org.apache.maven.api.toolchain.InputLocation
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
Class InputLocation.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceClass StringFormatter.
- 
Constructor SummaryConstructorsConstructorDescriptionInputLocation(int lineNumber, int columnNumber) InputLocation(int lineNumber, int columnNumber, InputSource source) InputLocation(int lineNumber, int columnNumber, InputSource source, Object selfLocationKey) InputLocation(int lineNumber, int columnNumber, InputSource source, Map<Object, InputLocation> locations) InputLocation(InputSource source) 
- 
Method SummaryModifier and TypeMethodDescriptionintintgetLocation(Object key) static InputLocationmerge(InputLocation target, InputLocation source, boolean sourceDominant) Merges thesourcelocation into thetargetlocation.static InputLocationmerge(InputLocation target, InputLocation source, Collection<Integer> indices) Merges thesourcelocation into thetargetlocation.
- 
Constructor Details- 
InputLocation
- 
InputLocationpublic InputLocation(int lineNumber, int columnNumber) 
- 
InputLocation
- 
InputLocation
- 
InputLocationpublic InputLocation(int lineNumber, int columnNumber, InputSource source, Map<Object, InputLocation> locations) 
 
- 
- 
Method Details- 
getLineNumberpublic int getLineNumber()
- 
getColumnNumberpublic int getColumnNumber()
- 
getSource
- 
getLocation- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
getLocations
- 
mergepublic static InputLocation merge(InputLocation target, InputLocation source, boolean sourceDominant) Merges thesourcelocation into thetargetlocation.- Parameters:
- target- the target location
- source- the source location
- sourceDominant- the boolean indicating of- sourceis dominant compared to- target
- Returns:
- the merged location
 
- 
mergepublic static InputLocation merge(InputLocation target, InputLocation source, Collection<Integer> indices) Merges thesourcelocation into thetargetlocation. This method is used when the locations refer to lists and also merges the indices.- Parameters:
- target- the target location
- source- the source location
- indices- the list of integers for the indices
- Returns:
- the merged location
 
 
-