public class PluginDefaultGroovyMethods extends DefaultGroovyMethodsSupport
DefaultGroovyMethodsSupport.RangeInfo
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 (Only works with JDK1.5 or later).
|
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 (Only works with JDK1.5 or later).
|
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 (Only works with JDK1.5 or later).
|
static void |
putAt(StringBuilder self,
IntRange range,
Object value)
Support the range subscript operator for StringBuilder (Only works with JDK1.5 or later).
|
static int |
size(StringBuilder builder)
Standard Groovy size() method for StringBuilders
(Only works with JDK1.5 or later).
|
cloneSimilarCollection, cloneSimilarMap, closeQuietly, closeWithWarning, createSimilarArray, createSimilarCollection, createSimilarCollection, createSimilarList, createSimilarMap, createSimilarOrDefaultCollection, 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