|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.AtomicTwine | +--org.erights.e.elib.tables.SimpleTwine
A Twine containing only a non-empty String.
Field Summary | |
(package private) String |
myStr
|
private static long |
serialVersionUID
|
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 | |
(package private) |
SimpleTwine(String str)
|
Method Summary | |
Object[] |
__optUncall()
Bare Twine is atomic (representable by a literal expression), and therefore, even though it's transparent, returns null. |
void |
__printOn(TextWriter out)
Enabled: Prints using E list syntax |
String |
bare()
Enabled: Explicitly gets the String part of the twine. |
char |
charAt(int index)
Enabled: From the E language, this is identical to get/1. |
SourceSpan |
getOptSpan()
Enabled: Gets the sourceSpan part of the twine, if it's there. |
ConstList |
getParts()
Enabled: @return A list of AtomicTwines. |
Object |
getSecretArray()
An array of my characters. |
Object[] |
getSpreadUncall()
'__makeTwine fromString(myStr)' |
(package private) Twine |
infectOneToOne(String str)
|
boolean |
isBare()
Enabled: Is the bare string all the info there is? |
(package private) ConstList |
mergedParts(AtomicTwine other)
|
ConstList |
run(int start,
int bound)
Enabled: Returns a Twine. |
int |
size()
Enabled: How many entries are in the list? |
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 |
private static final long serialVersionUID
final String myStr
Constructor Detail |
SimpleTwine(String str)
Method Detail |
public Object[] getSpreadUncall()
public Object[] __optUncall()
__optUncall
in class ConstList
public boolean isBare()
Twine
isBare
in class Twine
public ConstList run(int start, int bound)
Twine
run
in class Twine
ConstList mergedParts(AtomicTwine other)
mergedParts
in class AtomicTwine
public SourceSpan getOptSpan()
Twine
If this is an AtomicTwine, then, if the SourceSpan is there, it's as accurate as you're going to get. If this is a CompositeTwine, then, if the SourceSpan is there, it describes a span that includes all the individual spans. If a CompositeTwine returns null, there may still be SourceSpans on the atomic parts, but they couldn't all be summarized into one covering span.
getOptSpan
in class Twine
public void __printOn(TextWriter out) throws IOException
ConstList
__printOn
in interface EPrintable
__printOn
in class ConstList
IOException
public char charAt(int index) throws IndexOutOfBoundsException
Twine
charAt
in class Twine
IndexOutOfBoundsException
String.charAt(int)
public int size()
EList
size
in class EList
public String bare()
Twine
When using this call, this call itself will be the top level construct for breaking cycles. XXX where & what do we stabilize?
bare
in class Twine
public ConstList getParts()
Twine
getParts
in class Twine
Twine infectOneToOne(String str)
infectOneToOne
in class Twine
public Object getSecretArray()
getSecretArray
in interface ArrayedList
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |