APIdia Launch Partner
Top Description Methods
com.sun.source.tree

public Interface ProvidesTree

extends DirectiveTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCProvides
Imports
java.util.List

A tree node for a 'provides' directive in a module declaration. For example:
   provides service-name with implementation-name;
Since
9

Method Summary

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

Returns:

the names of the implementation types being provided
getImplementationNames
()

Returns the names of the implementation types being provided.

public ExpressionTree

Returns:

the name of the service type being provided
getServiceName
()

Returns the name of the service type being provided.

Method Detail

getImplementationNamesback to summary
public List<? extends ExpressionTree> getImplementationNames()

Returns the names of the implementation types being provided.

Returns:List<? extends ExpressionTree>

the names of the implementation types being provided

getServiceNameback to summary
public ExpressionTree getServiceName()

Returns the name of the service type being provided.

Returns:ExpressionTree

the name of the service type being provided