public abstract class AbstractClause extends java.lang.Object implements Clause
Note that every Clause object is expected to implement either SubClause or TopLevelClause. No default implementations are provided for the methods of these subinterfaces
Also note that it is not necessary to use this class to create your own implementations, it's just a convenience.
The class has no abstract methods, but is declared abstract because it should not be directly instantiated.
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
children
A list of SubClause objects representing
the sub-clauses of this clause.
|
protected boolean |
constant
Value to be returned by isConstant().
|
protected boolean |
defined
Value to be returned by isDefined().
|
Constructor and Description |
---|
AbstractClause() |
Modifier and Type | Method and Description |
---|---|
java.util.List |
getChildren()
Returns an ordered list of this clause's sub-clauses.
|
boolean |
isConstant()
A clause is considered "constant" iff it and its subclauses do not
refer to data values from the dataset being constrained.
|
boolean |
isDefined()
Returns whether or not the clause has a defined value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
printConstraint
protected boolean constant
protected boolean defined
protected java.util.List children
public java.util.List getChildren()
Clause
getChildren
in interface Clause
public boolean isConstant()
Clause
isConstant
in interface Clause
public boolean isDefined()
Clause