|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.ASTNode org.codehaus.groovy.ast.AnnotatedNode org.codehaus.groovy.ast.expr.Expression org.codehaus.groovy.ast.expr.GStringExpression
public class GStringExpression extends Expression
Represents a String expression which contains embedded values inside it such as "hello there ${user} how are you" which is expanded lazily
Constructor Summary | |
GStringExpression(java.lang.String verbatimText)
|
|
GStringExpression(java.lang.String verbatimText, java.util.List strings, java.util.List values)
|
Method Summary | |
---|---|
void
|
addString(ConstantExpression text)
|
void
|
addValue(Expression value)
|
Expression
|
asConstantString()
|
java.util.List
|
getStrings()
|
java.lang.String
|
getText()
|
Expression
|
getValue(int idx)
|
java.util.List
|
getValues()
|
boolean
|
isConstantString()
|
java.lang.String
|
toString()
|
Expression
|
transformExpression(ExpressionTransformer transformer)
|
void
|
visit(GroovyCodeVisitor visitor)
|
Methods inherited from class Expression | |
---|---|
getType, setType, transformExpression, transformExpressions, transformExpressions |
Methods inherited from class AnnotatedNode | |
---|---|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public GStringExpression(java.lang.String verbatimText)
public GStringExpression(java.lang.String verbatimText, java.util.List strings, java.util.List values)
Method Detail |
---|
public void addString(ConstantExpression text)
public void addValue(Expression value)
public Expression asConstantString()
public java.util.List getStrings()
public java.lang.String getText()
public Expression getValue(int idx)
public java.util.List getValues()
public boolean isConstantString()
public java.lang.String toString()
public Expression transformExpression(ExpressionTransformer transformer)
public void visit(GroovyCodeVisitor visitor)
Groovy Documentation