|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.runtime.DefaultGroovyMethodsSupport org.codehaus.groovy.vmplugin.v5.PluginDefaultGroovyMethods
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.
Method Summary | |
---|---|
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, IntRange 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, EmptyRange 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). |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
public static java.lang.StringBuilder leftShift(java.lang.StringBuilder self, java.lang.Object value)
self
- a StringBuildervalue
- a value to append
public static java.lang.Object next(java.lang.Enum self)
self
- an Enum
public static java.lang.String plus(java.lang.StringBuilder self, java.lang.String value)
self
- a StringBuildervalue
- a String
public static java.lang.Object previous(java.lang.Enum self)
self
- an Enum
public 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 inserted
public 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 inserted
public static int size(java.lang.StringBuilder builder)
builder
- a StringBuilder
Groovy Documentation