Class Tree.WildTy

  • Enclosing class:
    Tree

    public static class Tree.WildTy
    extends Tree.Type
    A wildcard type, possibly with an upper or lower bound.
    • Constructor Detail

      • WildTy

        public WildTy​(int position,
                      com.google.common.collect.ImmutableList<Tree.Anno> annos,
                      java.util.Optional<Tree.Type> upper,
                      java.util.Optional<Tree.Type> lower)
    • 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
      • upper

        public java.util.Optional<Tree.Type> upper()
        An optional upper (extends) bound.

        At most one of upper and lower will be set.

      • lower

        public java.util.Optional<Tree.Type> lower()
        An optional lower (super) bound.

        At most one of upper and lower will be set.