Class ModuleRequiresDirective
java.lang.Object
com.github.javaparser.ast.Node
com.github.javaparser.ast.modules.ModuleDirective
com.github.javaparser.ast.modules.ModuleRequiresDirective
- All Implemented Interfaces:
NodeWithStaticModifier<ModuleRequiresDirective>,NodeWithModifiers<ModuleRequiresDirective>,NodeWithName<ModuleRequiresDirective>,NodeWithRange<Node>,NodeWithTokenRange<Node>,Observable,Visitable,HasParentNode<Node>,Cloneable
public class ModuleRequiresDirective
extends ModuleDirective
implements NodeWithStaticModifier<ModuleRequiresDirective>, NodeWithName<ModuleRequiresDirective>
A require directive in module-info.java.
require a.b.C;-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.javaparser.ast.Node
Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversal -
Field Summary
Fields inherited from class com.github.javaparser.ast.Node
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, LINE_SEPARATOR_KEY, NODE_BY_BEGIN_POSITION, PHANTOM_KEY, prettyPrinterNoCommentsConfiguration, PRINTER_KEY, SYMBOL_RESOLVER_KEY -
Constructor Summary
ConstructorsConstructorDescriptionModuleRequiresDirective(NodeList<Modifier> modifiers, Name name)ModuleRequiresDirective(TokenRange tokenRange, NodeList<Modifier> modifiers, Name name)This constructor is used by the parser and is considered private. -
Method Summary
Modifier and TypeMethodDescription<R, A> Raccept(GenericVisitor<R,A> v, A arg)Accept method for visitor support.<A> voidaccept(VoidVisitor<A> v, A arg)Accept method for visitor support.clone()Return the modifiers of this variable declaration.getName()voidvoidbooleanbooleanbooleanbooleanbooleansetModifiers(NodeList<Modifier> modifiers)setTransitive(boolean set)Methods inherited from class com.github.javaparser.ast.modules.ModuleDirective
asModuleExportsDirective, asModuleExportsStmt, asModuleOpensDirective, asModuleOpensStmt, asModuleProvidesDirective, asModuleProvidesStmt, asModuleUsesDirective, asModuleUsesStmt, ifModuleExportsDirective, ifModuleExportsStmt, ifModuleOpensDirective, ifModuleOpensStmt, ifModuleProvidesDirective, ifModuleProvidesStmt, ifModuleUsesDirective, ifModuleUsesStmt, isModuleExportsDirective, isModuleExportsStmt, isModuleOpensDirective, isModuleOpensStmt, isModuleProvidesDirective, isModuleProvidesStmt, isModuleUsesDirective, isModuleUsesStmt, toModuleExportsDirective, toModuleExportsStmt, toModuleOpensDirective, toModuleOpensStmt, toModuleProvidesDirective, toModuleProvidesStmt, toModuleUsesDirective, toModuleUsesStmtMethods inherited from class com.github.javaparser.ast.Node
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, walkMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.javaparser.HasParentNode
findAncestor, findAncestor, findAncestor, hasParentNode, isDescendantOfMethods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithModifiers
addModifier, getAccessSpecifier, hasModifier, removeModifier, setModifier, setModifiersMethods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithName
getNameAsString, setNameMethods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithRange
containsWithin, containsWithinRange, getBegin, getEnd, hasRangeMethods inherited from interface com.github.javaparser.ast.nodeTypes.modifiers.NodeWithStaticModifier
isStatic, setStatic
-
Constructor Details
-
ModuleRequiresDirective
public ModuleRequiresDirective() -
ModuleRequiresDirective
-
ModuleRequiresDirective
This constructor is used by the parser and is considered private.
-
-
Method Details
-
accept
Description copied from interface:VisitableAccept method for visitor support.- Specified by:
acceptin interfaceVisitable- Type Parameters:
R- the type of the return value of the visitorA- the type the user argument passed to the visitor- Parameters:
v- the visitor implementationarg- the argument passed to the visitor (of type A)- Returns:
- the result of the visit (of type R)
-
accept
Description copied from interface:VisitableAccept method for visitor support. -
getModifiers
Description copied from interface:NodeWithModifiersReturn the modifiers of this variable declaration. Warning: modifying the returned set will not trigger observers, you have to use setModifiers for that.- Specified by:
getModifiersin interfaceNodeWithModifiers<ModuleRequiresDirective>- Returns:
- modifiers
- See Also:
Modifier
-
setModifiers
- Specified by:
setModifiersin interfaceNodeWithModifiers<ModuleRequiresDirective>
-
getName
- Specified by:
getNamein interfaceNodeWithName<ModuleRequiresDirective>
-
setName
- Specified by:
setNamein interfaceNodeWithName<ModuleRequiresDirective>
-
isTransitive
public boolean isTransitive() -
setTransitive
-
remove
-
clone
- Overrides:
clonein classModuleDirective
-
replace
-
isModuleRequiresStmt
public boolean isModuleRequiresStmt()- Overrides:
isModuleRequiresStmtin classModuleDirective
-
asModuleRequiresStmt
- Overrides:
asModuleRequiresStmtin classModuleDirective
-
ifModuleRequiresStmt
- Overrides:
ifModuleRequiresStmtin classModuleDirective
-
toModuleRequiresStmt
- Overrides:
toModuleRequiresStmtin classModuleDirective
-
isModuleRequiresDirective
public boolean isModuleRequiresDirective()- Overrides:
isModuleRequiresDirectivein classModuleDirective
-
asModuleRequiresDirective
- Overrides:
asModuleRequiresDirectivein classModuleDirective
-
toModuleRequiresDirective
- Overrides:
toModuleRequiresDirectivein classModuleDirective
-
ifModuleRequiresDirective
- Overrides:
ifModuleRequiresDirectivein classModuleDirective
-
getMetaModel
- Overrides:
getMetaModelin classModuleDirective- Returns:
- get JavaParser specific node introspection information.
-