public class AttributeChangeToken extends Token
Constructor and Description |
---|
AttributeChangeToken()
Create a new instance with targetSettable set to null.
|
AttributeChangeToken(java.lang.String targetSettable)
Create a new instance and set the name of the targetActor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Return true if the object is equal to the instance, false otherwise.
|
java.lang.String |
getExpression()
Return the expression.
|
java.lang.String |
getTargetSettableName()
Return name of the target settable object that received the changes encapsulated by
the AttributeChangeToken.
|
int |
hashCode()
The hashCode method generates an identifier based on the stored
expression and the target settable object.
|
void |
setExpression(java.lang.String newExpression)
Set the value of the expression carried.
|
void |
setTargetSettableName(java.lang.String targetSettableName)
Set the name of target settable object that received the changes that the
AttributeChangeToken encapsulates.
|
add, addReverse, divide, divideReverse, getType, isCloseTo, isCloseTo, isEqualTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, toString, zero, zeroReturnType
public AttributeChangeToken()
public AttributeChangeToken(java.lang.String targetSettable)
targetSettable
- The full name of the attributepublic boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The reference object with which to compare.Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getExpression()
setExpression(String)
public java.lang.String getTargetSettableName()
setTargetSettableName(String)
public void setExpression(java.lang.String newExpression)
newExpression
- the changed expressiongetExpression()
public void setTargetSettableName(java.lang.String targetSettableName)
targetSettableName
- the name of the target actorgetTargetSettableName()