BaseWrappedException.GuestLocation
com.jsmacrosce.jsmacros.core.language.BaseWrappedException.GuestLocation
A guest-source location retaining the supplied file and diagnostic positions.
js
const GuestLocation = Java.type("com.jsmacrosce.jsmacros.core.language.BaseWrappedException$GuestLocation");
Chat.log(new GuestLocation(null, 0, 0, 1, -1).toString());Nested type declared in BaseWrappedException.
Constructors
new BaseWrappedException.GuestLocation
new BaseWrappedException.GuestLocation(File file, int startIndex, int endIndex, int line, int column)#Stores the supplied file and diagnostic positions unchanged.
Parameters:
file: source file, ornullwhen unknownstartIndex: supplied source-start offsetendIndex: supplied source-end offsetline: supplied diagnostic line numbercolumn: supplied diagnostic column;-1denotes an unknown column
Fields
column
Supplied diagnostic column;
-1 denotes an unknown column.endIndex
Supplied source-end offset.
file
line
Supplied diagnostic line number.
startIndex
Supplied source-start offset.