- java.lang.Object
-
- org.kink_lang.kink.HostResultCore
-
- org.kink_lang.kink.Val
-
- org.kink_lang.kink.StrVal
-
- All Implemented Interfaces:
HostResult
public class StrVal extends Val
A str val.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StrVal
concat(StrVal tail)
Returns a str val concatenatingthis
andtail
.boolean
equals(Object arg)
VarMapping
getCustomVarMapping()
Returns the var mapping for a val class.String
getString()
Returns the string.int
hashCode()
String
toString()
-
Methods inherited from class org.kink_lang.kink.Val
getIdentity, getVar, getVarSymHandleSet, hasVar, makeHostResultCore, setVar
-
-
-
-
Method Detail
-
getString
public String getString()
Returns the string.- Returns:
- the string.
-
concat
public StrVal concat(StrVal tail)
Returns a str val concatenatingthis
andtail
.- Parameters:
tail
- str val to concatenate.- Returns:
- a str val concatenating
this
andtail
.
-
getCustomVarMapping
public VarMapping getCustomVarMapping()
Description copied from class:Val
Returns the var mapping for a val class.Override this method to provide vars common to the val class. The content of the var mapping is preferred than the common ones.
- Overrides:
getCustomVarMapping
in classVal
- Returns:
- the var mapping for a val class.
-
-