public class GStringExpression extends Expression
Constructor and Description |
---|
GStringExpression(String verbatimText) |
GStringExpression(String verbatimText,
List<ConstantExpression> strings,
List<Expression> values) |
Modifier and Type | Method and Description |
---|---|
void |
addString(ConstantExpression text) |
void |
addValue(Expression value) |
Expression |
asConstantString() |
List<ConstantExpression> |
getStrings() |
String |
getText() |
Expression |
getValue(int idx) |
List<Expression> |
getValues() |
boolean |
isConstantString() |
String |
toString() |
Expression |
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions
|
void |
visit(GroovyCodeVisitor visitor) |
getType, setType, transformExpressions, transformExpressions
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public GStringExpression(String verbatimText)
public GStringExpression(String verbatimText, List<ConstantExpression> strings, List<Expression> values)
public void visit(GroovyCodeVisitor visitor)
public Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression
in class Expression
public List<ConstantExpression> getStrings()
public List<Expression> getValues()
public void addString(ConstantExpression text)
public void addValue(Expression value)
public Expression getValue(int idx)
public boolean isConstantString()
public Expression asConstantString()