Class ShareCall<S,​T>

    • Constructor Detail

      • ShareCall

        public ShareCall​(@Nonnull
                         Metadata metadata,
                         @Nonnull
                         java.util.Optional<Reference> localName,
                         @Nonnull
                         java.util.Optional<Reference> fieldName,
                         @Nonnull
                         ProtelisAST<S> init,
                         @Nonnull
                         ProtelisAST<S> body,
                         @Nonnull
                         java.util.Optional<ProtelisAST<T>> yield)
        Convenience constructor with Optional.
        Parameters:
        metadata - A Metadata object containing information about the code that generated this AST node.
        localName - variable name
        fieldName - name of the field version
        init - initial value
        body - body
        yield - body
      • ShareCall

        public ShareCall​(@Nonnull
                         Metadata metadata,
                         @Nonnull
                         com.google.common.base.Optional<Reference> localName,
                         @Nonnull
                         com.google.common.base.Optional<Reference> fieldName,
                         @Nonnull
                         ProtelisAST<S> init,
                         @Nonnull
                         ProtelisAST<S> body,
                         @Nonnull
                         com.google.common.base.Optional<ProtelisAST<T>> yield)
        Parameters:
        metadata - A Metadata object containing information about the code that generated this AST node.
        localName - variable name
        fieldName - name of the field version
        init - initial value
        body - body
        yield - body