Class DirectivesValue

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

    public final class DirectivesValue
    extends Object
    implements Iterable<org.xembly.Directive>
    Data Object Directive in EO language.
    Since:
    0.1.0
    • Constructor Detail

      • DirectivesValue

        public DirectivesValue​(T data)
        Constructor.
        Type Parameters:
        T - Data type.
        Parameters:
        data - Data.
      • DirectivesValue

        public DirectivesValue​(int index,
                               Format format,
                               T data)
        Constructor.
        Type Parameters:
        T - Data type.
        Parameters:
        index - Ordered index.
        format - Directives format.
        data - Data.
      • DirectivesValue

        public DirectivesValue​(Format format,
                               NumName name,
                               T data)
        Constructor.
        Type Parameters:
        T - Data type.
        Parameters:
        format - Directives format.
        name - Name.
        data - Data.
      • DirectivesValue

        public DirectivesValue​(Format format,
                               String name,
                               T data)
        Constructor.
        Type Parameters:
        T - Data type.
        Parameters:
        format - Directives format.
        name - Name.
        data - Data.
      • DirectivesValue

        public DirectivesValue​(Format format,
                               String name,
                               String as,
                               T data)
        Constructor.
        Type Parameters:
        T - Data type.
        Parameters:
        format - Directives format.
        name - Name.
        as - The 'as' attribute of the object.
        data - Data.
        Suppressed Checkstyle violations:
        ParameterNumberCheck (5 lines), ParameterNameCheck (5 lines)
      • DirectivesValue

        public DirectivesValue​(Format format,
                               String name,
                               BytecodeValue value)
        Constructor.
        Parameters:
        format - Format.
        name - Name.
        value - Value.
      • DirectivesValue

        public DirectivesValue​(Format format,
                               String name,
                               String as,
                               BytecodeValue value)
        Constructor.
        Parameters:
        format - Format.
        name - Name.
        as - The 'as' attribute of the object.
        value - Value.
        Suppressed Checkstyle violations:
        ParameterNumberCheck (5 lines), ParameterNameCheck (5 lines)
    • Method Detail

      • iterator

        public Iterator<org.xembly.Directive> iterator()
        Iterator of directives.
        Specified by:
        iterator in interface Iterable<org.xembly.Directive>
        Returns:
        Iterator of directives.
        Suppressed Checkstyle violations:
        CyclomaticComplexityCheck (50 lines), NoJavadocForOverriddenMethodsCheck (50 lines)
      • hex

        public String hex​(Codec codec)
        Value of the data.
        Parameters:
        codec - Codec
        Returns:
        Value