java.lang.Object
org.kink_lang.kink.HostResultCore
org.kink_lang.kink.Val
org.kink_lang.kink.LocationVal
- All Implemented Interfaces:
 HostResult
A location in a program.
- See Also:
 
- 
Field Summary
 - 
Method Summary
Modifier and TypeMethodDescriptionintcharPos()Returns the char index of the pos.intReturns the char offset from the head of the line.intReturns the rune offset from the head of the line.desc()Returns the string ofTrace.desc.booleanReturnstrueif the two locations have the same vms, program names, program texts and pos indices.inthashCode()Returns the hash code of the loction val.Returns the string ofTrace.indicator.line()Returns the line string where the loc is located.intlineNum()Returns the one-based line number of the location on the program text.Returns the program name.Returns the program text.intrunePos()Returns the rune index of the pos.toString()Returns the string representation of the location val.Methods inherited from class org.kink_lang.kink.Val
getVar, getVarSymHandleSet, hasVar, identity, makeHostResultCore, setVar 
- 
Method Details
- 
programName
Returns the program name.- Returns:
 - the program name.
 
 - 
programText
Returns the program text.- Returns:
 - the program text.
 
 - 
charPos
public int charPos()Returns the char index of the pos.- Returns:
 - the char index of the pos.
 
 - 
runePos
public int runePos()Returns the rune index of the pos.- Returns:
 - the rune index of the pos.
 
 - 
lineNum
public int lineNum()Returns the one-based line number of the location on the program text.- Returns:
 - the one-based line number of the location on the program text.
 
 - 
columnCharOffset
public int columnCharOffset()Returns the char offset from the head of the line.- Returns:
 - the char offset from the head of the line.
 
 - 
columnRuneOffset
public int columnRuneOffset()Returns the rune offset from the head of the line.- Returns:
 - the rune offset from the head of the line.
 
 - 
line
Returns the line string where the loc is located.- Returns:
 - the line string where the loc is located.
 
 - 
indicator
Returns the string ofTrace.indicator. The example result: "foo(-->bar)".- Returns:
 - the string of 
Trace.indicator. 
 - 
desc
Returns the string ofTrace.desc. The example result: "foo.kn L10 C15".- Returns:
 - the string of 
Trace.desc. 
 - 
toString
Returns the string representation of the location val. - 
hashCode
public int hashCode()Returns the hash code of the loction val. - 
equals
Returnstrueif the two locations have the same vms, program names, program texts and pos indices. 
 -