Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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. |
Methods inherited from class | Name |
---|---|
class DefaultGroovyMethodsSupport |
cloneSimilarCollection, cloneSimilarMap, closeQuietly, closeWithWarning, createSimilarArray, createSimilarCollection, createSimilarCollection, createSimilarCollection, createSimilarList, createSimilarMap, createSimilarOrDefaultCollection, createSimilarSet, normaliseIndex, sameType, subListBorders, subListBorders |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
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