Class TemplateDescriptor


  • public class TemplateDescriptor
    extends java.lang.Object
    Carries the information for creating a template (just a temporary instance).
    Author:
    Holger Eichelberger
    • Constructor Detail

      • TemplateDescriptor

        public TemplateDescriptor()
    • Method Detail

      • setParameter

        public void setParameter​(VariableDeclaration[] param,
                                 Resolver resolver)
        Defines the parameter.
        Parameters:
        param - the parameter
        resolver - the resolver to add the parameters to
      • getParameter

        VariableDeclaration[] getParameter()
        Returns the parameter of the template.
        Returns:
        the parameter
      • setAdvices

        public void setAdvices​(Advice[] advices)
        Defines the advices.
        Parameters:
        advices - the advices
      • getAdvices

        Advice[] getAdvices()
        Returns the advices.
        Returns:
        the advices
      • setImports

        public void setImports​(Imports<Template> imports)
        Sets the imports.
        Parameters:
        imports - the imports
      • getImports

        Imports<Template> getImports()
        Returns the imports.
        Returns:
        the imports
      • addJavaExtension

        public void addJavaExtension​(JavaExtension extension)
        Adds an extension.
        Parameters:
        extension - the extension to be added
      • getJavaExtensions

        JavaExtension[] getJavaExtensions()
        Returns the extensions.
        Returns:
        the extensions (may be null)
      • addDef

        public void addDef​(Def def)
        Adds a def template.
        Parameters:
        def - the template ti be added
      • getDefs

        Def[] getDefs()
        Returns the def templates.
        Returns:
        the def templates (may be null)
      • setIndentationConfiguration

        public void setIndentationConfiguration​(IndentationConfiguration config)
        Defines the indentation configuration.
        Parameters:
        config - the indentation configuration
      • getIndentationConfiguration

        public IndentationConfiguration getIndentationConfiguration()
        Returns the indentation configuration.
        Returns:
        the indentation configuration
      • setFormattingConfiguration

        public void setFormattingConfiguration​(FormattingConfiguration config)
        Defines the formatting configuration.
        Parameters:
        config - the formatting configuration
      • getFormattingConfiguration

        public FormattingConfiguration getFormattingConfiguration()
        Returns the formatting configuration.
        Returns:
        the formatting configuration