|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.jaskell.ast.InterpolatedString
public final class InterpolatedString
Represents a string literal with interpolation.
Zephyr Business Solutions Corp.
Constructor Summary | |
---|---|
InterpolatedString(int[] indices,
int[] lengths,
Expr[] exprs,
java.lang.String str)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterpolatedString(int[] indices, int[] lengths, Expr[] exprs, java.lang.String str)
indices
- lengths
- exprs
- str
- Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |