org.capml.quasi
Class QuasiContentList

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

Deprecated. Use Term trees instead.

public class QuasiContentList
extends QuasiContent

Untamed: Represents a list of QuasiContents, none of which are themselves actually a QuasiContentList, but which may nevertheless represent a list of Nodes.

When matching a QuasiContentList against a ContentList, we could get fancy and do all sorts of backtracking. However, for Elements for now we choose to define a simple rule: All but the last QuasiContent in the QuasiContentList has to match pairwise with their corresponding Node. The last QuasiContent is then matched against the list of remaining Nodes.

Unfortunately, Text cannot be handled so simply. Nevertheless, since our only need right now is the compiler, we XXX ignore this issue for now.

Author:
Mark S. Miller
See Also:
Serialized Form

Field Summary
private  ConstList myQuasis
          Deprecated.  
static StaticMaker QuasiContentListMaker
          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
QuasiContentList(ConstList quasis)
          Deprecated. Enabled:
 
Method Summary
 Object[] getSpreadUncall()
          Deprecated. Enabled: Uses 'QuasiContentListMaker(myQuasis)'
 boolean matchBind(ConstList args, Object specimen, FlexList bindings)
          Deprecated. Enabled:
 void prettyPrintOn(TextWriter out)
          Deprecated. Enabled: I just pretty print my quasis in order
 Object substitute(Object[] args)
          Deprecated. Enabled: Appends together the substitutions of my quasis.
 
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. 

QuasiContentListMaker

public static final StaticMaker QuasiContentListMaker
Deprecated. 
Enabled:


myQuasis

private final ConstList myQuasis
Deprecated. 
Constructor Detail

QuasiContentList

public QuasiContentList(ConstList quasis)
Deprecated. 
Enabled:

Method Detail

getSpreadUncall

public Object[] getSpreadUncall()
Deprecated. 
Enabled: Uses 'QuasiContentListMaker(myQuasis)'


substitute

public Object substitute(Object[] args)
Deprecated. 
Enabled: Appends together the substitutions of my quasis.

Should merge adjacent Texts, but XXX doesn't do so yet.

Specified by:
substitute in class QuasiContent

matchBind

public boolean matchBind(ConstList args,
                         Object specimen,
                         FlexList bindings)
Deprecated. 
Enabled:

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

prettyPrintOn

public void prettyPrintOn(TextWriter out)
                   throws IOException
Deprecated. 
Enabled: I just pretty print my quasis in order

Specified by:
prettyPrintOn in class QuasiContent
IOException


comments?