@Deprecated public class PluginDefaultGroovyMethods extends DefaultGroovyMethodsSupport
This class defines new Java 5 specific groovy methods which extend the normal JDK classes inside the Groovy environment. Static methods are used with the first parameter the destination class.
Type Params | Return Type | Name and description |
---|---|---|
|
static StringBuilder |
leftShift(StringBuilder self, Object value) Overloads the left shift operator to provide an easy way to append multiple objects as string representations to a StringBuilder. |
|
static Object |
next(Enum self) This method is called by the ++ operator for enums. |
|
static String |
plus(StringBuilder self, String value) Appends a String to this StringBuilder. |
|
static Object |
previous(Enum self) This method is called by the -- operator for enums. |
|
static void |
putAt(StringBuilder self, IntRange range, Object value) Support the range subscript operator for StringBuilder. |
|
static void |
putAt(StringBuilder self, EmptyRange range, Object value) Support the range subscript operator for StringBuilder. |
|
static int |
size(StringBuilder builder) Standard Groovy size() method for StringBuilders. |
Overloads the left shift operator to provide an easy way to append multiple objects as string representations to a StringBuilder.
self
- a StringBuildervalue
- a value to appendThis method is called by the ++ operator for enums. It will invoke Groovy's default next behaviour for enums do not have their own next method.
self
- an EnumAppends a String to this StringBuilder.
self
- a StringBuildervalue
- a StringThis method is called by the -- operator for enums. It will invoke Groovy's default previous behaviour for enums that do not have their own previous method.
self
- an EnumSupport the range subscript operator for StringBuilder. Index values are treated as characters within the builder.
self
- a StringBuilderrange
- a Rangevalue
- the object that's toString() will be insertedSupport the range subscript operator for StringBuilder.
self
- a StringBuilderrange
- a Rangevalue
- the object that's toString() will be insertedStandard Groovy size() method for StringBuilders.
builder
- a StringBuilder