|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSHOP2.CompileTimeObject
JSHOP2.LogicalExpression
public abstract class LogicalExpression
Each logical expression at compile time is represented as a class derived from this abstract class.
Field Summary | |
---|---|
private static int |
classCnt
The number of times function getClassCnt() is called before. |
private int |
varCount
The number of variables in this logical expression, used to determine the size of bindings when unifiers are calculated. |
Fields inherited from class JSHOP2.CompileTimeObject |
---|
endl |
Constructor Summary | |
---|---|
LogicalExpression()
|
Method Summary | |
---|---|
int |
getClassCnt()
This function returns a unique integer every time called. |
abstract java.lang.String |
getInitCode()
This function produces Java code that initializes some data structures that will be needed to create the precondition object that implements this logical expression at run time. |
int |
getVarCount()
This function returns the number of variables in this logical expression. |
protected abstract void |
propagateVarCount(int varCountIn)
This abstract function is called whenever the number of variables for an object of this class is set. |
void |
setVarCount(int varCountIn)
This function is used to set the number of variables for this logical expression. |
Methods inherited from class JSHOP2.CompileTimeObject |
---|
toCode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static int classCnt
getClassCnt()
is called before.
private int varCount
Constructor Detail |
---|
public LogicalExpression()
Method Detail |
---|
public int getClassCnt()
public abstract java.lang.String getInitCode()
String
.public int getVarCount()
protected abstract void propagateVarCount(int varCountIn)
varCountIn
- the number of variables for this logical expression.public void setVarCount(int varCountIn)
varCountIn
- the number of variables for this logical expression.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |