|
|||||||||||
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.QuasiContentList
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.
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 |
static final long serialVersionUID
public static final StaticMaker QuasiContentListMaker
private final ConstList myQuasis
Constructor Detail |
public QuasiContentList(ConstList quasis)
Method Detail |
public Object[] getSpreadUncall()
public Object substitute(Object[] args)
Should merge adjacent Texts, but XXX doesn't do so yet.
substitute
in class QuasiContent
public boolean matchBind(ConstList args, Object specimen, FlexList bindings)
matchBind
in interface MatchMaker
matchBind
in class QuasiContent
public void prettyPrintOn(TextWriter out) throws IOException
prettyPrintOn
in class QuasiContent
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |