|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.millscript.commons.alert.Alert
org.millscript.millscript.functions.FunctionAlert
public class FunctionAlert
This class implements an Alert to indicate a problem executing a function.
| Constructor Summary | |
|---|---|
FunctionAlert(java.lang.String comp,
java.lang.String exp)
Constructs a new function alert with the specified complaint and explanation. |
|
| Method Summary | |
|---|---|
FunctionAlert |
culpritArg(int argNumber,
java.lang.Object arg)
Adds a culprit for an argument to a function, as specified by the supplied argument position and value. |
FunctionAlert |
culpritArgs(Function f,
Machine mc,
int nargs)
Gathers the specified function and number of arguments as culprits of this alert. |
FunctionAlert |
culpritUArgs(Function f,
Machine mc,
int nargs,
int unargs)
Gathers the specified function, number of arguments and update arguments as culprits of this alert. |
static FunctionAlert |
eval(java.lang.String comp,
java.lang.String exp)
Convenience method for constructing a new alert with the specified complaint and explanation in the evaluation phase. |
| Methods inherited from class org.millscript.commons.alert.Alert |
|---|
culprit, culprit, culprit, culprit, culprit, culprit, culprit, culprit, decorate, decorate, escape, getComplaint, getCulprits, getMessage, getParentAlert, getParentThrowable, getPhase, getReason, isMishap, mishap, origin, remishap, report, setParentAlert, setParentThrowable, setPhase, toString |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionAlert(java.lang.String comp,
java.lang.String exp)
comp - the complaintexp - the complaints explanation| Method Detail |
|---|
public FunctionAlert culpritArg(int argNumber,
java.lang.Object arg)
argNumber - the arguments positionarg - the arguments value
public FunctionAlert culpritArgs(Function f,
Machine mc,
int nargs)
f - the culprit functionmc - the machine to gather culprit arguments fromnargs - the number of culprit arguments
public FunctionAlert culpritUArgs(Function f,
Machine mc,
int nargs,
int unargs)
f - the culprit functionmc - the machine to gather culprit arguments fromnargs - the number of culprit argumentsunargs - the number of culprit update arguments
public static FunctionAlert eval(java.lang.String comp,
java.lang.String exp)
comp - the complaintexp - the explanation for the complaint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||