|
Groovy 2.2.0 | |||||||
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(String verbatimText)
|
|
GStringExpression(String verbatimText, List strings, List values)
|
Method Summary | |
---|---|
void
|
addString(ConstantExpression text)
|
void
|
addValue(Expression value)
|
Expression
|
asConstantString()
|
List
|
getStrings()
|
String
|
getText()
|
Expression
|
getValue(int idx)
|
List
|
getValues()
|
boolean
|
isConstantString()
|
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 Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public GStringExpression(String verbatimText)
public GStringExpression(String verbatimText, List strings, List values)
Method Detail |
---|
public void addString(ConstantExpression text)
public void addValue(Expression value)
public Expression asConstantString()
public List getStrings()
public String getText()
public Expression getValue(int idx)
public List getValues()
public boolean isConstantString()
public String toString()
public Expression transformExpression(ExpressionTransformer transformer)
public void visit(GroovyCodeVisitor visitor)
Copyright © 2003-2013 The Codehaus. All rights reserved.