public class PluginDefaultGroovyMethods extends DefaultGroovyMethodsSupport
DefaultGroovyMethodsSupport.RangeInfo
Constructor and Description |
---|
PluginDefaultGroovyMethods() |
Modifier and Type | Method and Description |
---|---|
static java.lang.StringBuilder |
leftShift(java.lang.StringBuilder self,
java.lang.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 java.lang.Object |
next(java.lang.Enum self)
This method is called by the ++ operator for enums.
|
static java.lang.String |
plus(java.lang.StringBuilder self,
java.lang.String value)
Appends a String to this StringBuilder (Only works with JDK1.5 or later).
|
static java.lang.Object |
previous(java.lang.Enum self)
This method is called by the -- operator for enums.
|
static void |
putAt(java.lang.StringBuilder self,
EmptyRange range,
java.lang.Object value)
Support the range subscript operator for StringBuilder (Only works with JDK1.5 or later).
|
static void |
putAt(java.lang.StringBuilder self,
IntRange range,
java.lang.Object value)
Support the range subscript operator for StringBuilder (Only works with JDK1.5 or later).
|
static int |
size(java.lang.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 java.lang.Object next(java.lang.Enum self)
self
- an Enumpublic static java.lang.Object previous(java.lang.Enum self)
self
- an Enumpublic static int size(java.lang.StringBuilder builder)
builder
- a StringBuilderpublic static java.lang.StringBuilder leftShift(java.lang.StringBuilder self, java.lang.Object value)
self
- a StringBuildervalue
- a value to appendpublic static void putAt(java.lang.StringBuilder self, IntRange range, java.lang.Object value)
self
- a StringBuilderrange
- a Rangevalue
- the object that's toString() will be insertedpublic static void putAt(java.lang.StringBuilder self, EmptyRange range, java.lang.Object value)
self
- a StringBuilderrange
- a Rangevalue
- the object that's toString() will be insertedpublic static java.lang.String plus(java.lang.StringBuilder self, java.lang.String value)
self
- a StringBuildervalue
- a String