public class FieldUpdate extends ProtoExpression
VOID_ASSIGNMENTS| Constructor and Description |
|---|
FieldUpdate(Expression object,
Global field,
Expression value)
Constructs a field update with the specified object expression, field
name and value expression.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compile(Compiler compiler)
Compiles this field update of expressions in the context of the specified
Compiler.
|
Expression |
copy()
Returns a deep copy of this expression.
|
int |
numberOfSubexpressions()
Returns the number of subexpressions
|
void |
setCheckedType()
Sets the checked type of the expression of this field update.
|
Expression |
setSubexpression(int n,
Expression expression)
Returns this expression after setting its n-th subexpression to the specified
expression; if there is no subexpression at the given position, this throws a
NoSuchSubexpressionException
|
Expression |
subexpression(int n)
Returns the n-th subexpression of this expression; if there is no subexpression
at the given position, this throws a NoSuchSubexpressionException
|
java.lang.String |
toString() |
Expression |
tupleUpdate()
Returns the tuple update expression this corresponds to if not a class instance
object field update; null otherwise.
|
void |
typeCheck(TypeChecker typeChecker)
Type-checks this field update in the context of the specified TypeChecker.
|
Expression |
typedCopy()
Returns a deep copy of this expression this and all its subexpressions share the
same type as their copy's counterparts.
|
checkedType, setCheckedType, setType, type, typeRefaddType, addTypes, boxSort, containsFreeName, enclosingScope, extent, getEnd, getStart, isConstant, isEquality, isFalse, isHiddenSlicing, isNull, isSelector, isSlicing, isTrue, isVoid, locationString, otherTypes, parameters, sanitizeNames, sanitizeSorts, setCheckedTypeLocked, setEnd, setExtent, setOtherTypes, setStart, shiftOffsets, shiftOffsets, sort, substitute, typeCheck, typeCheck, typeCheckLockedpublic FieldUpdate(Expression object, Global field, Expression value)
public final Expression tupleUpdate()
public final Expression copy()
Expressioncopy in class Expressionpublic final Expression typedCopy()
ExpressiontypedCopy in class Expressionpublic final int numberOfSubexpressions()
ExpressionnumberOfSubexpressions in class Expressionpublic final Expression subexpression(int n) throws NoSuchSubexpressionException
Expressionsubexpression in class ExpressionNoSuchSubexpressionExceptionpublic final Expression setSubexpression(int n, Expression expression) throws NoSuchSubexpressionException
ExpressionsetSubexpression in class ExpressionNoSuchSubexpressionExceptionpublic final void setCheckedType()
setCheckedType in class Expressionpublic final void typeCheck(TypeChecker typeChecker) throws TypingErrorException
typeCheck in class ExpressionTypingErrorExceptionpublic final void compile(Compiler compiler)
compile in class Expressionpublic final java.lang.String toString()
toString in class java.lang.Object