JML

java.lang
Class AbstractStringBuilder

java.lang.Object
  extended byjava.lang.AbstractStringBuilder
All Implemented Interfaces:
Appendable, CharSequence
Direct Known Subclasses:
StringBuffer

abstract class AbstractStringBuilder
extends Object
implements Appendable, CharSequence


Field Summary
(package private)  int count
           
(package private) static int[] sizeTable
           
(package private)  char[] value
           
 
Constructor Summary
(package private) AbstractStringBuilder()
           
(package private) AbstractStringBuilder(int)
           
 
Method Summary
 AbstractStringBuilder append(boolean)
           
 AbstractStringBuilder append(char)
           
 Appendable append(char)
           
 AbstractStringBuilder append(char[])
           
 AbstractStringBuilder append(char[], int, int)
           
 AbstractStringBuilder append(double)
           
 AbstractStringBuilder append(float)
           
 AbstractStringBuilder append(int)
           
 AbstractStringBuilder append(CharSequence)
           
 Appendable append(CharSequence)
           
 AbstractStringBuilder append(CharSequence, int, int)
           
 Appendable append(CharSequence, int, int)
           
 AbstractStringBuilder append(Object)
           
 AbstractStringBuilder append(String)
           
 AbstractStringBuilder append(StringBuffer)
           
 AbstractStringBuilder append(long)
           
 AbstractStringBuilder appendCodePoint(int)
           
 int capacity()
           
 char charAt(int)
           
 int codePointAt(int)
           
 int codePointBefore(int)
           
 int codePointCount(int, int)
           
 AbstractStringBuilder delete(int, int)
           
 AbstractStringBuilder deleteCharAt(int)
           
 void ensureCapacity(int)
           
(package private)  void expandCapacity(int)
           
 void getChars(int, int, char[], int)
           
(package private)  char[] getValue()
           
 int indexOf(String)
           
 int indexOf(String, int)
           
 AbstractStringBuilder insert(int, boolean)
           
 AbstractStringBuilder insert(int, char)
           
 AbstractStringBuilder insert(int, char[])
           
 AbstractStringBuilder insert(int, char[], int, int)
           
 AbstractStringBuilder insert(int, double)
           
 AbstractStringBuilder insert(int, float)
           
 AbstractStringBuilder insert(int, int)
           
 AbstractStringBuilder insert(int, CharSequence)
           
 AbstractStringBuilder insert(int, CharSequence, int, int)
           
 AbstractStringBuilder insert(int, Object)
           
 AbstractStringBuilder insert(int, String)
           
 AbstractStringBuilder insert(int, long)
           
 int lastIndexOf(String)
           
 int lastIndexOf(String, int)
           
 int length()
           
 int offsetByCodePoints(int, int)
           
 AbstractStringBuilder replace(int, int, String)
           
 AbstractStringBuilder reverse()
           
 void setCharAt(int, char)
           
 void setLength(int)
           
(package private) static int stringSizeOfInt(int)
           
(package private) static int stringSizeOfLong(long)
           
 CharSequence subSequence(int, int)
           
 String substring(int)
           
 String substring(int, int)
           
abstract  String toString()
           
 void trimToSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.CharSequence
equals, hashCode
 

Field Detail

count

int count

value

char[] value

sizeTable

static final int[] sizeTable
Constructor Detail

AbstractStringBuilder

AbstractStringBuilder()

AbstractStringBuilder

AbstractStringBuilder(int)
Method Detail

length

public int length()
Specified by:
length in interface CharSequence

capacity

public int capacity()

ensureCapacity

public void ensureCapacity(int)

expandCapacity

void expandCapacity(int)

trimToSize

public void trimToSize()

setLength

public void setLength(int)

charAt

public char charAt(int)
Specified by:
charAt in interface CharSequence

codePointAt

public int codePointAt(int)

codePointBefore

public int codePointBefore(int)

codePointCount

public int codePointCount(int,
                          int)

offsetByCodePoints

public int offsetByCodePoints(int,
                              int)

getChars

public void getChars(int,
                     int,
                     char[],
                     int)

setCharAt

public void setCharAt(int,
                      char)

append

public AbstractStringBuilder append(Object)

append

public AbstractStringBuilder append(String)

append

public AbstractStringBuilder append(StringBuffer)

append

public AbstractStringBuilder append(CharSequence)
Specified by:
append in interface Appendable

append

public AbstractStringBuilder append(CharSequence,
                                    int,
                                    int)
Specified by:
append in interface Appendable

append

public AbstractStringBuilder append(char[])

append

public AbstractStringBuilder append(char[],
                                    int,
                                    int)

append

public AbstractStringBuilder append(boolean)

append

public AbstractStringBuilder append(char)
Specified by:
append in interface Appendable

append

public AbstractStringBuilder append(int)

stringSizeOfInt

static int stringSizeOfInt(int)

append

public AbstractStringBuilder append(long)

stringSizeOfLong

static int stringSizeOfLong(long)

append

public AbstractStringBuilder append(float)

append

public AbstractStringBuilder append(double)

delete

public AbstractStringBuilder delete(int,
                                    int)

appendCodePoint

public AbstractStringBuilder appendCodePoint(int)

deleteCharAt

public AbstractStringBuilder deleteCharAt(int)

replace

public AbstractStringBuilder replace(int,
                                     int,
                                     String)

substring

public String substring(int)

subSequence

public CharSequence subSequence(int,
                                int)
Specified by:
subSequence in interface CharSequence

substring

public String substring(int,
                        int)

insert

public AbstractStringBuilder insert(int,
                                    char[],
                                    int,
                                    int)

insert

public AbstractStringBuilder insert(int,
                                    Object)

insert

public AbstractStringBuilder insert(int,
                                    String)

insert

public AbstractStringBuilder insert(int,
                                    char[])

insert

public AbstractStringBuilder insert(int,
                                    CharSequence)

insert

public AbstractStringBuilder insert(int,
                                    CharSequence,
                                    int,
                                    int)

insert

public AbstractStringBuilder insert(int,
                                    boolean)

insert

public AbstractStringBuilder insert(int,
                                    char)

insert

public AbstractStringBuilder insert(int,
                                    int)

insert

public AbstractStringBuilder insert(int,
                                    long)

insert

public AbstractStringBuilder insert(int,
                                    float)

insert

public AbstractStringBuilder insert(int,
                                    double)

indexOf

public int indexOf(String)

indexOf

public int indexOf(String,
                   int)

lastIndexOf

public int lastIndexOf(String)

lastIndexOf

public int lastIndexOf(String,
                       int)

reverse

public AbstractStringBuilder reverse()

toString

public abstract String toString()
Specified by:
toString in interface CharSequence
Overrides:
toString in class Object

getValue

final char[] getValue()

append

public volatile Appendable append(char)
                           throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public volatile Appendable append(CharSequence,
                                  int,
                                  int)
                           throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public volatile Appendable append(CharSequence)
                           throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.