- All Superinterfaces:
ASTNode,ExpressionNode,ForLoopInitializerNode,InitializerNode,SizeableNode
A C expression in which the operator is the
. (dot) operator,
used to specify a member of a structure or union.-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.civl.abc.ast.node.IF.ASTNode
ASTNode.NodeKindNested classes/interfaces inherited from interface dev.civl.abc.ast.node.IF.expression.ExpressionNode
ExpressionNode.ExpressionKind -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a deep copy of this AST node.Returns the node representing the right operand, which must be an identifier which names a field in the structure or union type which is the type of the left operand.Field[]Returns the sequence of nested fields navigates from an outer structure or union member to an inner member through anonymous structure or union members.Returns the node representing the left operand, which must have structure or union type.voidsetFieldName(IdentifierNode field) Sets the value returned bygetFieldName().voidsetNavigationSequence(Field[] sequence) voidsetStructure(ExpressionNode structure) Sets the value returned bygetStructure().Methods inherited from interface dev.civl.abc.ast.node.IF.ASTNode
addAllTransformAnnotations, addTransformAnnotation, child, childIndex, children, diff, equiv, getAttribute, getOwner, getScope, getSource, id, keepOnly, nextDFS, nodeKind, numChildren, parent, prettyPrint, prettyRepresentation, prettyRepresentation, print, remove, removeChild, removeTransformAnnotation, setAttribute, setChild, setId, setOwner, setScope, toString, transformAnnotationsMethods inherited from interface dev.civl.abc.ast.node.IF.expression.ExpressionNode
addConversion, expressionKind, getConversion, getConvertedType, getInitialType, getNumConversions, isConstantExpression, isLvalue, removeConversions, setInitialTypeMethods inherited from interface dev.civl.abc.ast.node.IF.declaration.InitializerNode
isSideEffectFreeMethods inherited from interface dev.civl.abc.ast.node.IF.expression.SizeableNode
getType
-
Method Details
-
getStructure
ExpressionNode getStructure()Returns the node representing the left operand, which must have structure or union type.- Returns:
- the left operand
-
setStructure
Sets the value returned bygetStructure().- Parameters:
structure- the left operand
-
getFieldName
IdentifierNode getFieldName()Returns the node representing the right operand, which must be an identifier which names a field in the structure or union type which is the type of the left operand.- Returns:
- the right operand
-
setFieldName
Sets the value returned bygetFieldName().- Parameters:
field- the right operand
-
copy
DotNode copy()Description copied from interface:ASTNodeReturns a deep copy of this AST node. The node and all of its descendants will be cloned. The cloning does not copy analysis or attribute information.- Specified by:
copyin interfaceASTNode- Specified by:
copyin interfaceExpressionNode- Specified by:
copyin interfaceForLoopInitializerNode- Specified by:
copyin interfaceInitializerNode- Specified by:
copyin interfaceSizeableNode- Returns:
- deep copy of this node
-