|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSHOP2.CompileTimeObject
JSHOP2.LogicalExpression
JSHOP2.LogicalExpressionNegation
public class LogicalExpressionNegation
Each negative term in a logical expression at compile time is represented as an instance of this class.
Field Summary | |
---|---|
private LogicalExpression |
le
The logical expression to be negated. |
Fields inherited from class JSHOP2.CompileTimeObject |
---|
endl |
Constructor Summary | |
---|---|
LogicalExpressionNegation(LogicalExpression leIn)
To initialize this negative logical expression. |
Method Summary | |
---|---|
java.lang.String |
getInitCode()
This function produces Java code that implements the class any object of which can be used at run time to represent the logical expression this object is negating. |
protected void |
propagateVarCount(int varCount)
To propagate the variable count to the logical expression the negative of which this object represents. |
java.lang.String |
toCode()
This function produces the Java code to create a PreconditionNegation object that represents this negative
logical expression at run time. |
Methods inherited from class JSHOP2.LogicalExpression |
---|
getClassCnt, getVarCount, setVarCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private LogicalExpression le
Constructor Detail |
---|
public LogicalExpressionNegation(LogicalExpression leIn)
leIn
- the logical expression to be negated.Method Detail |
---|
public java.lang.String getInitCode()
getInitCode
in class LogicalExpression
String
.protected void propagateVarCount(int varCount)
propagateVarCount
in class LogicalExpression
varCount
- the number of variables for this logical expression.public java.lang.String toCode()
PreconditionNegation
object that represents this negative
logical expression at run time.
toCode
in class CompileTimeObject
String
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |