org.erights.e.elib.tables
Class EmptyTwine

java.lang.Object
  |
  +--org.erights.e.elib.tables.EList
        |
        +--org.erights.e.elib.tables.ConstList
              |
              +--org.erights.e.elib.tables.Twine
                    |
                    +--org.erights.e.elib.tables.EmptyTwine
All Implemented Interfaces:
DeepPassByCopy, EPrintable, Guard, Iteratable, Marker, PassByConstruction, Persistent, Selfless, Serializable, SlotGuard, ValueGuard

public class EmptyTwine
extends Twine

Untamed: The canonical empty Twine.

The EmptyTwine is always bare.

Author:
Mark S. Miller
See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
static Twine THE_ONE
          Enabled: The canonical instance
private static Object[] TheSpreadUncall
           
 
Fields inherited from class org.erights.e.elib.tables.Twine
 
Fields inherited from class org.erights.e.elib.tables.ConstList
EmptyList
 
Fields inherited from interface org.erights.e.elib.serial.DeepPassByCopy
HONORARY, HONORED_NAMES
 
Fields inherited from interface org.erights.e.elib.serial.Persistent
HONORARY, HONORED_NAMES
 
Constructor Summary
private EmptyTwine()
           
 
Method Summary
 Object[] __optUncall()
          Enabled: Bare Twine is atomic (representable by a literal expression), and therefore, even though it's transparent, returns null.
 void __printOn(TextWriter out)
          Enabled:
 String bare()
          Enabled:
 char charAt(int index)
          Enabled:
 SourceSpan getOptSpan()
          Enabled:
 ConstList getParts()
          Enabled:
 Object[] getSpreadUncall()
          Enabled: '__makeTwine fromString("")'
(package private)  Twine infectOneToOne(String str)
           
 boolean isBare()
          Enabled:
 ConstList run(int start, int bound)
          Enabled:
 int size()
          Enabled:
 
Methods inherited from class org.erights.e.elib.tables.Twine
add, asFrom, asFrom, canonical, compareTo, compareToIgnoreCase, endsWith, equalsIgnoreCase, fromChars, fromParts, fromString, fromString, get, getBytes, getBytes, getPartAt, getSourceMap, GetTwineMaker, indexOf, indexOf, infect, infect, lastIndexOf, lastIndexOf, lastStartOf, multiply, quote, replaceAll, rjoin, run, split, startOf, startsWith, startsWith, toLowerCase, toString, toUpperCase, trim, valueType
 
Methods inherited from class org.erights.e.elib.tables.ConstList
accepts, and, butNot, coerce, coerce, compareTo, fromArray, fromArray, get, GetMaker, getName, makeSlot, makeSlot, match, not, or, readOnly, snapshot, xor
 
Methods inherited from class org.erights.e.elib.tables.EList
asKeys, asMap, asSet, contains, diverge, diverge, getArray, getArray, getArray, includes, indexOf1, indexOf1, iterate, last, lastIndexOf1, lastIndexOf1, lastStartOf, printOn, sort, sort, startOf, with, with
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID

THE_ONE

public static final Twine THE_ONE
Enabled: The canonical instance


TheSpreadUncall

private static final Object[] TheSpreadUncall
Constructor Detail

EmptyTwine

private EmptyTwine()
Method Detail

getSpreadUncall

public Object[] getSpreadUncall()
Enabled: '__makeTwine fromString("")'


__optUncall

public Object[] __optUncall()
Enabled: Bare Twine is atomic (representable by a literal expression), and therefore, even though it's transparent, returns null.

Overrides:
__optUncall in class ConstList

charAt

public char charAt(int index)
            throws IndexOutOfBoundsException
Enabled:

Specified by:
charAt in class Twine
IndexOutOfBoundsException
See Also:
String.charAt(int)

size

public int size()
Enabled:

Specified by:
size in class EList

bare

public String bare()
Enabled:

Specified by:
bare in class Twine

isBare

public boolean isBare()
Enabled:

Specified by:
isBare in class Twine

run

public ConstList run(int start,
                     int bound)
Enabled:

Specified by:
run in class Twine

getParts

public ConstList getParts()
Enabled:

Specified by:
getParts in class Twine

getOptSpan

public SourceSpan getOptSpan()
Enabled:

Specified by:
getOptSpan in class Twine

infectOneToOne

Twine infectOneToOne(String str)
Specified by:
infectOneToOne in class Twine

__printOn

public void __printOn(TextWriter out)
               throws IOException
Enabled:

Specified by:
__printOn in interface EPrintable
Overrides:
__printOn in class ConstList
IOException


comments?