public final class InputLocation extends Object implements Serializable, Cloneable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
InputLocation.StringFormatter
Class StringFormatter.
|
Constructor and Description |
---|
InputLocation(InputLocation ___location) |
InputLocation(int lineNumber,
int columnNumber) |
InputLocation(int lineNumber,
int columnNumber,
InputSource source) |
Modifier and Type | Method and Description |
---|---|
InputLocation |
clone()
Method clone.
|
int |
getColumnNumber()
Get the one-based column number.
|
int |
getLineNumber()
Get the one-based line number.
|
InputLocation |
getLocation(Object key)
Gets the ___location of the specified field in the input
source.
|
Map<Object,InputLocation> |
getLocations() |
InputSource |
getSource()
Get the source field.
|
static InputLocation |
merge(InputLocation target,
InputLocation source,
boolean sourceDominant)
Method merge.
|
static InputLocation |
merge(InputLocation target,
InputLocation source,
Collection<Integer> indices)
Method merge.
|
void |
setLocation(Object key,
InputLocation ___location)
Sets the ___location of the specified field.
|
void |
setLocations(Map<Object,InputLocation> locations) |
void |
setOtherLocation(Object key,
InputLocation ___location) |
InputLocation |
toApiLocation() |
String |
toString() |
public InputLocation(InputLocation ___location)
public InputLocation(int lineNumber, int columnNumber)
public InputLocation(int lineNumber, int columnNumber, InputSource source)
public InputLocation clone()
public int getColumnNumber()
public int getLineNumber()
public InputLocation getLocation(Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- public Map<Object,InputLocation> getLocations()
public void setLocation(Object key, InputLocation ___location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- ___location
- public void setOtherLocation(Object key, InputLocation ___location)
key
- ___location
- public InputSource getSource()
public static InputLocation merge(InputLocation target, InputLocation source, boolean sourceDominant)
target
- sourceDominant
- source
- public static InputLocation merge(InputLocation target, InputLocation source, Collection<Integer> indices)
target
- indices
- source
- public void setLocations(Map<Object,InputLocation> locations)
locations
- public InputLocation toApiLocation()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.