public class GStringExpression extends Expression
Constructor and Description |
---|
GStringExpression(java.lang.String verbatimText) |
GStringExpression(java.lang.String verbatimText,
java.util.List<ConstantExpression> strings,
java.util.List<Expression> values) |
Modifier and Type | Method and Description |
---|---|
void |
addString(ConstantExpression text) |
void |
addValue(Expression value) |
Expression |
asConstantString() |
java.util.List<ConstantExpression> |
getStrings() |
java.lang.String |
getText() |
Expression |
getValue(int idx) |
java.util.List<Expression> |
getValues() |
boolean |
isConstantString() |
java.lang.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(java.lang.String verbatimText)
public GStringExpression(java.lang.String verbatimText, java.util.List<ConstantExpression> strings, java.util.List<Expression> values)
public void visit(GroovyCodeVisitor visitor)
public Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression
in class Expression
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<ConstantExpression> getStrings()
public java.util.List<Expression> getValues()
public void addString(ConstantExpression text)
public void addValue(Expression value)
public Expression getValue(int idx)
public boolean isConstantString()
public Expression asConstantString()