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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(LineLocation other)static LineLocationfromLine(java.lang.CharSequence cs)java.lang.StringgetDescription()A description of the ressource.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()
-
fromLine
public static LineLocation fromLine(java.lang.CharSequence cs)
-
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 ressource. If the ressource 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>
-
-