Interface IASTSimpleDeclSpecifier

All Superinterfaces:
IASTAttributeOwner, IASTDeclSpecifier, IASTNode
All Known Subinterfaces:
ICASTSimpleDeclSpecifier, ICPPASTSimpleDeclSpecifier, IGCCASTSimpleDeclSpecifier, IGPPASTSimpleDeclSpecifier

public interface IASTSimpleDeclSpecifier extends IASTDeclSpecifier
This represents a declaration specifier for a built-in type.
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Field Details

  • Method Details

    • 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
    • getType

      int getType()
      Returns the built-in type for the declaration. The type is then refined by qualifiers for signed/unsigned and short/long. The type could also be unspecified which usually means int.
    • isSigned

      boolean isSigned()
      signed char c;
    • isUnsigned

      boolean isUnsigned()
      unsigned int u;
    • isShort

      boolean isShort()
      short int s;
    • isLong

      boolean isLong()
      long int l;
    • isLongLong

      boolean isLongLong()
      long long int l;
      Since:
      5.2
    • isComplex

      boolean isComplex()
      _Complex t;
      Since:
      5.2
    • isImaginary

      boolean isImaginary()
      _Imaginary t;
      Since:
      5.2
    • getDeclTypeExpression

      IASTExpression getDeclTypeExpression()
      Returns the expression for simple declaration specifiers of type t_decltype or t_typeof. Other simple declaration specifiers will return null.
      Since:
      5.2
    • setType

      void setType(int type)
      Not allowed on frozen ast.
      See Also:
    • setType

      void setType(IBasicType.Kind kind)
      Not allowed on frozen ast. Sets this declaration specifier to the type based on IBasicType.Kind.
      Since:
      5.2
    • setSigned

      void setSigned(boolean value)
      Not allowed on frozen ast.
      See Also:
    • setUnsigned

      void setUnsigned(boolean value)
      Not allowed on frozen ast.
      See Also:
    • setShort

      void setShort(boolean value)
      Not allowed on frozen ast.
      See Also:
    • setLong

      void setLong(boolean value)
      Not allowed on frozen ast.
      See Also:
    • setLongLong

      void setLongLong(boolean value)
      Not allowed on frozen ast.
      Since:
      5.2
      See Also:
    • setComplex

      void setComplex(boolean value)
      Not allowed on frozen ast.
      Since:
      5.2
      See Also:
    • setImaginary

      void setImaginary(boolean value)
      Not allowed on frozen ast.
      Since:
      5.2
      See Also:
    • setDeclTypeExpression

      void setDeclTypeExpression(IASTExpression expression)
      Not allowed on frozen ast.
      Since:
      5.2
      See Also: