public class DefaultPosition extends AbstractPosition
| Modifier and Type | Field and Description |
|---|---|
static String |
ARTIFICIAL_NODE |
| Constructor and Description |
|---|
DefaultPosition(int index,
int line,
int column,
String resource,
ResourceLoader resourceLoader) |
| Modifier and Type | Method and Description |
|---|---|
static DefaultPosition |
emptyPosition() |
int |
getColumn()
Column number
|
String |
getIncludedResourceUri()
Returns the resource URI of the current position
|
int |
getIndex()
The offset from the begining of the file
|
int |
getLine()
The line line number
|
String |
getPath()
Returns the absolute path of the resource where this position is relative to
|
ResourceLoader |
getResourceLoader() |
static boolean |
isDefaultNode(Node node) |
void |
setIncludedResourceUri(String includedResourceURI)
Sets the URI of the resource in the current position
|
leftShift, rightShift, toStringpublic static final String ARTIFICIAL_NODE
public DefaultPosition(int index,
int line,
int column,
String resource,
ResourceLoader resourceLoader)
public int getIndex()
Positionpublic int getLine()
Positionpublic int getColumn()
Position@Nonnull public String getPath()
Positionpublic String getIncludedResourceUri()
Positionpublic void setIncludedResourceUri(String includedResourceURI)
PositionincludedResourceURI - The resource URI@Nonnull public ResourceLoader getResourceLoader()
public static DefaultPosition emptyPosition()
public static boolean isDefaultNode(Node node)
Copyright © 2017. All rights reserved.