Package net.sourceforge.plantuml.utils
Class LineLocationImpl
- java.lang.Object
-
- net.sourceforge.plantuml.utils.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 intcompareTo(LineLocation other)java.lang.StringgetDescription()A description of the resource.LineLocationgetParent()Get the parent of this location.intgetPosition()Position of the line, starting at 0.LineLocationImploneLineRead()java.lang.StringtoString()
-
-
-
Constructor Detail
-
LineLocationImpl
public LineLocationImpl(java.lang.String desc, LineLocation parent)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
oneLineRead
public LineLocationImpl oneLineRead()
-
getPosition
public int getPosition()
Description copied from interface:LineLocationPosition of the line, starting at 0.- Specified by:
getPositionin interfaceLineLocation
-
getDescription
public java.lang.String getDescription()
Description copied from interface:LineLocationA description of the resource. If the resource is a file, this is the complete path of the file.- Specified by:
getDescriptionin interfaceLineLocation
-
getParent
public LineLocation getParent()
Description copied from interface:LineLocationGet 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:
getParentin interfaceLineLocation
-
compareTo
public int compareTo(LineLocation other)
- Specified by:
compareToin interfacejava.lang.Comparable<LineLocation>
-
-