Interface IASTNamedTypeSpecifier

All Superinterfaces:
IASTAttributeOwner, IASTDeclSpecifier, IASTNameOwner, IASTNode
All Known Subinterfaces:
ICASTTypedefNameSpecifier, ICPPASTNamedTypeSpecifier

public interface IASTNamedTypeSpecifier extends IASTDeclSpecifier, IASTNameOwner
Represents the use of a typedef name in an decl specifier in C. Also used for class/struct/union names in C.
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Field Details

    • NAME

      static final ASTNodeProperty NAME
      NAME describes the relationship between an IASTNamedTypeSpecifier and its nested IASTName.
  • Method Details

    • getName

      IASTName getName()
      Get the name.
      Returns:
      the typedef name.
    • setName

      void setName(IASTName name)
      Set the name.
      Parameters:
      name -
    • copy

      Description copied from interface: IASTNode
      Returns a mutable copy of the tree rooted at this node. The following postconditions hold:
       copy.getParent() == null
       copy.getPropertyInParent() == null
       copy.isFrozen() == false
       
      Preprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.

      Calling this method is equivalent to copy(CopyStyle.withoutLocations).

      Specified by:
      copy in interface IASTDeclSpecifier
      Specified by:
      copy in interface IASTNode
      Since:
      5.1