Interface IASTSimpleDeclSpecifier

    • Method Detail

      • copy

        IASTSimpleDeclSpecifier 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:
        getType()
      • 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:
        isSigned()
      • setUnsigned

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

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

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

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

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

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