|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hava.engine.HEngine
public class HEngine
Public API for the Hava calculator.
Constructor Summary | |
---|---|
HEngine()
Creates a new engine having no default import address. |
|
HEngine(java.lang.String address)
Creates a new engine having the given default import address. |
Method Summary | |
---|---|
void |
abort()
Causes run to stop calculating and return. |
HReference |
createReference(java.lang.String identifier)
Creates a reference to a simple variable, from which its value may be obtained. |
HReference |
createReference(java.lang.String identifier,
HValue[] a)
Creates a reference to an indexed variable, from which its value may be obtained. |
HValue |
createStructValue(java.lang.String identifier,
HValue[] a)
Creates an HValue of type structure (or null, if the given identifier is not defined as a structure). |
HValue |
createTokenValue(java.lang.String identifier)
Creates an HValue of type token (or null, if the given identifier is not defined as a token) |
void |
generateReport(java.io.Writer reportWriter)
Generates a report, using the default generator. |
int |
getValueCount()
Obtains the number of calculated values (for use by progress bar). |
java.util.List<HReference> |
getVariableReferenceSet()
Returns the list of non-private variable references for which values have been calculated (for use by custom report generator). |
void |
load(java.io.Reader sourceReader)
Loads the given Hava source. |
void |
load(java.lang.String source)
Loads the given Hava source. |
void |
registerFunction(HFunction f)
Extend Hava to recognize a function written in Java. |
void |
registerIterator(HIterator t)
Extend Hava to recognize am iterator written in Java. |
void |
reset()
Clears all definitions and values from the engine, while retaining the current default import address. |
void |
reset(java.lang.String address)
Clears all definitions and values from the engine, and sets a new default import address. |
void |
run()
Evaluates all non-indexed variables of the current Hava program. |
void |
run(java.io.Writer traceWriter)
Evaluates all non-indexed variables of the current Hava program, and generates a trace. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HEngine()
public HEngine(java.lang.String address)
Method Detail |
---|
public void abort()
public HReference createReference(java.lang.String identifier)
public HReference createReference(java.lang.String identifier, HValue[] a)
public HValue createStructValue(java.lang.String identifier, HValue[] a)
public HValue createTokenValue(java.lang.String identifier)
public void generateReport(java.io.Writer reportWriter) throws java.io.IOException
java.io.IOException
public int getValueCount()
public java.util.List<HReference> getVariableReferenceSet()
public void load(java.io.Reader sourceReader) throws HException, java.io.IOException
HException
java.io.IOException
public void load(java.lang.String source) throws HException
HException
public void registerFunction(HFunction f)
public void registerIterator(HIterator t)
public void reset()
public void reset(java.lang.String address)
public void run() throws HException
HException
public void run(java.io.Writer traceWriter) throws HException, java.io.IOException
HException
java.io.IOException
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |