Class Template

  • All Implemented Interfaces:
    FromSourceLocation, ToNode

    public final class Template
    extends MandatorySourceLocation
    implements ToNode
    Template represents a "Template Literal". This is a literal string within the rules language. A template can contain 0 or more dynamic sections. The dynamic sections use getAttr short-form:

    `https://{Region}.{partition#dnsSuffix}` -------- ------------ | | Dynamic getAttr short form

    • Method Detail

      • fromString

        public static Template fromString​(java.lang.String s)
      • accept

        public <T> java.util.stream.Stream<T> accept​(TemplateVisitor<T> visitor)
      • isStatic

        public boolean isStatic()
      • expectLiteral

        public java.lang.String expectLiteral()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.