Class DirectivesAnnotationProperty

  • All Implemented Interfaces:
    Iterable<org.xembly.Directive>, Composite

    public final class DirectivesAnnotationProperty
    extends Object
    implements Iterable<org.xembly.Directive>, Composite
    Annotation property as Xembly directives.
    Since:
    0.3
    • Constructor Detail

      • DirectivesAnnotationProperty

        @SafeVarargs
        public DirectivesAnnotationProperty​(org.eolang.jeo.representation.directives.DirectivesAnnotationProperty.Type type,
                                            Iterable<org.xembly.Directive>... params)
        Constructor.
        Parameters:
        type - Type of the property.
        params - Property parameters.
    • Method Detail

      • enump

        public static DirectivesAnnotationProperty enump​(String name,
                                                         String descriptor,
                                                         String value)
        Factory method for enum property.
        Parameters:
        name - Name.
        descriptor - Descriptor.
        value - Value.
        Returns:
        Property directives.
      • annotation

        public static DirectivesAnnotationProperty annotation​(String name,
                                                              String descriptor,
                                                              Composite child)
        Factory method for annotation property.
        Parameters:
        name - Name.
        descriptor - Descriptor.
        child - Child directives.
        Returns:
        Property directives.
      • iterator

        public Iterator<org.xembly.Directive> iterator()
        Specified by:
        iterator in interface Iterable<org.xembly.Directive>
      • append

        public void append​(Iterable<org.xembly.Directive> directives)
        Description copied from interface: Composite
        Append directives.
        Specified by:
        append in interface Composite
        Parameters:
        directives - Directives to append.
      • build

        public Iterable<org.xembly.Directive> build()
        Description copied from interface: Composite
        Build directives all together.
        Specified by:
        build in interface Composite
        Returns:
        Directives.