Top Description Inners Methods
com.sun.source.tree

public Interface ModuleTree

extends Tree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCModuleDecl
Imports
java.util.List

A tree node for a module declaration. For example:
   annotations
   [open] module module-name {
       directives
   }
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
ModuleTree.ModuleKind

The kind of the module.

Method Summary

Modifier and TypeMethod and Description
public List<? extends AnnotationTree>

Returns:

the annotations
getAnnotations
()

Returns the annotations associated with this module declaration.

public List<? extends DirectiveTree>

Returns:

the directives in the module declaration
getDirectives
()

Returns the directives in the module declaration.

public ModuleTree.ModuleKind

Returns:

the type of this module
getModuleType
()

Returns the type of this module.

public ExpressionTree

Returns:

the name of the module
getName
()

Returns the name of the module.

Inherited from com.sun.source.tree.Tree:
acceptgetKind

Method Detail

getAnnotationsback to summary
public List<? extends AnnotationTree> getAnnotations()

Returns the annotations associated with this module declaration.

Returns:List<? extends AnnotationTree>

the annotations

getDirectivesback to summary
public List<? extends DirectiveTree> getDirectives()

Returns the directives in the module declaration.

Returns:List<? extends DirectiveTree>

the directives in the module declaration

getModuleTypeback to summary
public ModuleTree.ModuleKind getModuleType()

Returns the type of this module.

Returns:ModuleTree.ModuleKind

the type of this module

getNameback to summary
public ExpressionTree getName()

Returns the name of the module.

Returns:ExpressionTree

the name of the module

com.sun.source.tree back to summary

public final Enum ModuleTree.ModuleKind

extends Enum<ModuleTree.ModuleKind>
Class Inheritance

The kind of the module.

Field Summary

Modifier and TypeField and Description
public static final ModuleTree.ModuleKind
OPEN

Open module.

public static final ModuleTree.ModuleKind
STRONG

Strong module.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ModuleTree.ModuleKind
public static ModuleTree.ModuleKind[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

OPENback to summary
public static final ModuleTree.ModuleKind OPEN

Open module.

STRONGback to summary
public static final ModuleTree.ModuleKind STRONG

Strong module.

Constructor Detail

ModuleKindback to summary
private ModuleKind()

Method Detail

valueOfback to summary
public static ModuleTree.ModuleKind valueOf(String name)
valuesback to summary
public static ModuleTree.ModuleKind[] values()