All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.pmd.lang.java.ast.ASTModuleOpensDirective Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
/**
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 */

package net.sourceforge.pmd.lang.java.ast;

import net.sourceforge.pmd.lang.ast.NodeStream;

/**
 * An "opens" directive of a {@linkplain ASTModuleDeclaration module declaration}.
 *
 * 
 *
 * ModuleOpensDirective ::=
 *     "opens" <PACKAGE_NAME>
 *     ( "to" {@linkplain ASTModuleName ModuleName} ( "," {@linkplain ASTModuleName ModuleName})* )?
 *     ";"
 *
 * 
*/ public final class ASTModuleOpensDirective extends AbstractPackageNameModuleDirective { ASTModuleOpensDirective(int id) { super(id); } @Override protected R acceptVisitor(JavaVisitor visitor, P data) { return visitor.visit(this, data); } /** * Returns a stream of the module names that are found after the "to" keyword. * May be empty */ public NodeStream getTargetModules() { return children(ASTModuleName.class); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy