|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.capml.quasi.QuasiContent
|
+--org.capml.quasi.QuasiElement
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.
| 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 |
static final long serialVersionUID
public static final StaticMaker QuasiElementMaker
private final Object myTagName
private final QuasiContent myChildren
| Constructor Detail |
public QuasiElement(Object tagName,
QuasiContent children)
| Method Detail |
public Object[] getSpreadUncall()
public Object substitute(Object[] args)
substitute in class QuasiContent
public boolean matchBind(ConstList args,
Object specimen,
FlexList bindings)
matchBind in interface MatchMakermatchBind in class QuasiContent
public void prettyPrintOn(TextWriter out)
throws IOException
prettyPrintOn in class QuasiContentIOException
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||