public 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.TreeTraversal
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, LINE_SEPARATOR_KEY, NODE_BY_BEGIN_POSITION, PHANTOM_KEY, prettyPrinterNoCommentsConfiguration, PRINTER_KEY, 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, toModuleUsesStmt
addOrphanComment, containsData, createDefaultPrinter, createDefaultPrinter, customInitialization, equals, findAll, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getDataKeys, getDefaultPrinterConfiguration, getLineEndingStyle, getLineEndingStyleOrDefault, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getPrinter, getPrinter, getRange, getSymbolResolver, getTokenRange, hashCode, hasScope, isAncestorOf, isPhantom, 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, walk
finalize, getClass, notify, notifyAll, wait, wait, wait
getNameAsString, setName
findAncestor, findAncestor, findAncestor, hasParentNode, isDescendantOf
containsWithin, containsWithinRange, getBegin, getEnd, hasRange
public ModuleProvidesDirective()
public ModuleProvidesDirective(TokenRange tokenRange, Name name, NodeList<Name> with)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitable
accept
in interface Visitable
R
- 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)
Visitable
public ModuleProvidesDirective clone()
clone
in class ModuleDirective
public boolean isModuleProvidesStmt()
isModuleProvidesStmt
in class ModuleDirective
public ModuleProvidesDirective asModuleProvidesStmt()
asModuleProvidesStmt
in class ModuleDirective
public void ifModuleProvidesStmt(Consumer<ModuleProvidesDirective> action)
ifModuleProvidesStmt
in class ModuleDirective
public Optional<ModuleProvidesDirective> toModuleProvidesStmt()
toModuleProvidesStmt
in class ModuleDirective
public 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 isModuleProvidesDirective()
isModuleProvidesDirective
in class ModuleDirective
public ModuleProvidesDirective asModuleProvidesDirective()
asModuleProvidesDirective
in class ModuleDirective
public Optional<ModuleProvidesDirective> toModuleProvidesDirective()
toModuleProvidesDirective
in class ModuleDirective
public void ifModuleProvidesDirective(Consumer<ModuleProvidesDirective> action)
ifModuleProvidesDirective
in class ModuleDirective
public ModuleProvidesDirectiveMetaModel getMetaModel()
getMetaModel
in class ModuleDirective
Copyright © 2007–2024. All rights reserved.