Class AbstractTemplate<T extends CtElement>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AbstractTemplate<T> addGeneratedBy​(boolean addGeneratedBy)  
      Factory getFactory()
      returns a Spoon factory object from the first template parameter that contains one
      boolean isAddGeneratedBy()  
      boolean isValid()
      verifies whether all template parameters are filled.
      boolean isWellFormed()
      verifies whether there is at least one template parameter.
      boolean withPartialEvaluation()
      if true, the result of the template evaluation is simplified with partial evaluation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractTemplate

        public AbstractTemplate()
    • Method Detail

      • withPartialEvaluation

        public boolean withPartialEvaluation()
        Description copied from interface: Template
        if true, the result of the template evaluation is simplified with partial evaluation
        Specified by:
        withPartialEvaluation in interface Template<T extends CtElement>
      • isWellFormed

        public boolean isWellFormed()
        verifies whether there is at least one template parameter.
      • isValid

        public boolean isValid()
        verifies whether all template parameters are filled.
      • getFactory

        public Factory getFactory()
        returns a Spoon factory object from the first template parameter that contains one
      • isAddGeneratedBy

        public boolean isAddGeneratedBy()
        Returns:
        true if the template engine adds Generated by ... comments into generated code
      • addGeneratedBy

        public AbstractTemplate<T> addGeneratedBy​(boolean addGeneratedBy)
        Parameters:
        addGeneratedBy - if true the template engine will add Generated by ... comments into generated code