Class Tree.TyDecl

  • Enclosing class:
    Tree

    public static class Tree.TyDecl
    extends Tree
    A JLS 7.6 or 8.5 type declaration.
    • Constructor Detail

      • TyDecl

        public TyDecl​(int position,
                      java.util.Set<TurbineModifier> mods,
                      com.google.common.collect.ImmutableList<Tree.Anno> annos,
                      Tree.Ident name,
                      com.google.common.collect.ImmutableList<Tree.TyParam> typarams,
                      java.util.Optional<Tree.ClassTy> xtnds,
                      com.google.common.collect.ImmutableList<Tree.ClassTy> impls,
                      com.google.common.collect.ImmutableList<Tree.ClassTy> permits,
                      com.google.common.collect.ImmutableList<Tree> members,
                      com.google.common.collect.ImmutableList<Tree.VarDecl> components,
                      TurbineTyKind tykind,
                      @Nullable java.lang.String javadoc)
    • 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
      • mods

        public com.google.common.collect.ImmutableSet<TurbineModifier> mods()
      • annos

        public com.google.common.collect.ImmutableList<Tree.Anno> annos()
      • typarams

        public com.google.common.collect.ImmutableList<Tree.TyParam> typarams()
      • impls

        public com.google.common.collect.ImmutableList<Tree.ClassTy> impls()
      • permits

        public com.google.common.collect.ImmutableList<Tree.ClassTy> permits()
      • members

        public com.google.common.collect.ImmutableList<Tree> members()
      • components

        public com.google.common.collect.ImmutableList<Tree.VarDecl> components()
      • javadoc

        public @Nullable java.lang.String javadoc()
        A javadoc comment, excluding the opening and closing delimiters but including all interior characters and whitespace.