|
|||||||||
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.VarMember
public class VarMember
Class for members of attribute instance tuples that are used as variables in a context. This is an extension of ValueMember; it adds reference counting.
Field Summary | |
---|---|
protected boolean |
isIn
|
protected boolean |
isOut
|
static int |
LHS
Marking left hand side (LHS) of a rule |
static int |
NAC
Marking NAC of a rule |
static int |
PAC
|
protected int |
refCnt
|
static int |
RHS
Marking right hand side (RHS) of a rule |
static long |
serialVersionUID
|
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 | |
---|---|
VarMember(VarTuple tuple,
DeclMember decl)
Creating a new instance with the specified type. |
Method Summary | |
---|---|
void |
copy(ValueMember fromInstance)
copy the contents of a single entry instance into another. |
protected void |
decrementCount()
|
void |
delete()
Removes this member from its tuple. |
java.lang.String |
getErrorMsg()
|
protected HandlerExpr |
getEvaluationResult()
|
HandlerExpr |
getExpr()
Retrieving the expression (value) contained in this member. |
int |
getMark()
|
int |
getReferenceCount()
|
protected void |
incrementCount()
|
boolean |
isDefinite()
Test, if the expression evaluates to a constant. |
boolean |
isEnabled()
|
boolean |
isInputParameter()
Tests if this variable is an IN-parameter. |
boolean |
isOutputParameter()
Tests if this variable is an OUT-parameter. |
boolean |
isUnifiableWith(HandlerExpr srcExpr)
|
void |
setEnabled(boolean b)
|
void |
setExprAsEvaluatedText(java.lang.String exprText)
Setting the value. |
void |
setExprAsObject(java.lang.Object value)
Setting the value. |
void |
setExprAsText(java.lang.String exprText)
Setting the value. |
void |
setInputParameter(boolean in)
Sets, if the variable is to be an IN-parameter. |
void |
setMark(int m)
The mark m defines a graph context of this variable . |
void |
setOutputParameter(boolean out)
Sets, if the variable is to be an OUT-parameter. |
protected void |
startCount()
|
java.lang.String |
toString()
|
void |
undoUnification()
|
boolean |
unifyWith(HandlerExpr srcExpr)
|
void |
update(java.util.Observable o,
java.lang.Object arg)
Implementation of the only Observer interface method. |
Methods inherited from class agg.attribute.impl.ValueMember |
---|
apply, apply, apply, apply, canMatchTo, checkInContext, checkValidity, checkValidity, compareTo, equals, getAllVariableNamesOfExpression, getAttrHandlerExceptionMsg, getChildrenOfExpression, getContext, getDecl, getDeclaration, getExprAsObject, getExprAsText, getHandler, getHoldingTuple, getName, getTuple, getType, getValidityReport, isEmpty, isSet, isTransient, isValid, matchTo, rawGetExpr, rawSetExpr, rawSetExprAsObject, rawSetExprAsText, setCheckedExpr, setExpr, setTransient, typeChanged, XreadObject, XwriteObject |
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, 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, getExprAsObject, getExprAsText, isSet, setExpr |
Methods inherited from interface agg.attribute.AttrMember |
---|
getHoldingTuple, getIndexInTuple, getName, getValidityReport, isValid |
Methods inherited from interface agg.util.XMLObject |
---|
XreadObject, XwriteObject |
Field Detail |
---|
public static final int LHS
public static final int RHS
public static final int NAC
public static final int PAC
protected int refCnt
protected boolean isIn
protected boolean isOut
public static final long serialVersionUID
Constructor Detail |
---|
public VarMember(VarTuple tuple, DeclMember decl)
tuple
- Instance tuple that this value is a member of.decl
- Declaration for this member.Method Detail |
---|
public java.lang.String getErrorMsg()
getErrorMsg
in class ValueMember
public void delete()
delete
in interface AttrVariableMember
public void setEnabled(boolean b)
public boolean isEnabled()
public boolean isInputParameter()
AttrVariableMember
isInputParameter
in interface AttrVariableMember
public void setInputParameter(boolean in)
AttrVariableMember
setInputParameter
in interface AttrVariableMember
public boolean isOutputParameter()
AttrVariableMember
isOutputParameter
in interface AttrVariableMember
public void setOutputParameter(boolean out)
AttrVariableMember
setOutputParameter
in interface AttrVariableMember
public int getReferenceCount()
public boolean isUnifiableWith(HandlerExpr srcExpr)
public boolean unifyWith(HandlerExpr srcExpr)
public void copy(ValueMember fromInstance)
copy
in class ValueMember
public void undoUnification()
public void setExprAsObject(java.lang.Object value) throws AttrImplException
ValueMember
setExprAsObject
in interface AttrInstanceMember
setExprAsObject
in class ValueMember
value
- Any object instance.
AttrImplException
public void setExprAsText(java.lang.String exprText) throws AttrImplException
ValueMember
setExprAsText
in interface AttrInstanceMember
setExprAsText
in class ValueMember
exprText
- textual expression representation;
AttrImplException
public void setExprAsEvaluatedText(java.lang.String exprText)
ValueMember
setExprAsEvaluatedText
in interface AttrInstanceMember
setExprAsEvaluatedText
in class ValueMember
exprText
- textual expression representation;public HandlerExpr getExpr()
AttrInstanceMember
getExpr
in interface AttrInstanceMember
getExpr
in class ValueMember
public boolean isDefinite()
isDefinite
in interface AttrVariableMember
public void setMark(int m)
public int getMark()
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
update
in class AttrObject
protected HandlerExpr getEvaluationResult()
protected void startCount()
protected void incrementCount()
protected void decrementCount()
public java.lang.String toString()
toString
in class ValueMember
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |