public abstract class TrivialVCCollector<T,B> extends AbstractVCCollector<T,B> implements UnparsedParaVisitor<Pred>, NarrParaVisitor<Pred>, TypeVisitor<Pred>, AnnVisitor<Pred>, StrokeVisitor<Pred>, ZStrokeListVisitor<Pred>, OptempParaVisitor<Pred>
| Constructor and Description |
|---|
TrivialVCCollector(Factory factory)
Creates a new instance of TrivialVCCollector
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends Para> |
addedPara()
Any added paragraph during VC generation with an associated index for ease of
insertion in derived Z sections
|
protected Pred |
calculateVC(Para term) |
VC<Pred> |
createVC(long vcId,
Para term,
VCType type,
Pred vc)
Given a paragraph and a VC, creates the underlying VC object.
|
protected Pred |
truePred()
Creates a TruePred (i.e.
|
Pred |
visitAnn(Ann term) |
Pred |
visitNarrPara(NarrPara term) |
Pred |
visitOptempPara(OptempPara term) |
Pred |
visitStroke(Stroke term) |
Pred |
visitTerm(net.sourceforge.czt.base.ast.Term term)
For terms in general, just assume nothing is known about them,
hence their VC is the worst possible (i.e.
|
Pred |
visitType(Type term) |
Pred |
visitUnparsedPara(UnparsedPara term) |
Pred |
visitZStrokeList(ZStrokeList term) |
afterCalculateVC, beforeCalculateVC, calculateVC, getDefTable, getDialect, getFactory, getLogger, getVCCount, getVCGContext, getVCNameFactory, getVCType, getZFactory, resetDefTable, resetVCCount, setVCGContext, setVCNameFactory, stepVCCounterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransformer, visitpublic TrivialVCCollector(Factory factory)
factory - protected Pred truePred()
protected Pred calculateVC(Para term) throws VCCollectionException
calculateVC in class AbstractVCCollector<T,B>VCCollectionExceptionpublic VC<Pred> createVC(long vcId, Para term, VCType type, Pred vc) throws VCCollectionException
VCCollectorcreateVC in interface VCCollector<T,B>VCCollectionExceptionpublic Pred visitTerm(net.sourceforge.czt.base.ast.Term term)
visitTerm in interface net.sourceforge.czt.base.visitor.TermVisitor<Pred>visitTerm in class AbstractVCCollector<T,B>term - public Pred visitOptempPara(OptempPara term)
visitOptempPara in interface OptempParaVisitor<Pred>public Pred visitUnparsedPara(UnparsedPara term)
visitUnparsedPara in interface UnparsedParaVisitor<Pred>public Pred visitNarrPara(NarrPara term)
visitNarrPara in interface NarrParaVisitor<Pred>public Pred visitType(Type term)
visitType in interface TypeVisitor<Pred>public Pred visitAnn(Ann term)
visitAnn in interface AnnVisitor<Pred>public Pred visitStroke(Stroke term)
visitStroke in interface StrokeVisitor<Pred>public Pred visitZStrokeList(ZStrokeList term)
visitZStrokeList in interface ZStrokeListVisitor<Pred>public List<? extends Para> addedPara()
VCCollectoraddedPara in interface VCCollector<T,B>Copyright © 2003–2016 Community Z Tools Project. All rights reserved.