Class Tree.ImportDecl

  • Enclosing class:
    Tree

    public static class Tree.ImportDecl
    extends Tree
    A JLS 7.5 import declaration.
    • Constructor Detail

      • ImportDecl

        public ImportDecl​(int position,
                          com.google.common.collect.ImmutableList<Tree.Ident> type,
                          boolean stat,
                          boolean wild)
    • Method Detail

      • accept

        public <I extends @Nullable java.lang.Object,​O extends @Nullable java.lang.Object> O accept​(Tree.Visitor<I,​O> visitor,
                                                                                                          I input)
        Specified by:
        accept in class Tree
      • type

        public com.google.common.collect.ImmutableList<Tree.Ident> type()
      • stat

        public boolean stat()
        Returns true for static member imports.
      • wild

        public boolean wild()
        Returns true for wildcard imports.