Class DeclarationGenerator


  • public abstract class DeclarationGenerator
    extends Object
    This class handles the creation of IASTDeclarators and IASTDeclSpecifiers for a given type.
    Since:
    5.3
    Restriction:
    This interface is not intended to be extended by clients.
    • Constructor Detail

      • DeclarationGenerator

        public DeclarationGenerator()
    • Method Detail

      • createDeclSpecFromType

        public abstract IASTDeclSpecifier createDeclSpecFromType​(IType type)
        Creates a new IASTDeclSpecifier for a given IType.
        Parameters:
        type - the type to describe
        Returns:
        the generated declaration specifier
      • createDeclaratorFromType

        public abstract IASTDeclarator createDeclaratorFromType​(IType type,
                                                                char[] name)
        Creates a new IASTDeclarator for a given IType.
        Parameters:
        type - the type to describe
        name - the name for the declarator
        Returns:
        the generated declarator