org.capml.quasi
Class QuasiText

java.lang.Object
  |
  +--org.capml.quasi.QuasiContent
        |
        +--org.capml.quasi.QuasiText
All Implemented Interfaces:
Marker, MatchMaker, PassByConstruction, Persistent, Selfless, Serializable

Deprecated. Use Term trees instead.

public class QuasiText
extends QuasiContent

Untamed: Represents contiguous literal text with a quasi-literal XML tree.

As a ValueMaker, it simply evaluates to the corresponding Text object. As a MatchMaker, it checks that the specimen is the corresponding Text.

Author:
Mark S. Miller
See Also:
Serialized Form

Field Summary
private  String myData
          Deprecated.  
static StaticMaker QuasiTextMaker
          Deprecated. Enabled:
(package private) static long serialVersionUID
          Deprecated.  
 
Fields inherited from interface org.erights.e.elib.serial.Persistent
HONORARY, HONORED_NAMES
 
Fields inherited from interface org.erights.e.elib.tables.Selfless
HONORARY, HONORED_NAMES
 
Fields inherited from interface org.erights.e.elib.serial.PassByConstruction
HONORARY, HONORED_NAMES
 
Constructor Summary
QuasiText(String data)
          Deprecated. Enabled:
 
Method Summary
 Object[] getSpreadUncall()
          Deprecated. Enabled: Uses 'QuasiTextMaker(myIndex)'
 boolean matchBind(ConstList args, Object specimen, FlexList bindings)
          Deprecated. Enabled: Since I contain no holes, args and bindings are ignored, and I simply see if specimen is content representing the same Text.
 void prettyPrintOn(TextWriter out)
          Deprecated. Enabled:
 Object substitute(Object[] args)
          Deprecated. Enabled: Since a QuasiText contains no holes, args is ignored and it simply returns the corresponding Text.
 
Methods inherited from class org.capml.quasi.QuasiContent
__printOn, bind, matchBind, optTheOne, toContent, toContentList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
Deprecated. 

QuasiTextMaker

public static final StaticMaker QuasiTextMaker
Deprecated. 
Enabled:


myData

private final String myData
Deprecated. 
Constructor Detail

QuasiText

public QuasiText(String data)
Deprecated. 
Enabled:

Method Detail

getSpreadUncall

public Object[] getSpreadUncall()
Deprecated. 
Enabled: Uses 'QuasiTextMaker(myIndex)'


substitute

public Object substitute(Object[] args)
Deprecated. 
Enabled: Since a QuasiText contains no holes, args is ignored and it simply returns the corresponding Text.

Specified by:
substitute in class QuasiContent

matchBind

public boolean matchBind(ConstList args,
                         Object specimen,
                         FlexList bindings)
Deprecated. 
Enabled: Since I contain no holes, args and bindings are ignored, and I simply see if specimen is content representing the same Text. XXX Open issue: who merges adjacent Text nodes?

Specified by:
matchBind in interface MatchMaker
Specified by:
matchBind in class QuasiContent

prettyPrintOn

public void prettyPrintOn(TextWriter out)
                   throws IOException
Deprecated. 
Enabled:

Specified by:
prettyPrintOn in class QuasiContent
IOException


comments?