public final class InterpolatedString
extends java.lang.Object
implements java.io.Serializable
Zephyr Business Solutions Corp.
Constructor and Description |
---|
InterpolatedString(int[] indices,
int[] lengths,
Expr[] exprs,
java.lang.String str) |
Modifier and Type | Method and Description |
---|---|
Expr |
getExpr(int i)
Get the i'th sub-expression.
|
Expr[] |
getExprs()
Get the sub-expressions.
|
int |
getIndice(int i)
Get the indice in the raw string for the i'th sub-expression.
|
int |
getInterpolationCount()
Get the number of sub-expressions to interpolate.
|
int |
getLength(int i)
Get the length of the i'th sub-expression.
|
java.lang.String |
getRaw()
Get the raw string that contains all the '$' and '{', '}' characters.
|
InterpolatedString |
setExprs(Expr[] exprs)
replace the sub-expressions.
|
public InterpolatedString(int[] indices, int[] lengths, Expr[] exprs, java.lang.String str)
indices
- lengths
- exprs
- str
- public final InterpolatedString setExprs(Expr[] exprs)
exprs
- the new sub-expressions.public final Expr[] getExprs()
public final int getInterpolationCount()
public final int getIndice(int i)
i
- the subscript.public final int getLength(int i)
i
- the subscript.public final Expr getExpr(int i)
i
- the subscript.public final java.lang.String getRaw()