Class ImportDeclaration

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ImportDeclaration>

    public class ImportDeclaration
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<ImportDeclaration>
    An import/require declaration. Serializes as (:require [name ...]) in Clojure, (require 'name) in Emacs Lisp, (:use :name) or (:import-from :name ...) in Common Lisp, (import (name)) in Scheme
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.lisp.syntax.ImportDeclaration type.
      • MODULE

        public static final Name MODULE
        Name of the hydra.lisp.syntax.ImportDeclaration.module field.
      • SPEC

        public static final Name SPEC
        Name of the hydra.lisp.syntax.ImportDeclaration.spec field.
      • module

        public final NamespaceName module
        The module being imported
      • spec

        public final ImportSpec spec
        Import specification
    • Constructor Detail

      • ImportDeclaration

        public ImportDeclaration​(NamespaceName module,
                                 ImportSpec spec)
        Constructs an immutable ImportDeclaration.
        Parameters:
        module - The module being imported
        spec - Import specification