org.capml.quasi
Class QuasiContentPattHole

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

Deprecated. Use Term trees instead.

public class QuasiContentPattHole
extends QuasiContent

Untamed: Represents a @-hole in Content position in a quasi-literal XML tree.

This @-hole will match against any specimen, and put it in the bindings at the hole's index.

Author:
Mark S. Miller
See Also:
Serialized Form

Field Summary
private  int myIndex
          Deprecated.  
static StaticMaker QuasiContentPattHoleMaker
          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
QuasiContentPattHole(int index)
          Deprecated. Enabled:
 
Method Summary
 Object[] getSpreadUncall()
          Deprecated. Enabled: Uses 'QuasiContentPattHoleMaker(myIndex)'
 boolean matchBind(ConstList args, Object specimen, FlexList bindings)
          Deprecated. Enabled: puts specimen into bindings[myIndex] and succeed.
 void prettyPrintOn(TextWriter out)
          Deprecated. Enabled: Prints as "@{}"
 Object substitute(Object[] args)
          Deprecated. Enabled: If it's got @-holes, it's incomplete as a ValueMaker, so throw IncompleteQuasiException
 
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. 

QuasiContentPattHoleMaker

public static final StaticMaker QuasiContentPattHoleMaker
Deprecated. 
Enabled:


myIndex

private final int myIndex
Deprecated. 
Constructor Detail

QuasiContentPattHole

public QuasiContentPattHole(int index)
Deprecated. 
Enabled:

Method Detail

getSpreadUncall

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


substitute

public Object substitute(Object[] args)
Deprecated. 
Enabled: If it's got @-holes, it's incomplete as a ValueMaker, so throw IncompleteQuasiException

Specified by:
substitute in class QuasiContent

matchBind

public boolean matchBind(ConstList args,
                         Object specimen,
                         FlexList bindings)
Deprecated. 
Enabled: puts specimen into bindings[myIndex] and succeed.

Specimen must be Content or String. The equivalent Content is placed into bindings.

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

prettyPrintOn

public void prettyPrintOn(TextWriter out)
                   throws IOException
Deprecated. 
Enabled: Prints as "@{}"

Specified by:
prettyPrintOn in class QuasiContent
IOException


comments?