Class SourcePositionImpl
- java.lang.Object
-
- org.apache.xmlbeans.impl.jam.internal.elements.SourcePositionImpl
-
- All Implemented Interfaces:
JSourcePosition
,MSourcePosition
public final class SourcePositionImpl extends java.lang.Object implements MSourcePosition
Implementation of JSourcePosition and MSourcePosition.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
Returns the text column number for this source position, or -1 if it is not known.int
getLine()
Returns the text line number for this source position, or -1 if it is not known.java.net.URI
getSourceURI()
Returns the URI of the source file, or null if it is not known.void
setColumn(int col)
Sets the text column number for this source position.void
setLine(int line)
Sets the text line number for this source position.void
setSourceURI(java.net.URI uri)
Sets the URI of the source file.
-
-
-
Method Detail
-
setColumn
public void setColumn(int col)
Description copied from interface:MSourcePosition
Sets the text column number for this source position. Set to -1 if it is not known.- Specified by:
setColumn
in interfaceMSourcePosition
-
setLine
public void setLine(int line)
Description copied from interface:MSourcePosition
Sets the text line number for this source position. Set to -1 if it is not known.- Specified by:
setLine
in interfaceMSourcePosition
-
setSourceURI
public void setSourceURI(java.net.URI uri)
Description copied from interface:MSourcePosition
Sets the URI of the source file. Set to null if it is not known.- Specified by:
setSourceURI
in interfaceMSourcePosition
-
getColumn
public int getColumn()
Description copied from interface:JSourcePosition
Returns the text column number for this source position, or -1 if it is not known.- Specified by:
getColumn
in interfaceJSourcePosition
-
getLine
public int getLine()
Description copied from interface:JSourcePosition
Returns the text line number for this source position, or -1 if it is not known.- Specified by:
getLine
in interfaceJSourcePosition
-
getSourceURI
public java.net.URI getSourceURI()
Description copied from interface:JSourcePosition
Returns the URI of the source file, or null if it is not known.- Specified by:
getSourceURI
in interfaceJSourcePosition
-
-