R - public abstract class AbstractVCCollector<T,B> extends Object implements VCCollector<T,B>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVCCollector() |
|
AbstractVCCollector(Factory factory)
Creates a new instance of AbstractVCCollector
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterCalculateVC(VC<Pred> vc) |
protected void |
beforeCalculateVC(net.sourceforge.czt.base.ast.Term term,
List<? extends InfoTable> tables) |
protected abstract Pred |
calculateVC(Para term) |
VC<Pred> |
calculateVC(net.sourceforge.czt.base.ast.Term term,
List<? extends InfoTable> tables)
Calculate the verification condition for a given term in the context of
any available information tables.
|
protected DefinitionTable |
getDefTable() |
protected Dialect |
getDialect()
Visits the given term (e.g.,
term.accept(this)). |
protected Factory |
getFactory() |
protected Logger |
getLogger() |
long |
getVCCount() |
VCGContext<T,B> |
getVCGContext() |
VCNameFactory |
getVCNameFactory() |
protected abstract VCType |
getVCType(Pred vc) |
protected Factory |
getZFactory() |
protected void |
resetDefTable() |
void |
resetVCCount() |
protected void |
setVCGContext(VCGContext<T,B> c) |
void |
setVCNameFactory(VCNameFactory vcf) |
protected void |
stepVCCounter() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddedPara, createVC, getTransformer, visitprotected AbstractVCCollector()
public AbstractVCCollector(Factory factory)
factory - public VCGContext<T,B> getVCGContext()
getVCGContext in interface VCCollector<T,B>protected final void setVCGContext(VCGContext<T,B> c)
protected Factory getFactory()
public VCNameFactory getVCNameFactory()
getVCNameFactory in interface VCCollector<T,B>public final void setVCNameFactory(VCNameFactory vcf)
setVCNameFactory in interface VCCollector<T,B>protected Logger getLogger()
protected DefinitionTable getDefTable()
protected void resetDefTable()
protected Factory getZFactory()
public long getVCCount()
getVCCount in interface VCCollector<T,B>public void resetVCCount()
resetVCCount in interface VCCollector<T,B>protected void stepVCCounter()
protected Dialect getDialect()
term.accept(this)).
It also must take care of default results in case of possibly
null terms, as they appear within a properly parsed Z Spec(!)term - term to visitpublic Pred visitTerm(net.sourceforge.czt.base.ast.Term term)
visitTerm in interface net.sourceforge.czt.base.visitor.TermVisitor<Pred>term - protected void beforeCalculateVC(net.sourceforge.czt.base.ast.Term term,
List<? extends InfoTable> tables)
throws VCCollectionException
VCCollectionExceptionprotected void afterCalculateVC(VC<Pred> vc) throws VCCollectionException
VCCollectionExceptionprotected abstract Pred calculateVC(Para term) throws VCCollectionException
VCCollectionExceptionprotected abstract VCType getVCType(Pred vc) throws VCCollectionException
VCCollectionExceptionpublic VC<Pred> calculateVC(net.sourceforge.czt.base.ast.Term term, List<? extends InfoTable> tables) throws VCCollectionException
calculateVC in interface VCCollector<T,B>term - tables - VCCollectionExceptionCopyright © 2003–2016 Community Z Tools Project. All rights reserved.