public final class ModuleUsesStmt extends ModuleStmt implements NodeWithName<ModuleUsesStmt>
uses V.W;
Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversal
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration, SYMBOL_RESOLVER_KEY
Constructor and Description |
---|
ModuleUsesStmt() |
ModuleUsesStmt(Name name) |
ModuleUsesStmt(TokenRange tokenRange,
Name name)
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.
|
ModuleUsesStmt |
asModuleUsesStmt() |
ModuleUsesStmt |
clone() |
ModuleUsesStmtMetaModel |
getMetaModel() |
Name |
getName() |
void |
ifModuleUsesStmt(Consumer<ModuleUsesStmt> action) |
boolean |
isModuleUsesStmt() |
boolean |
remove(Node node) |
boolean |
replace(Node node,
Node replacementNode) |
ModuleUsesStmt |
setName(Name name) |
ModuleUsesStmt |
setType(Name name) |
Optional<ModuleUsesStmt> |
toModuleUsesStmt() |
asModuleExportsStmt, asModuleOpensStmt, asModuleProvidesStmt, asModuleRequiresStmt, ifModuleExportsStmt, ifModuleOpensStmt, ifModuleProvidesStmt, ifModuleRequiresStmt, isModuleExportsStmt, isModuleOpensStmt, isModuleProvidesStmt, isModuleRequiresStmt, toModuleExportsStmt, toModuleOpensStmt, toModuleProvidesStmt, toModuleRequiresStmt
addOrphanComment, containsData, customInitialization, equals, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getSymbolResolver, getTokenRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, 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, findParent, getAncestorOfType
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
public ModuleUsesStmt()
public ModuleUsesStmt(Name name)
public ModuleUsesStmt(TokenRange tokenRange, Name name)
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 boolean remove(Node node)
remove
in class ModuleStmt
public ModuleUsesStmt setType(Name name)
public ModuleUsesStmt clone()
clone
in class ModuleStmt
public ModuleUsesStmtMetaModel getMetaModel()
getMetaModel
in class ModuleStmt
public boolean isModuleUsesStmt()
isModuleUsesStmt
in class ModuleStmt
public ModuleUsesStmt asModuleUsesStmt()
asModuleUsesStmt
in class ModuleStmt
public void ifModuleUsesStmt(Consumer<ModuleUsesStmt> action)
ifModuleUsesStmt
in class ModuleStmt
public Optional<ModuleUsesStmt> toModuleUsesStmt()
toModuleUsesStmt
in class ModuleStmt
public Name getName()
getName
in interface NodeWithName<ModuleUsesStmt>
public ModuleUsesStmt setName(Name name)
setName
in interface NodeWithName<ModuleUsesStmt>
public boolean replace(Node node, Node replacementNode)
replace
in class ModuleStmt
Copyright © 2007–2018. All rights reserved.