JavaScript is disabled on your browser.
Package: groovy.lang

[Java] Class GString

  • All Implemented Interfaces and Traits:
    Buildable, Comparable, CharSequence, Writable, Serializable

    public abstract class GString
    extends GroovyObjectSupport
    implements Buildable, Comparable, CharSequence, Writable, 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 :)

    • Field Detail

      • public static final GString EMPTY

        A GString containing a single empty String and no values.

      • public static final Object[] EMPTY_OBJECT_ARRAY

      • public static final String[] EMPTY_STRING_ARRAY

    • Constructor Detail

      • public GString(Object values)

      • public GString(Object[] values)

Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /