- All Superinterfaces:
ASTNode,DesignatorNode
A field designator is used in an initializer for a struct or union. It is a
reference to a particular member (field) of that struct or union.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.civl.abc.ast.node.IF.ASTNode
ASTNode.NodeKind -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a deep copy of this AST node.getField()The name of the field being designated for initialization.Field[]voidsetField(IdentifierNode name) Sets the name of the field being designated for initialization.voidsetNavigationSequence(Field[] sequence) 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, transformAnnotations
-
Method Details
-
getField
IdentifierNode getField()The name of the field being designated for initialization.- Returns:
- the field name
- See Also:
-
setField
Sets the name of the field being designated for initialization.- Parameters:
name- the field name- See Also:
-
copy
FieldDesignatorNode 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 interfaceDesignatorNode- Returns:
- deep copy of this node
-