| java.lang.Object groovy.lang.GroovyObjectSupport groovy.lang.GString
GString | abstract public class GString extends GroovyObjectSupport implements Comparable,CharSequence,Writable,Buildable(Code) | | 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. The lovely name of
this class was suggested by Jules Gosnell and was such a good idea, I
couldn't resist :)
author: James Strachan version: $Revision: 4098 $ |
charAt | public char charAt(int index)(Code) | | |
getValueCount | public int getValueCount()(Code) | | |
hashCode | public int hashCode()(Code) | | |
invokeMethod | public Object invokeMethod(String name, Object args)(Code) | | Overloaded to implement duck typing for Strings
so that any method that can't be evaluated on this
object will be forwarded to the toString() object instead.
|
length | public int length()(Code) | | |
negate | public Pattern negate()(Code) | | Turns a String into a regular expression pattern
the regular expression pattern |
|
|