|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.attribute.impl.AttrObject
agg.attribute.impl.ManagedObject
agg.attribute.impl.ChainedObserver
agg.attribute.impl.TupleObject
agg.attribute.impl.ValueTuple
agg.attribute.impl.LoneTuple
agg.attribute.impl.CondTuple
public class CondTuple
Application conditions. Every instance of ContextCore has exactly one instance of this class.
Field Summary | |
---|---|
protected static java.lang.String |
boolHandlerName
Name of the handler for the boolean type. |
protected HandlerType |
boolType
Boolean type. |
protected static java.lang.String |
boolTypeName
Constant for the boolean type name. |
protected AttrHandler |
condHandler
Attribute handler for condition expressions. |
protected int |
condNum
Current condition number, is used to compose unique names within one condition tuple. |
protected static java.lang.String |
falseVal
Constant for the false value. |
protected static java.lang.String |
namePrefix
Constant prefix for the condition entry names. |
protected static java.lang.String |
trueVal
Constant for the true value. |
Fields inherited from class agg.attribute.impl.ValueTuple |
---|
errorMsg, type |
Fields inherited from class agg.attribute.impl.TupleObject |
---|
members, parent |
Fields inherited from class agg.attribute.impl.ChainedObserver |
---|
MAX_SIZE_OF_EVENT_STACK, sizeOfEventStack |
Fields inherited from class agg.attribute.impl.ManagedObject |
---|
manager |
Fields inherited from class agg.attribute.impl.AttrObject |
---|
classHandlerExpr, classObject, classString, initialized |
Fields inherited from interface agg.attribute.AttrConditionTuple |
---|
serialVersionUID |
Fields inherited from interface agg.attribute.impl.AttrMsgCode |
---|
ATTR_DONT_MATCH, BAD_EXPR_TYPE, EXPR_EVAL_ERR, EXPR_MUST_BE_CONST, EXPR_MUST_BE_CONST_OR_VAR, EXPR_PARSE_ERR, EXPR_REQUIRED, MATCH_TARGETS_DIFFER, NAME_DUPLICATION, NO_SUCH_NAME, NO_SUCH_TYPE, OK, RULE_SOURCES_DIFFER, VAR_NOT_DECLARED |
Fields inherited from interface agg.attribute.AttrObserver |
---|
serialVersionUID |
Constructor Summary | |
---|---|
CondTuple(AttrTupleManager manager,
ContextView context,
CondTuple parent)
|
Method Summary | |
---|---|
AttrConditionMember |
addCondition(java.lang.String expr)
Adding of a condition member, returning the member. |
void |
clear()
|
boolean |
compareTo(AttrInstance another)
|
boolean |
contains(java.lang.String expr)
Test, if expr is member of a condition tuple. |
void |
dispose()
Prepare myself for garbage collection. |
java.util.Vector<java.lang.String> |
getAllVariables()
Getting all variable names of conditions. |
CondMember |
getCondMemberAt(int index)
|
java.lang.String |
getFailedConditionAsString()
|
protected java.lang.String |
getNameFor(int index)
|
protected java.lang.String |
getNextName()
|
protected void |
initClass()
|
boolean |
isDefinite()
Test, if all members can yield true or false. |
boolean |
isDefinite(java.lang.String name)
Test, if name can yield true or false. |
boolean |
isEvaluable(VarTuple vars)
|
boolean |
isFalse()
Test, if the tuple contains members which can be evaluated and yield 'false'. |
boolean |
isFalse(java.lang.String name)
Test, if the tuple contains members which can be evaluated and yield 'false'. |
boolean |
isTrue()
Test, if ANDing of all members yields true. |
boolean |
isTrue(java.lang.String name)
Test, if ANDing of all members yields true. |
void |
makeCopyOf(CondTuple tuple)
|
protected ValueMember |
newMember(DeclMember decl)
Generic component creation. |
void |
setVariableContext(boolean b)
|
void |
showConditions()
|
boolean |
usesVariable(java.lang.String var)
|
void |
XreadObject(XMLHelper h)
|
void |
XwriteObject(XMLHelper h)
|
Methods inherited from class agg.attribute.impl.TupleObject |
---|
addMember, addMember, deleteMemberAt, ensureNonNull, finalize, getForm, getIndexForMember, getIndexForName, getIndexInView, getMemberAt, getMemberAt, getMemberAt, getNameAsString, getNameAsString, getNumberOfEntries, getNumberOfEntries, getParent, getParentInCharge, getParentSize, getSize, getType, getTypeAsString, getTypeAsString, getValueAsString, isSubclassOf, isValid, memberChanged, rawAddMember, rawAddMember, rawDeleteMemberAt, rawGetMemberAt, rawGetSize, setForm |
Methods inherited from class agg.attribute.impl.ChainedObserver |
---|
addObserver, addObserverAtPos, attributeChanged, contains, filterEvent, findObserver, fireAttrChanged, fireAttrChanged, fireAttrChanged, getObservers, isPersistentFor, removeObserver, updateGeneralChange, updateMemberModified, updateMemberRenamed, updateUnknownChange, updateValueCorrectness, updateValueModified |
Methods inherited from class agg.attribute.impl.ManagedObject |
---|
getAttrManager, getManager |
Methods inherited from class agg.attribute.impl.AttrObject |
---|
defaultToString, err, err, getInstRepr, log, log, logEnteredMethod, logPrintln, stdoutPrintOnEnter, stdoutPrintOnExit, update, warn, warn, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface agg.attribute.AttrInstance |
---|
apply, apply, apply, apply, copy, copyEntries, getContext, getNumberOfFreeVariables, getType, getValueAt, isValueSetAt, setExprAt, setExprValueAt, setValueAt, unsetValue |
Methods inherited from interface agg.attribute.AttrTuple |
---|
addObserver, getAttrManager, getIndexForMember, getMemberAt, getMemberAt, getMemberAt, getNameAsString, getNameAsString, getNumberOfEntries, getNumberOfEntries, getTupleType, getTypeAsString, getTypeAsString, getValueAsString, getValueAsString, isValid, removeObserver |
Field Detail |
---|
protected static java.lang.String boolHandlerName
protected static final java.lang.String boolTypeName
protected static final java.lang.String trueVal
protected static final java.lang.String falseVal
protected static final java.lang.String namePrefix
protected AttrHandler condHandler
protected HandlerType boolType
protected int condNum
Constructor Detail |
---|
public CondTuple(AttrTupleManager manager, ContextView context, CondTuple parent)
Method Detail |
---|
protected void initClass()
public void clear()
public void dispose()
Disposable
dispose
in interface Disposable
dispose
in class TupleObject
public void makeCopyOf(CondTuple tuple)
protected java.lang.String getNextName()
protected java.lang.String getNameFor(int index)
protected ValueMember newMember(DeclMember decl)
newMember
in class ValueTuple
public CondMember getCondMemberAt(int index)
public AttrConditionMember addCondition(java.lang.String expr)
AttrConditionTuple
addCondition
in interface AttrConditionTuple
public boolean isDefinite()
isDefinite
in interface AttrConditionTuple
public boolean isDefinite(java.lang.String name)
public boolean contains(java.lang.String expr)
public boolean isEvaluable(VarTuple vars)
public boolean isTrue()
isTrue
in interface AttrConditionTuple
public boolean isTrue(java.lang.String name)
public boolean isFalse()
isFalse
in interface AttrConditionTuple
public boolean isFalse(java.lang.String name)
public java.lang.String getFailedConditionAsString()
public void setVariableContext(boolean b)
public java.util.Vector<java.lang.String> getAllVariables()
AttrConditionTuple
getAllVariables
in interface AttrConditionTuple
public boolean usesVariable(java.lang.String var)
public boolean compareTo(AttrInstance another)
compareTo
in interface AttrInstance
compareTo
in class ValueTuple
public void showConditions()
public void XwriteObject(XMLHelper h)
XwriteObject
in interface XMLObject
XwriteObject
in class ValueTuple
public void XreadObject(XMLHelper h)
XreadObject
in interface XMLObject
XreadObject
in class ValueTuple
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |