Class ObjectLocation
java.lang.Object
com.pnfsoftware.jeb.core.output.text.ObjectLocation
- All Implemented Interfaces:
IObjectLocation
Simple implementation of
IObjectLocation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObjectLocation(Object object, int depth, int lineBegin, int columnBegin) Create a location starting at the provided coordinates. -
Method Summary
Modifier and TypeMethodDescriptionintGet the first column of the object's textual range.intGet the end column of the object's textual range.intgetDepth()Get the optional nesting depth associated with this location.intGet the first line of the object's textual range.intGet the last line of the object's textual range.Get the represented object.voidsetEnd(int lineEnd, int columnEnd) Set the inclusive end line and exclusive end column of the represented range.
-
Field Details
-
lineBegin
public int lineBegin -
lineEnd
public int lineEnd
-
-
Constructor Details
-
ObjectLocation
Create a location starting at the provided coordinates.- Parameters:
object- represented objectdepth- optional nesting depth used by some producerslineBegin- inclusive start linecolumnBegin- inclusive start column
-
-
Method Details
-
setEnd
public void setEnd(int lineEnd, int columnEnd) Set the inclusive end line and exclusive end column of the represented range.- Parameters:
lineEnd- inclusive end linecolumnEnd- exclusive end column
-
getObject
Description copied from interface:IObjectLocationGet the represented object.- Specified by:
getObjectin interfaceIObjectLocation- Returns:
- the represented object
-
getDepth
public int getDepth()Get the optional nesting depth associated with this location.- Returns:
- the depth value
-
getLineBegin
public int getLineBegin()Description copied from interface:IObjectLocationGet the first line of the object's textual range.- Specified by:
getLineBeginin interfaceIObjectLocation- Returns:
- the inclusive start line index
-
getLineEnd
public int getLineEnd()Description copied from interface:IObjectLocationGet the last line of the object's textual range.- Specified by:
getLineEndin interfaceIObjectLocation- Returns:
- the inclusive end line index
-
getColumnBegin
public int getColumnBegin()Description copied from interface:IObjectLocationGet the first column of the object's textual range.- Specified by:
getColumnBeginin interfaceIObjectLocation- Returns:
- the inclusive start column offset
-
getColumnEnd
public int getColumnEnd()Description copied from interface:IObjectLocationGet the end column of the object's textual range.- Specified by:
getColumnEndin interfaceIObjectLocation- Returns:
- the exclusive end column offset
-