ua.gradsoft.javachecker.trace
Class TrueTraceCondition
java.lang.Object
ua.gradsoft.javachecker.trace.TrueTraceCondition
- All Implemented Interfaces:
- TraceCondition
public class TrueTraceCondition
- extends java.lang.Object
- implements TraceCondition
True trace condition
- Author:
- rssh
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrueTraceCondition
public TrueTraceCondition(JavaTermStatementModel statement,
JavaTypeModel enclosedType)
getExpression
public JavaTermExpressionModel getExpression()
throws TermWareException
- Specified by:
getExpression in interface TraceCondition
- Throws:
TermWareException
getTraceConditionTerm
public Term getTraceConditionTerm()
- Specified by:
getTraceConditionTerm in interface TraceCondition
cloneTraceCondition
public TraceCondition cloneTraceCondition()
- Specified by:
cloneTraceCondition in interface TraceCondition
eval
public TraceConditionResult eval(JavaTraceContext traceContext)
- Description copied from interface:
TraceCondition
- try to eval condition in given context.
- Specified by:
eval in interface TraceCondition
forse
public void forse(JavaTraceContext traceContext)
- Description copied from interface:
TraceCondition
- forse traceContext to be true.
i. e. let we know that this condition is true, then we can deduce some facts
about traceContext and set ther (i.e. in target traceContext) appropriateve variables.
for example, if we know that (a=b) and in traceContext variables for a is
known -- than we can assign a to b.
- Specified by:
forse in interface TraceCondition
simplicify
public TraceCondition simplicify(JavaTraceContext ctx)
- Specified by:
simplicify in interface TraceCondition
invert
public TraceCondition invert()
- Specified by:
invert in interface TraceCondition