Package net.orbyfied.j8.command.util
Class StringLocation
java.lang.Object
net.orbyfied.j8.command.util.StringLocation
- All Implemented Interfaces:
StringLocatable<Void>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStringLocation(String fn, String str, int startIndex, int endIndex) StringLocation(String fn, net.orbyfied.j8.util.StringReader str, int startIndex, int endIndex) StringLocation(StringLocation loc, int startIndex, int endIndex) -
Method Summary
Modifier and TypeMethodDescriptionatLine(int ln) static StringLocationintintgetLn()intlocated(StringLocatable<?> loc) located(StringLocation loc) toString()toStringFancy(int off, boolean f)
-
Field Details
-
EMPTY
-
startIndex
public int startIndex -
endIndex
public int endIndex
-
-
Constructor Details
-
StringLocation
-
StringLocation
-
StringLocation
public StringLocation(String fn, net.orbyfied.j8.util.StringReader str, int startIndex, int endIndex)
-
-
Method Details
-
cover
-
atLine
-
getLn
public int getLn() -
getStartIndex
public int getStartIndex() -
getEndIndex
public int getEndIndex() -
getFilename
-
getString
-
toString
-
toStringFancy
-
located
- Specified by:
locatedin interfaceStringLocatable<Void>
-
located
- Specified by:
locatedin interfaceStringLocatable<Void>
-
getLocation
- Specified by:
getLocationin interfaceStringLocatable<Void>
-