|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.monad.homerun.rule.RuleTrace
public class RuleTrace
RuleTrace is a structure holding detailed rule validation or execution trace data. Implemented as a simple list of trace records
Field Summary | |
---|---|
static int |
ACT_ONLY
|
static int |
ACT_TYPE
|
static int |
COND_ACT
|
static int |
COND_ONLY
|
static int |
COND_TYPE
|
static int |
INTERACTIVE_MODE
|
static int |
RECORD_MODE
|
static int |
RULE_TYPE
|
Constructor Summary | |
---|---|
RuleTrace()
|
|
RuleTrace(boolean validation,
int scope)
|
|
RuleTrace(java.lang.String mode)
|
Method Summary | |
---|---|
int |
addSubTrace(RuleTrace subTrace)
|
int |
getClause()
|
java.lang.String |
getDesc()
Returns the text description of the current trace record |
int |
getMode()
|
boolean |
getResult()
Returns the top-level result of the trace |
int |
getScope()
|
int |
getStatement()
|
RuleTrace |
getSubTrace(int index)
|
int |
getTerm()
|
java.lang.String |
getTermName()
|
int |
getType()
|
boolean |
hasActionScope()
|
boolean |
hasConditionScope()
|
boolean |
hasNext()
Returns whether there are more trace records |
boolean |
isValidation()
Is the trace a validation or execution trace? |
void |
next()
Advances the record pointer in the trace |
void |
rewind()
Prepares the trace for reading |
void |
setClause(int clause)
|
void |
setDesc(java.lang.String desc)
Sets the current record description |
void |
setMode(int mode)
|
void |
setResult(boolean result)
Sets the top-level trace result |
void |
setStatement(int stmt)
|
void |
setTerm(int term)
|
void |
setTermName(java.lang.String name)
|
void |
setType(int type)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COND_ONLY
public static final int ACT_ONLY
public static final int COND_ACT
public static final int COND_TYPE
public static final int ACT_TYPE
public static final int RULE_TYPE
public static final int RECORD_MODE
public static final int INTERACTIVE_MODE
Constructor Detail |
---|
public RuleTrace()
public RuleTrace(java.lang.String mode)
public RuleTrace(boolean validation, int scope)
Method Detail |
---|
public void rewind()
Trace
rewind
in interface Trace
public boolean hasNext()
Trace
hasNext
in interface Trace
public void next()
Trace
next
in interface Trace
public boolean isValidation()
Trace
isValidation
in interface Trace
public boolean getResult()
Trace
getResult
in interface Trace
public RuleTrace getSubTrace(int index)
public int addSubTrace(RuleTrace subTrace)
public int getScope()
public boolean hasConditionScope()
public boolean hasActionScope()
public void setResult(boolean result)
Trace
setResult
in interface Trace
result
- the trace resultpublic int getMode()
public void setMode(int mode)
public int getClause()
public int getStatement()
public int getType()
public int getTerm()
public java.lang.String getTermName()
public java.lang.String getDesc()
Trace
getDesc
in interface Trace
public void setClause(int clause)
public void setStatement(int stmt)
public void setType(int type)
public void setTerm(int term)
public void setTermName(java.lang.String name)
public void setDesc(java.lang.String desc)
Trace
setDesc
in interface Trace
desc
- the current description to write
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |