public final class ModuleProvidesDirective extends ModuleDirective implements NodeWithName<ModuleProvidesDirective>
provides X.Y with Z1.Z2, Z3.Z4;Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversalABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration, SYMBOL_RESOLVER_KEY| Constructor and Description |
|---|
ModuleProvidesDirective() |
ModuleProvidesDirective(Name name,
NodeList<Name> with) |
ModuleProvidesDirective(TokenRange tokenRange,
Name name,
NodeList<Name> with)
This constructor is used by the parser and is considered private.
|
| Modifier and Type | Method and Description |
|---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
ModuleProvidesDirective |
asModuleProvidesDirective() |
ModuleProvidesDirective |
asModuleProvidesStmt() |
ModuleProvidesDirective |
clone() |
ModuleProvidesDirectiveMetaModel |
getMetaModel() |
Name |
getName() |
NodeList<Name> |
getWith() |
void |
ifModuleProvidesDirective(Consumer<ModuleProvidesDirective> action) |
void |
ifModuleProvidesStmt(Consumer<ModuleProvidesDirective> action) |
boolean |
isModuleProvidesDirective() |
boolean |
isModuleProvidesStmt() |
boolean |
remove(Node node) |
boolean |
replace(Node node,
Node replacementNode) |
ModuleProvidesDirective |
setName(Name name) |
ModuleProvidesDirective |
setWith(NodeList<Name> with) |
Optional<ModuleProvidesDirective> |
toModuleProvidesDirective() |
Optional<ModuleProvidesDirective> |
toModuleProvidesStmt() |
asModuleExportsDirective, asModuleExportsStmt, asModuleOpensDirective, asModuleOpensStmt, asModuleRequiresDirective, asModuleRequiresStmt, asModuleUsesDirective, asModuleUsesStmt, ifModuleExportsDirective, ifModuleExportsStmt, ifModuleOpensDirective, ifModuleOpensStmt, ifModuleRequiresDirective, ifModuleRequiresStmt, ifModuleUsesDirective, ifModuleUsesStmt, isModuleExportsDirective, isModuleExportsStmt, isModuleOpensDirective, isModuleOpensStmt, isModuleRequiresDirective, isModuleRequiresStmt, isModuleUsesDirective, isModuleUsesStmt, toModuleExportsDirective, toModuleExportsStmt, toModuleOpensDirective, toModuleOpensStmt, toModuleRequiresDirective, toModuleRequiresStmt, toModuleUsesDirective, toModuleUsesStmtaddOrphanComment, containsData, customInitialization, equals, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getSymbolResolver, getTokenRange, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeData, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walkfinalize, getClass, notify, notifyAll, wait, wait, waitgetNameAsString, setNamefindAncestor, findAncestorcontainsWithin, getBegin, getEndpublic ModuleProvidesDirective()
public ModuleProvidesDirective(TokenRange tokenRange, Name name, NodeList<Name> with)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitableaccept in interface VisitableR - the type of the return value of the visitorA - the type the user argument passed to the visitorv - the visitor implementationarg - the argument passed to the visitor (of type A)public <A> void accept(VoidVisitor<A> v, A arg)
Visitablepublic boolean remove(Node node)
remove in class ModuleDirectivepublic ModuleProvidesDirective clone()
clone in class ModuleDirectivepublic boolean isModuleProvidesStmt()
isModuleProvidesStmt in class ModuleDirectivepublic ModuleProvidesDirective asModuleProvidesStmt()
asModuleProvidesStmt in class ModuleDirectivepublic void ifModuleProvidesStmt(Consumer<ModuleProvidesDirective> action)
ifModuleProvidesStmt in class ModuleDirectivepublic Optional<ModuleProvidesDirective> toModuleProvidesStmt()
toModuleProvidesStmt in class ModuleDirectivepublic Name getName()
getName in interface NodeWithName<ModuleProvidesDirective>public ModuleProvidesDirective setName(Name name)
setName in interface NodeWithName<ModuleProvidesDirective>public ModuleProvidesDirective setWith(NodeList<Name> with)
public boolean replace(Node node, Node replacementNode)
replace in class ModuleDirectivepublic boolean isModuleProvidesDirective()
isModuleProvidesDirective in class ModuleDirectivepublic ModuleProvidesDirective asModuleProvidesDirective()
asModuleProvidesDirective in class ModuleDirectivepublic Optional<ModuleProvidesDirective> toModuleProvidesDirective()
toModuleProvidesDirective in class ModuleDirectivepublic void ifModuleProvidesDirective(Consumer<ModuleProvidesDirective> action)
ifModuleProvidesDirective in class ModuleDirectivepublic ModuleProvidesDirectiveMetaModel getMetaModel()
getMetaModel in class ModuleDirectiveCopyright © 2007–2019. All rights reserved.