- All Superinterfaces:
ASTNode,BlockItemNode,DeclarationNode
A node representing a typedef declaration. The identifier node in this
declaration is the name of the typedef. The other child is a type node, which
is the type being assigned to that identifier.
-
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.statement.BlockItemNode
BlockItemNode.BlockItemKind -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a deep copy of this AST node.Returns the typedef entity itself associated to this declaration.Returns the AST node for the type that is being associated to the typedef name.voidsetTypeNode(TypeNode type) Sets the type node child of this typedef declaration node.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.statement.BlockItemNode
blockItemKindMethods inherited from interface dev.civl.abc.ast.node.IF.declaration.DeclarationNode
getIdentifier, getName, isDefinition, setEntity, setIdentifier, setIsDefinition
-
Method Details
-
getEntity
Typedef getEntity()Returns the typedef entity itself associated to this declaration.- Specified by:
getEntityin interfaceDeclarationNode- Returns:
- the typedef
- See Also:
-
getTypeNode
TypeNode getTypeNode()Returns the AST node for the type that is being associated to the typedef name.- Returns:
- the type assigned to this typedef name
-
setTypeNode
Sets the type node child of this typedef declaration node.- Parameters:
type- the type node to be made a child of this node
-
copy
TypedefDeclarationNode 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 interfaceBlockItemNode- Specified by:
copyin interfaceDeclarationNode- Returns:
- deep copy of this node
-