org.capml.quasi
Class QuasiElement

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

Deprecated. Use Term trees instead.

public class QuasiElement
extends QuasiContent

Untamed: Represents an Element in a quasi-literal XML tree.

A Minimal-XML Element has only a tagName and children. The children are a list of Nodes, which we define as a ContentList, which we define as a kind of Content (see the QuasiContent class comment). Therefore, since the same QuasiElement must match against Elements with different numbers of children, we use a QuasiContent to represent the children of a QuasiElement.

The tagName is either all hole or all literal. If it's literal, it must be a well formed tagName identifier String (not checked). If it's a hole, the corresponding arg or specimen must be such an identifier.

Author:
Mark S. Miller
See Also:
Serialized Form

Field Summary
private  QuasiContent myChildren
          Deprecated.  
private  Object myTagName
          Deprecated.  
static StaticMaker QuasiElementMaker
          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
QuasiElement(Object tagName, QuasiContent children)
          Deprecated. Enabled: @param tagName If it's a String then this is the literal tag name.
 
Method Summary
 Object[] getSpreadUncall()
          Deprecated. Enabled: Uses 'QuasiElementMaker(myTagName, myChildren)'
 boolean matchBind(ConstList args, Object specimen, FlexList bindings)
          Deprecated. Enabled:
 void prettyPrintOn(TextWriter out)
          Deprecated. Enabled: If the tag is a hole, then the end tag prints as "</>"
 Object substitute(Object[] args)
          Deprecated. Enabled: Fill in all my $-holes from args, and return the resulting Element.
 
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. 

QuasiElementMaker

public static final StaticMaker QuasiElementMaker
Deprecated. 
Enabled:


myTagName

private final Object myTagName
Deprecated. 

myChildren

private final QuasiContent myChildren
Deprecated. 
Constructor Detail

QuasiElement

public QuasiElement(Object tagName,
                    QuasiContent children)
Deprecated. 
Enabled: @param tagName If it's a String then this is the literal tag name. If it's a non-negative Integer, then it's a $-hole with that index. If it's a negative Integer, then it's a @-hole whose 1's complement (~) is the index.

Method Detail

getSpreadUncall

public Object[] getSpreadUncall()
Deprecated. 
Enabled: Uses 'QuasiElementMaker(myTagName, myChildren)'


substitute

public Object substitute(Object[] args)
Deprecated. 
Enabled: Fill in all my $-holes from args, and return the resulting Element.

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: If the tag is a hole, then the end tag prints as "</>"

Specified by:
prettyPrintOn in class QuasiContent
IOException


comments?