Package com.google.turbine.tree
Class Tree.ModRequires
- java.lang.Object
-
- com.google.turbine.tree.Tree
-
- com.google.turbine.tree.Tree.ModDirective
-
- com.google.turbine.tree.Tree.ModRequires
-
- Enclosing class:
- Tree
public static class Tree.ModRequires extends Tree.ModDirective
A JLS 7.7.1 module requires directive.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.turbine.tree.Tree.ModDirective
Tree.ModDirective.DirectiveKind
-
Nested classes/interfaces inherited from class com.google.turbine.tree.Tree
Tree.Anno, Tree.AnnoExpr, Tree.ArrayInit, Tree.ArrTy, Tree.Assign, Tree.Binary, Tree.ClassLiteral, Tree.ClassTy, Tree.CompUnit, Tree.Conditional, Tree.ConstVarName, Tree.Expression, Tree.Ident, Tree.ImportDecl, Tree.Kind, Tree.Literal, Tree.MethDecl, Tree.ModDecl, Tree.ModDirective, Tree.ModExports, Tree.ModOpens, Tree.ModProvides, Tree.ModRequires, Tree.ModUses, Tree.Paren, Tree.PkgDecl, Tree.PrimTy, Tree.TyDecl, Tree.TyParam, Tree.Type, Tree.TypeCast, Tree.Unary, Tree.VarDecl, Tree.Visitor<I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object>, Tree.VoidTy, Tree.WildTy
-
-
Constructor Summary
Constructors Constructor Description ModRequires(int position, com.google.common.collect.ImmutableSet<TurbineModifier> mods, java.lang.String moduleName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object>
Oaccept(Tree.Visitor<I,O> visitor, I input)Tree.ModDirective.DirectiveKinddirectiveKind()Tree.Kindkind()com.google.common.collect.ImmutableSet<TurbineModifier>mods()java.lang.StringmoduleName()
-
-
-
Constructor Detail
-
ModRequires
public ModRequires(int position, com.google.common.collect.ImmutableSet<TurbineModifier> mods, java.lang.String moduleName)
-
-
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)
-
mods
public com.google.common.collect.ImmutableSet<TurbineModifier> mods()
-
moduleName
public java.lang.String moduleName()
-
directiveKind
public Tree.ModDirective.DirectiveKind directiveKind()
- Specified by:
directiveKindin classTree.ModDirective
-
-