public class PluginDefaultGroovyMethods extends DefaultGroovyMethodsSupport
Constructor and Description |
---|
PluginDefaultGroovyMethods() |
Modifier and Type | Method 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,
EmptyRange range,
Object value)
Support the range subscript operator for StringBuilder.
|
static void |
putAt(StringBuilder self,
IntRange range,
Object value)
Support the range subscript operator for StringBuilder.
|
static int |
size(StringBuilder builder)
Standard Groovy size() method for StringBuilders.
|
cloneSimilarCollection, cloneSimilarMap, closeQuietly, closeWithWarning, createSimilarArray, createSimilarCollection, createSimilarCollection, createSimilarCollection, createSimilarList, createSimilarMap, createSimilarOrDefaultCollection, createSimilarQueue, createSimilarSet, normaliseIndex, sameType, subListBorders, subListBorders
public static Object next(Enum self)
self
- an Enumpublic static Object previous(Enum self)
self
- an Enumpublic static int size(StringBuilder builder)
builder
- a StringBuilderpublic static StringBuilder leftShift(StringBuilder self, Object value)
self
- a StringBuildervalue
- a value to appendpublic static void putAt(StringBuilder self, IntRange range, Object value)
self
- a StringBuilderrange
- a Rangevalue
- the object that's toString() will be insertedpublic static void putAt(StringBuilder self, EmptyRange range, Object value)
self
- a StringBuilderrange
- a Rangevalue
- the object that's toString() will be insertedpublic static String plus(StringBuilder self, String value)
self
- a StringBuildervalue
- a String