|
|||||||||
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.Member
agg.attribute.impl.ValueMember
agg.attribute.impl.CondMember
public class CondMember
Class for members of condition tuples that are used as application conditions in a context. This is an extension of ValueMember.
Field Summary | |
---|---|
static int |
LHS
|
static int |
NAC
|
static int |
NAC_LHS
|
static int |
NAC_PAC
|
static int |
NAC_PAC_LHS
|
static int |
PAC
|
static int |
PAC_LHS
|
static int |
RHS
|
Fields inherited from class agg.attribute.impl.ValueMember |
---|
currentException, decl, EMPTY_VALUE_SYMBOL, errorMsg, expression, expressionObject, expressionText, isTransient, tuple |
Fields inherited from class agg.attribute.impl.AttrObject |
---|
classHandlerExpr, classObject, classString, initialized |
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 |
Constructor Summary | |
---|---|
CondMember(CondTuple tuple,
DeclMember decl)
Creating a new instance with the specified type. |
Method Summary | |
---|---|
boolean |
areVariablesSet()
|
void |
copy(ValueMember fromInstance)
copy the contents of a single entry instance into another. |
void |
delete()
Removes this member from its tuple. |
java.util.Vector<java.lang.String> |
getAllVariables()
Return a vector with names of used declared variables. |
int |
getMark()
|
boolean |
isDefinite()
Test, if the expression can yield true or false. |
boolean |
isEnabled()
|
boolean |
isEvaluable(VarTuple vars)
|
boolean |
isFalse()
Test, if this condition can be evaluated and yield 'false'. |
boolean |
isTrue()
Test, if the expression yields true. |
void |
setEnabled(boolean b)
|
void |
setMark(int m)
The mark m marks that this condition member, for example, is a condition of a NAC. |
void |
setName(java.lang.String n)
|
void |
XreadObject(XMLHelper h)
|
void |
XwriteObject(XMLHelper h)
|
Methods inherited from class agg.attribute.impl.ValueMember |
---|
apply, apply, apply, apply, canMatchTo, checkInContext, checkValidity, checkValidity, compareTo, equals, getAllVariableNamesOfExpression, getAttrHandlerExceptionMsg, getChildrenOfExpression, getContext, getDecl, getDeclaration, getErrorMsg, getExpr, getExprAsObject, getExprAsText, getHandler, getHoldingTuple, getName, getTuple, getType, getValidityReport, isEmpty, isSet, isTransient, isValid, matchTo, rawGetExpr, rawSetExpr, rawSetExprAsObject, rawSetExprAsText, setCheckedExpr, setExpr, setExprAsEvaluatedText, setExprAsObject, setExprAsText, setTransient, toString, typeChanged |
Methods inherited from class agg.attribute.impl.Member |
---|
fireChanged, getIndexInTuple |
Methods inherited from class agg.attribute.impl.AttrObject |
---|
defaultToString, err, err, getInstRepr, log, log, log, logEnteredMethod, logPrintln, logPrintln, stdoutPrintOnEnter, stdoutPrintOnExit, update, warn, warn, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface agg.attribute.AttrInstanceMember |
---|
getDeclaration, getExpr, getExprAsObject, getExprAsText, isSet, setExpr, setExprAsEvaluatedText, setExprAsObject, setExprAsText |
Methods inherited from interface agg.attribute.AttrMember |
---|
getHoldingTuple, getIndexInTuple, getName, getValidityReport, isValid |
Field Detail |
---|
public static final int LHS
public static final int RHS
public static final int NAC
public static final int PAC
public static final int NAC_LHS
public static final int PAC_LHS
public static final int NAC_PAC
public static final int NAC_PAC_LHS
Constructor Detail |
---|
public CondMember(CondTuple tuple, DeclMember decl)
tuple
- Instance tuple that this value is a member of.decl
- Declaration for this member.Method Detail |
---|
public void copy(ValueMember fromInstance)
copy
in class ValueMember
public void delete()
delete
in interface AttrConditionMember
public boolean areVariablesSet()
public boolean isDefinite()
isDefinite
in interface AttrConditionMember
public boolean isTrue()
isTrue
in interface AttrConditionMember
public void setEnabled(boolean b)
public boolean isEnabled()
public boolean isFalse()
public boolean isEvaluable(VarTuple vars)
public java.util.Vector<java.lang.String> getAllVariables()
public void setMark(int m)
CondMember
public int getMark()
public void setName(java.lang.String n)
public void XwriteObject(XMLHelper h)
XwriteObject
in interface XMLObject
XwriteObject
in class ValueMember
public void XreadObject(XMLHelper h)
XreadObject
in interface XMLObject
XreadObject
in class ValueMember
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |