private fun concatHeirTokens(stn: com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode): String { val heirs: Array<com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode> = stn.getHeirs() if (heirs.size == 0) { return if (stn.getKind() < SyntaxTreeConstants.NULL_ID) { stn.getImage() } else { "" } } var `val` = "" for (i in heirs.indices) { `val` = `val` + concatHeirTokens(heirs[i]) } return `val` }
Returns the concatenation of the images of all leaf nodes of the node stn that correspond to actual tokens