Class ImportDeclaration

    • Constructor Detail

      • ImportDeclaration

        public ImportDeclaration​(String name,
                                 boolean isStatic,
                                 boolean isAsterisk)
      • ImportDeclaration

        public ImportDeclaration​(Name name,
                                 boolean isStatic,
                                 boolean isAsterisk)
      • ImportDeclaration

        public ImportDeclaration​(TokenRange tokenRange,
                                 Name name,
                                 boolean isStatic,
                                 boolean isAsterisk)
        This constructor is used by the parser and is considered private.
    • Method Detail

      • accept

        public <R,​A> R accept​(GenericVisitor<R,​A> v,
                                    A arg)
        Description copied from interface: Visitable
        Accept method for visitor support.
        Specified by:
        accept in interface Visitable
        Type Parameters:
        R - the type of the return value of the visitor
        A - the type the user argument passed to the visitor
        Parameters:
        v - the visitor implementation
        arg - the argument passed to the visitor (of type A)
        Returns:
        the result of the visit (of type R)
      • accept

        public <A> void accept​(VoidVisitor<A> v,
                               A arg)
        Description copied from interface: Visitable
        Accept method for visitor support.
        Specified by:
        accept in interface Visitable
        Type Parameters:
        A - the type the argument passed for the visitor
        Parameters:
        v - the visitor implementation
        arg - any value relevant for the visitor (of type A)
      • isAsterisk

        public boolean isAsterisk()
        Return if the import ends with "*".
      • isStatic

        public boolean isStatic()
      • remove

        public boolean remove​(Node node)
        Overrides:
        remove in class Node
      • replace

        public boolean replace​(Node node,
                               Node replacementNode)
        Overrides:
        replace in class Node