Class Templates


  • public class Templates
    extends java.lang.Object
    Convenient static methods to work with Templates elements.
    • Constructor Detail

      • Templates

        public Templates()
    • Method Detail

      • getOwnedTemplateParameters

        public static java.util.List<TemplateParameter> getOwnedTemplateParameters​(TemplateBinding binding)
        Return a copy of list of owned template parameters pointed by this template binding..
      • getOwnedTemplateParameters

        public static java.util.List<TemplateParameter> getOwnedTemplateParameters​(TemplateableElement element,
                                                                                   boolean create)
        Returns a list of owned template parameters. Can create template signature if needed.
      • getTemplateSignature

        public static TemplateSignature getTemplateSignature​(TemplateableElement element,
                                                             boolean create)
        Creates a new instance of TemplateSignature or returns existing one. If element is Classifier, RedefinableTemplateSignature is created.
        Parameters:
        element - element
        create - create a new signature
        Returns:
        signature