Package net.sourceforge.plantuml
Class LineLocationImpl
- java.lang.Object
-
- net.sourceforge.plantuml.LineLocationImpl
-
- All Implemented Interfaces:
java.lang.Comparable<LineLocation>
,LineLocation
public class LineLocationImpl extends java.lang.Object implements LineLocation
-
-
Constructor Summary
Constructors Constructor Description LineLocationImpl(java.lang.String desc, LineLocation parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(LineLocation other)
java.lang.String
getDescription()
A description of the ressource.LineLocation
getParent()
Get the parent of this location.int
getPosition()
Position of the line, starting at 0.LineLocationImpl
oneLineRead()
java.lang.String
toString()
-
-
-
Constructor Detail
-
LineLocationImpl
public LineLocationImpl(java.lang.String desc, LineLocation parent)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
oneLineRead
public LineLocationImpl oneLineRead()
-
getPosition
public int getPosition()
Description copied from interface:LineLocation
Position of the line, starting at 0.- Specified by:
getPosition
in interfaceLineLocation
-
getDescription
public java.lang.String getDescription()
Description copied from interface:LineLocation
A description of the ressource. If the ressource is a file, this is the complete path of the file.- Specified by:
getDescription
in interfaceLineLocation
-
getParent
public LineLocation getParent()
Description copied from interface:LineLocation
Get the parent of this location. If this resource has been included by a !include or !includeurl directive, this return the location of the !include line.- Specified by:
getParent
in interfaceLineLocation
-
compareTo
public int compareTo(LineLocation other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<LineLocation>
-
-