Package groovy.lang

Class GString

All Implemented Interfaces:
Buildable, GroovyObject, Writable, Serializable, CharSequence, Comparable
Direct Known Subclasses:
GStringImpl

public abstract class GString
extends GroovyObjectSupport
implements Comparable, CharSequence, Writable, Buildable, Serializable
Represents a String which contains embedded values such as "hello there ${user} how are you?" which can be evaluated lazily. Advanced users can iterate over the text and values to perform special processing, such as for performing SQL operations, the values can be substituted for ? and the actual value objects can be bound to a JDBC statement.

James Strachan: The lovely name of this class was suggested by Jules Gosnell and was such a good idea, I couldn't resist :)

See Also:
Serialized Form