Uses of Class
com.github.javaparser.ast.NodeList
Packages that use NodeList
Package
Description
Implementation of model based on JavaParser.
-
Uses of NodeList in com.github.javaparser
Fields in com.github.javaparser declared as NodeListModifier and TypeFieldDescription(package private) final NodeList
<AnnotationExpr> ModifierHolder.annotations
RangedList.list
ModifierHolder.modifiers
Methods in com.github.javaparser that return NodeListModifier and TypeMethodDescriptionAdd obj to list and return it.GeneratedJavaParserBase.addWhenNotNull
(NodeList<T> list, T obj) Add obj to list only when list is not nullfinal NodeList
<AnnotationExpr> GeneratedJavaParser.Annotations()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.7final NodeList
<BodyDeclaration<?>> GeneratedJavaParser.AnnotationTypeBody()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.6.1final NodeList
<Expression> GeneratedJavaParser.ArgumentList()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.12final NodeList
<Expression> GeneratedJavaParser.Arguments()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.12final NodeList
<BodyDeclaration<?>> GeneratedJavaParser.ClassOrInterfaceBody()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.1.6GeneratedJavaParserBase.emptyNodeList()
Quickly create a new, empty, NodeListfinal NodeList
<Expression> GeneratedJavaParser.ExpressionList()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14final NodeList
<ClassOrInterfaceType> GeneratedJavaParser.ExtendsList()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.1.4final NodeList
<Expression> GeneratedJavaParser.ForInit()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14final NodeList
<Expression> GeneratedJavaParser.ForUpdate()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14final NodeList
<ClassOrInterfaceType> GeneratedJavaParser.ImplementsList()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.1.5GeneratedJavaParser.InferredLambdaParameters()
Note: Similar, but not identical to,FormalParameter
.GeneratedJavaParser.LambdaParameters()
Note: Similar, but not identical to,FormalParameter
.final NodeList
<MemberValuePair> GeneratedJavaParser.MemberValuePairs()
Note thatMemberValuePairs
(JavaParser) is synonymous withElementValuePairList
(JLS) https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.7.1final NodeList
<PatternExpr> GeneratedJavaParser.PatternList()
https://openjdk.org/jeps/440final NodeList
<ClassOrInterfaceType> GeneratedJavaParser.PermitsList()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.1.5Add obj to list at position posfinal NodeList
<BodyDeclaration<?>> GeneratedJavaParser.RecordBody()
Everything that can go into a "regular" class or interface declaration, can also (usually) be included within a record.final NodeList
<Expression> GeneratedJavaParser.Resources()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.20.3final NodeList
<Expression> GeneratedJavaParser.ResourceSpecification()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.20.3GeneratedJavaParser.Statements()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.5final NodeList
<ClassOrInterfaceType> GeneratedJavaParser.TypeBound()
https://docs.oracle.com/javase/specs/jls/se15/html/jls-4.html#jls-4.4Methods in com.github.javaparser that return types with arguments of type NodeListModifier and TypeMethodDescriptionfinal Pair
<NodeList<Parameter>, ReceiverParameter> GeneratedJavaParser.Parameters()
The JLS refers to parameters asFormalParameter
.Methods in com.github.javaparser with parameters of type NodeListModifier and TypeMethodDescriptionAdd obj to list and return it.GeneratedJavaParserBase.addWhenNotNull
(NodeList<T> list, T obj) Add obj to list only when list is not nullfinal ClassOrInterfaceType
GeneratedJavaParser.ClassOrInterfaceType
(NodeList<AnnotationExpr> firstAnnotations) final IntersectionType
GeneratedJavaParser.IntersectionType
(NodeList<AnnotationExpr> annotations) https://docs.oracle.com/javase/specs/jls/se15/html/jls-4.html#jls-4.9 An intersection type takes the form T1 invalid input: '&' ...(package private) ArrayCreationExpr
GeneratedJavaParserBase.juggleArrayCreation
(TokenRange range, List<TokenRange> levelRanges, Type type, NodeList<Expression> dimensions, List<NodeList<AnnotationExpr>> arrayAnnotations, ArrayInitializerExpr arrayInitializerExpr) Throws together an ArrayCreationExpr from a lot of pieces(package private) JavaToken
GeneratedJavaParserBase.nodeListBegin
(NodeList<?> l) Get the token that starts the NodeList lAdd obj to list at position posfinal PrimitiveType
GeneratedJavaParser.PrimitiveType
(NodeList<AnnotationExpr> annotations) Note thatchar
andbyte
are treated as anIntegralType
, which is a subtype ofNumericType
.final ReferenceType
GeneratedJavaParser.ReferenceType
(NodeList<AnnotationExpr> annotations) // TODO: JLS Has type and unannotated type, while JavaParser has type and annotated type.final Type
GeneratedJavaParser.ResultType
(NodeList<AnnotationExpr> annotations) https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.4.5final Type
GeneratedJavaParser.Type
(NodeList<AnnotationExpr> annotations) https://docs.oracle.com/javase/specs/jls/se15/html/jls-4.html#jls-4.1final TypeParameter
GeneratedJavaParser.TypeParameter
(NodeList<AnnotationExpr> annotations) Note that theTypeParameterModifier
is defined as anAnnotation
.final WildcardType
GeneratedJavaParser.Wildcard
(NodeList<AnnotationExpr> firstAnnotations) https://docs.oracle.com/javase/specs/jls/se15/html/jls-4.html#jls-4.5.1Constructors in com.github.javaparser with parameters of type NodeListModifierConstructorDescription(package private)
ModifierHolder
(JavaToken begin, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations) (package private)
RangedList
(NodeList<T> list) -
Uses of NodeList in com.github.javaparser.ast
Fields in com.github.javaparser.ast declared as NodeListModifier and TypeFieldDescriptionprivate NodeList
<AnnotationExpr> ArrayCreationLevel.annotations
private NodeList
<AnnotationExpr> PackageDeclaration.annotations
private NodeList
<ImportDeclaration> CompilationUnit.imports
private NodeList
<TypeDeclaration<?>> CompilationUnit.types
Methods in com.github.javaparser.ast that return NodeListModifier and TypeMethodDescriptionInserts the node after afterThisNode.Inserts the node before beforeThisNode.Inserts the node before all other nodes.Inserts the node after all other nodes.Modifier.createModifierList
(Modifier.Keyword... modifiers) Utility method that instantiaties "Modifier"s for the keywords, and puts them in a NodeList.ArrayCreationLevel.getAnnotations()
PackageDeclaration.getAnnotations()
Retrieves the list of annotations declared before the package declaration.CompilationUnit.getImports()
Retrieves the list of imports declared in this compilation unit ornull
if there is no import.CompilationUnit.getTypes()
Return the list of top level types declared in this compilation unit.
If there are no types declared,none
is returned.NodeList.nodeList
(Collection<X> nodes) NodeList.nodeList
(X... nodes) NodeList.setParentNode
(Node parentNode) Sets the parentNodeMethods in com.github.javaparser.ast that return types with arguments of type NodeListMethods in com.github.javaparser.ast with parameters of type NodeListModifier and TypeMethodDescriptionvoid
ArrayCreationLevel.setAnnotations
(NodeList<AnnotationExpr> annotations) PackageDeclaration.setAnnotations
(NodeList<AnnotationExpr> annotations) protected void
Node.setAsParentNodeOf
(NodeList<? extends Node> list) CompilationUnit.setImports
(NodeList<ImportDeclaration> imports) Sets the list of imports of this compilation unit.CompilationUnit.setTypes
(NodeList<TypeDeclaration<?>> types) Sets the list of types declared in this compilation unit.Method parameters in com.github.javaparser.ast with type arguments of type NodeListModifier and TypeMethodDescriptionvoid
NodeList.ifNonEmpty
(Consumer<? super NodeList<N>> consumer) Constructors in com.github.javaparser.ast with parameters of type NodeListModifierConstructorDescriptionArrayCreationLevel
(Expression dimension, NodeList<AnnotationExpr> annotations) ArrayCreationLevel
(TokenRange tokenRange, Expression dimension, NodeList<AnnotationExpr> annotations) This constructor is used by the parser and is considered private.CompilationUnit
(PackageDeclaration packageDeclaration, NodeList<ImportDeclaration> imports, NodeList<TypeDeclaration<?>> types, ModuleDeclaration module) CompilationUnit
(TokenRange tokenRange, PackageDeclaration packageDeclaration, NodeList<ImportDeclaration> imports, NodeList<TypeDeclaration<?>> types, ModuleDeclaration module) This constructor is used by the parser and is considered private.PackageDeclaration
(NodeList<AnnotationExpr> annotations, Name name) PackageDeclaration
(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Name name) This constructor is used by the parser and is considered private. -
Uses of NodeList in com.github.javaparser.ast.body
Fields in com.github.javaparser.ast.body declared as NodeListModifier and TypeFieldDescriptionprivate NodeList
<AnnotationExpr> BodyDeclaration.annotations
private NodeList
<AnnotationExpr> Parameter.annotations
private NodeList
<AnnotationExpr> ReceiverParameter.annotations
private NodeList
<Expression> EnumConstantDeclaration.arguments
private NodeList
<BodyDeclaration<?>> EnumConstantDeclaration.classBody
private NodeList
<EnumConstantDeclaration> EnumDeclaration.entries
private NodeList
<ClassOrInterfaceType> ClassOrInterfaceDeclaration.extendedTypes
private NodeList
<ClassOrInterfaceType> ClassOrInterfaceDeclaration.implementedTypes
private NodeList
<ClassOrInterfaceType> EnumDeclaration.implementedTypes
private NodeList
<ClassOrInterfaceType> RecordDeclaration.implementedTypes
private NodeList
<BodyDeclaration<?>> TypeDeclaration.members
AnnotationMemberDeclaration.modifiers
CallableDeclaration.modifiers
CompactConstructorDeclaration.modifiers
FieldDeclaration.modifiers
Parameter.modifiers
TypeDeclaration.modifiers
CallableDeclaration.parameters
RecordDeclaration.parameters
private NodeList
<ClassOrInterfaceType> ClassOrInterfaceDeclaration.permittedTypes
private NodeList
<ReferenceType> CallableDeclaration.thrownExceptions
private NodeList
<ReferenceType> CompactConstructorDeclaration.thrownExceptions
private NodeList
<TypeParameter> CallableDeclaration.typeParameters
private NodeList
<TypeParameter> ClassOrInterfaceDeclaration.typeParameters
private NodeList
<TypeParameter> CompactConstructorDeclaration.typeParameters
private NodeList
<TypeParameter> RecordDeclaration.typeParameters
private NodeList
<AnnotationExpr> Parameter.varArgsAnnotations
private NodeList
<VariableDeclarator> FieldDeclaration.variables
Methods in com.github.javaparser.ast.body that return NodeListModifier and TypeMethodDescriptionBodyDeclaration.getAnnotations()
Parameter.getAnnotations()
ReceiverParameter.getAnnotations()
EnumConstantDeclaration.getArguments()
EnumConstantDeclaration.getClassBody()
EnumDeclaration.getEntries()
ClassOrInterfaceDeclaration.getExtendedTypes()
ClassOrInterfaceDeclaration.getImplementedTypes()
EnumDeclaration.getImplementedTypes()
RecordDeclaration.getImplementedTypes()
TypeDeclaration.getMembers()
AnnotationMemberDeclaration.getModifiers()
Return the modifiers of this member declaration.CallableDeclaration.getModifiers()
Return the modifiers of this member declaration.CompactConstructorDeclaration.getModifiers()
FieldDeclaration.getModifiers()
Return the modifiers of this member declaration.Parameter.getModifiers()
Return the modifiers of this parameter declaration.TypeDeclaration.getModifiers()
Return the modifiers of this type declaration.CallableDeclaration.getParameters()
RecordDeclaration.getParameters()
Type declarations do not normally have parameters - e.g.ClassOrInterfaceDeclaration.getPermittedTypes()
CallableDeclaration.getThrownExceptions()
CompactConstructorDeclaration.getThrownExceptions()
CallableDeclaration.getTypeParameters()
ClassOrInterfaceDeclaration.getTypeParameters()
CompactConstructorDeclaration.getTypeParameters()
RecordDeclaration.getTypeParameters()
Parameter.getVarArgsAnnotations()
FieldDeclaration.getVariables()
Methods in com.github.javaparser.ast.body with parameters of type NodeListModifier and TypeMethodDescriptionBodyDeclaration.setAnnotations
(NodeList<AnnotationExpr> annotations) Parameter.setAnnotations
(NodeList<AnnotationExpr> annotations) ReceiverParameter.setAnnotations
(NodeList<AnnotationExpr> annotations) EnumConstantDeclaration.setArguments
(NodeList<Expression> arguments) EnumConstantDeclaration.setClassBody
(NodeList<BodyDeclaration<?>> classBody) EnumDeclaration.setEntries
(NodeList<EnumConstantDeclaration> entries) ClassOrInterfaceDeclaration.setExtendedTypes
(NodeList<ClassOrInterfaceType> extendedTypes) ClassOrInterfaceDeclaration.setImplementedTypes
(NodeList<ClassOrInterfaceType> implementedTypes) EnumDeclaration.setImplementedTypes
(NodeList<ClassOrInterfaceType> implementedTypes) RecordDeclaration.setImplementedTypes
(NodeList<ClassOrInterfaceType> implementedTypes) TypeDeclaration.setMembers
(NodeList<BodyDeclaration<?>> members) AnnotationMemberDeclaration.setModifiers
(NodeList<Modifier> modifiers) CallableDeclaration.setModifiers
(NodeList<Modifier> modifiers) CompactConstructorDeclaration.setModifiers
(NodeList<Modifier> modifiers) ConstructorDeclaration.setModifiers
(NodeList<Modifier> modifiers) FieldDeclaration.setModifiers
(NodeList<Modifier> modifiers) MethodDeclaration.setModifiers
(NodeList<Modifier> modifiers) Parameter.setModifiers
(NodeList<Modifier> modifiers) TypeDeclaration.setModifiers
(NodeList<Modifier> modifiers) CallableDeclaration.setParameters
(NodeList<Parameter> parameters) ConstructorDeclaration.setParameters
(NodeList<Parameter> parameters) MethodDeclaration.setParameters
(NodeList<Parameter> parameters) RecordDeclaration.setParameters
(NodeList<Parameter> parameters) ClassOrInterfaceDeclaration.setPermittedTypes
(NodeList<ClassOrInterfaceType> permittedTypes) CallableDeclaration.setThrownExceptions
(NodeList<ReferenceType> thrownExceptions) CompactConstructorDeclaration.setThrownExceptions
(NodeList<ReferenceType> thrownExceptions) ConstructorDeclaration.setThrownExceptions
(NodeList<ReferenceType> thrownExceptions) MethodDeclaration.setThrownExceptions
(NodeList<ReferenceType> thrownExceptions) CallableDeclaration.setTypeParameters
(NodeList<TypeParameter> typeParameters) ClassOrInterfaceDeclaration.setTypeParameters
(NodeList<TypeParameter> typeParameters) CompactConstructorDeclaration.setTypeParameters
(NodeList<TypeParameter> typeParameters) ConstructorDeclaration.setTypeParameters
(NodeList<TypeParameter> typeParameters) MethodDeclaration.setTypeParameters
(NodeList<TypeParameter> typeParameters) RecordDeclaration.setTypeParameters
(NodeList<TypeParameter> typeParameters) Parameter.setVarArgsAnnotations
(NodeList<AnnotationExpr> varArgsAnnotations) FieldDeclaration.setVariables
(NodeList<VariableDeclarator> variables) Constructors in com.github.javaparser.ast.body with parameters of type NodeListModifierConstructorDescriptionAnnotationDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members) AnnotationDeclaration
(NodeList<Modifier> modifiers, String name) AnnotationDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members) This constructor is used by the parser and is considered private.AnnotationMemberDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue) AnnotationMemberDeclaration
(NodeList<Modifier> modifiers, Type type, String name, Expression defaultValue) AnnotationMemberDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, SimpleName name, Expression defaultValue) This constructor is used by the parser and is considered private.BodyDeclaration
(NodeList<AnnotationExpr> annotations) BodyDeclaration
(TokenRange tokenRange, NodeList<AnnotationExpr> annotations) This constructor is used by the parser and is considered private.(package private)
CallableDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, ReceiverParameter receiverParameter) CallableDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, ReceiverParameter receiverParameter) This constructor is used by the parser and is considered private.ClassOrInterfaceDeclaration
(NodeList<Modifier> modifiers, boolean isInterface, String name) ClassOrInterfaceDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, boolean isInterface, SimpleName name, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> extendedTypes, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<ClassOrInterfaceType> permittedTypes, NodeList<BodyDeclaration<?>> members) ClassOrInterfaceDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, boolean isInterface, SimpleName name, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> extendedTypes, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<ClassOrInterfaceType> permittedTypes, NodeList<BodyDeclaration<?>> members) This constructor is used by the parser and is considered private.CompactConstructorDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<ReferenceType> thrownExceptions, BlockStmt body) CompactConstructorDeclaration
(NodeList<Modifier> modifiers, String name) CompactConstructorDeclaration
(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, BlockStmt body) This constructor is used by the parser and is considered private.CompactConstructorDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<ReferenceType> thrownExceptions, BlockStmt body) This constructor is used by the parser and is considered private.ConstructorDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body) ConstructorDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverParameter receiverParameter) ConstructorDeclaration
(NodeList<Modifier> modifiers, String name) ConstructorDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverParameter receiverParameter) This constructor is used by the parser and is considered private.EnumConstantDeclaration
(NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Expression> arguments, NodeList<BodyDeclaration<?>> classBody) EnumConstantDeclaration
(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Expression> arguments, NodeList<BodyDeclaration<?>> classBody) This constructor is used by the parser and is considered private.EnumDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<EnumConstantDeclaration> entries, NodeList<BodyDeclaration<?>> members) EnumDeclaration
(NodeList<Modifier> modifiers, String name) EnumDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<EnumConstantDeclaration> entries, NodeList<BodyDeclaration<?>> members) This constructor is used by the parser and is considered private.FieldDeclaration
(NodeList<Modifier> modifiers, VariableDeclarator variable) FieldDeclaration
(NodeList<Modifier> modifiers, NodeList<VariableDeclarator> variables) FieldDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables) FieldDeclaration
(NodeList<Modifier> modifiers, Type type, String name) Creates aFieldDeclaration
.FieldDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables) This constructor is used by the parser and is considered private.MethodDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, Type type, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body) MethodDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, Type type, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverParameter receiverParameter) MethodDeclaration
(NodeList<Modifier> modifiers, Type type, String name) MethodDeclaration
(NodeList<Modifier> modifiers, String name, Type type, NodeList<Parameter> parameters) MethodDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, Type type, SimpleName name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverParameter receiverParameter) This constructor is used by the parser and is considered private.Parameter
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, boolean isVarArgs, NodeList<AnnotationExpr> varArgsAnnotations, SimpleName name) Parameter
(NodeList<Modifier> modifiers, Type type, SimpleName name) Parameter
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, boolean isVarArgs, NodeList<AnnotationExpr> varArgsAnnotations, SimpleName name) This constructor is used by the parser and is considered private.ReceiverParameter
(NodeList<AnnotationExpr> annotations, Type type, Name name) ReceiverParameter
(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Type type, Name name) This constructor is used by the parser and is considered private.RecordDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Parameter> parameters, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members, ReceiverParameter receiverParameter) RecordDeclaration
(NodeList<Modifier> modifiers, String name) RecordDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Parameter> parameters, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members, ReceiverParameter receiverParameter) This constructor is used by the parser and is considered private.TypeDeclaration
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members) TypeDeclaration
(NodeList<Modifier> modifiers, String name) TypeDeclaration
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members) This constructor is used by the parser and is considered private. -
Uses of NodeList in com.github.javaparser.ast.expr
Fields in com.github.javaparser.ast.expr declared as NodeListModifier and TypeFieldDescriptionprivate NodeList
<AnnotationExpr> VariableDeclarationExpr.annotations
private NodeList
<BodyDeclaration<?>> ObjectCreationExpr.anonymousClassBody
private NodeList
<Expression> MethodCallExpr.arguments
private NodeList
<Expression> ObjectCreationExpr.arguments
private NodeList
<SwitchEntry> SwitchExpr.entries
private NodeList
<ArrayCreationLevel> ArrayCreationExpr.levels
RecordPatternExpr.modifiers
TypePatternExpr.modifiers
VariableDeclarationExpr.modifiers
private NodeList
<MemberValuePair> NormalAnnotationExpr.pairs
LambdaExpr.parameters
private NodeList
<PatternExpr> RecordPatternExpr.patternList
FieldAccessExpr.typeArguments
MethodCallExpr.typeArguments
MethodReferenceExpr.typeArguments
ObjectCreationExpr.typeArguments
private NodeList
<Expression> ArrayInitializerExpr.values
private NodeList
<VariableDeclarator> VariableDeclarationExpr.variables
Methods in com.github.javaparser.ast.expr that return NodeListModifier and TypeMethodDescriptionVariableDeclarationExpr.getAnnotations()
MethodCallExpr.getArguments()
ObjectCreationExpr.getArguments()
SwitchExpr.getEntries()
ArrayCreationExpr.getLevels()
RecordPatternExpr.getModifiers()
TypePatternExpr.getModifiers()
VariableDeclarationExpr.getModifiers()
Return the modifiers of this variable declaration.NormalAnnotationExpr.getPairs()
LambdaExpr.getParameters()
RecordPatternExpr.getPatternList()
ArrayInitializerExpr.getValues()
VariableDeclarationExpr.getVariables()
Methods in com.github.javaparser.ast.expr that return types with arguments of type NodeListModifier and TypeMethodDescriptionObjectCreationExpr.getAnonymousClassBody()
FieldAccessExpr.getTypeArguments()
MethodCallExpr.getTypeArguments()
MethodReferenceExpr.getTypeArguments()
ObjectCreationExpr.getTypeArguments()
Methods in com.github.javaparser.ast.expr with parameters of type NodeListModifier and TypeMethodDescriptionVariableDeclarationExpr.setAnnotations
(NodeList<AnnotationExpr> annotations) ObjectCreationExpr.setAnonymousClassBody
(NodeList<BodyDeclaration<?>> anonymousClassBody) Sets the anonymousClassBody
Null means no class body
Empty NodeList means new ClassName(){ }MethodCallExpr.setArguments
(NodeList<Expression> arguments) ObjectCreationExpr.setArguments
(NodeList<Expression> arguments) SwitchExpr.setEntries
(NodeList<SwitchEntry> entries) ArrayCreationExpr.setLevels
(NodeList<ArrayCreationLevel> levels) RecordPatternExpr.setModifiers
(NodeList<Modifier> modifiers) TypePatternExpr.setModifiers
(NodeList<Modifier> modifiers) VariableDeclarationExpr.setModifiers
(NodeList<Modifier> modifiers) NormalAnnotationExpr.setPairs
(NodeList<MemberValuePair> pairs) LambdaExpr.setParameters
(NodeList<Parameter> parameters) RecordPatternExpr.setPatternList
(NodeList<PatternExpr> patternList) FieldAccessExpr.setTypeArguments
(NodeList<Type> typeArguments) Sets the type argumentsMethodCallExpr.setTypeArguments
(NodeList<Type> typeArguments) Sets the typeArgumentsMethodReferenceExpr.setTypeArguments
(NodeList<Type> typeArguments) Sets the typeArgumentsObjectCreationExpr.setTypeArguments
(NodeList<Type> typeArguments) Sets the typeArgumentsArrayInitializerExpr.setValues
(NodeList<Expression> values) VariableDeclarationExpr.setVariables
(NodeList<VariableDeclarator> variables) Constructors in com.github.javaparser.ast.expr with parameters of type NodeListModifierConstructorDescriptionArrayCreationExpr
(Type elementType, NodeList<ArrayCreationLevel> levels, ArrayInitializerExpr initializer) ArrayCreationExpr
(TokenRange tokenRange, Type elementType, NodeList<ArrayCreationLevel> levels, ArrayInitializerExpr initializer) This constructor is used by the parser and is considered private.ArrayInitializerExpr
(NodeList<Expression> values) ArrayInitializerExpr
(TokenRange tokenRange, NodeList<Expression> values) This constructor is used by the parser and is considered private.FieldAccessExpr
(Expression scope, NodeList<Type> typeArguments, SimpleName name) FieldAccessExpr
(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, SimpleName name) This constructor is used by the parser and is considered private.LambdaExpr
(NodeList<Parameter> parameters, Expression body) Creates a zero or multi-parameter lambda expression with its parameters wrapped in ( ).LambdaExpr
(NodeList<Parameter> parameters, BlockStmt body) Creates a zero or multi-parameter lambda expression with its parameters wrapped in ( ).LambdaExpr
(NodeList<Parameter> parameters, Statement body, boolean isEnclosingParameters) LambdaExpr
(TokenRange tokenRange, NodeList<Parameter> parameters, Statement body, boolean isEnclosingParameters) This constructor is used by the parser and is considered private.MethodCallExpr
(Expression scope, SimpleName name, NodeList<Expression> arguments) MethodCallExpr
(Expression scope, NodeList<Type> typeArguments, SimpleName name, NodeList<Expression> arguments) MethodCallExpr
(Expression scope, NodeList<Type> typeArguments, String name, NodeList<Expression> arguments) MethodCallExpr
(Expression scope, String name, NodeList<Expression> arguments) MethodCallExpr
(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, SimpleName name, NodeList<Expression> arguments) This constructor is used by the parser and is considered private.MethodReferenceExpr
(Expression scope, NodeList<Type> typeArguments, String identifier) MethodReferenceExpr
(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, String identifier) This constructor is used by the parser and is considered private.NormalAnnotationExpr
(Name name, NodeList<MemberValuePair> pairs) NormalAnnotationExpr
(TokenRange tokenRange, Name name, NodeList<MemberValuePair> pairs) This constructor is used by the parser and is considered private.ObjectCreationExpr
(Expression scope, ClassOrInterfaceType type, NodeList<Expression> arguments) Defines a call to a constructor.ObjectCreationExpr
(Expression scope, ClassOrInterfaceType type, NodeList<Type> typeArguments, NodeList<Expression> arguments, NodeList<BodyDeclaration<?>> anonymousClassBody) ObjectCreationExpr
(TokenRange tokenRange, Expression scope, ClassOrInterfaceType type, NodeList<Type> typeArguments, NodeList<Expression> arguments, NodeList<BodyDeclaration<?>> anonymousClassBody) This constructor is used by the parser and is considered private.RecordPatternExpr
(NodeList<Modifier> modifiers, Type type, NodeList<PatternExpr> patternList) RecordPatternExpr
(TokenRange tokenRange, NodeList<Modifier> modifiers, Type type, NodeList<PatternExpr> patternList) This constructor is used by the parser and is considered private.SwitchExpr
(Expression selector, NodeList<SwitchEntry> entries) SwitchExpr
(TokenRange tokenRange, Expression selector, NodeList<SwitchEntry> entries) This constructor is used by the parser and is considered private.TypePatternExpr
(NodeList<Modifier> modifiers, Type type, SimpleName name) TypePatternExpr
(TokenRange tokenRange, NodeList<Modifier> modifiers, Type type, SimpleName name) This constructor is used by the parser and is considered private.VariableDeclarationExpr
(NodeList<VariableDeclarator> variables) VariableDeclarationExpr
(NodeList<Modifier> modifiers, NodeList<VariableDeclarator> variables) VariableDeclarationExpr
(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables) VariableDeclarationExpr
(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables) This constructor is used by the parser and is considered private. -
Uses of NodeList in com.github.javaparser.ast.modules
Fields in com.github.javaparser.ast.modules declared as NodeListModifier and TypeFieldDescriptionprivate NodeList
<AnnotationExpr> ModuleDeclaration.annotations
private NodeList
<ModuleDirective> ModuleDeclaration.directives
ModuleRequiresDirective.modifiers
ModuleExportsDirective.moduleNames
ModuleOpensDirective.moduleNames
ModuleProvidesDirective.with
Methods in com.github.javaparser.ast.modules that return NodeListModifier and TypeMethodDescriptionModuleDeclaration.getAnnotations()
ModuleDeclaration.getDirectives()
ModuleRequiresDirective.getModifiers()
ModuleExportsDirective.getModuleNames()
ModuleOpensDirective.getModuleNames()
ModuleProvidesDirective.getWith()
Methods in com.github.javaparser.ast.modules with parameters of type NodeListModifier and TypeMethodDescriptionModuleDeclaration.setAnnotations
(NodeList<AnnotationExpr> annotations) ModuleDeclaration.setDirectives
(NodeList<ModuleDirective> directives) ModuleRequiresDirective.setModifiers
(NodeList<Modifier> modifiers) ModuleExportsDirective.setModuleNames
(NodeList<Name> moduleNames) ModuleOpensDirective.setModuleNames
(NodeList<Name> moduleNames) Constructors in com.github.javaparser.ast.modules with parameters of type NodeListModifierConstructorDescriptionModuleDeclaration
(NodeList<AnnotationExpr> annotations, Name name, boolean isOpen, NodeList<ModuleDirective> directives) ModuleDeclaration
(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Name name, boolean isOpen, NodeList<ModuleDirective> directives) This constructor is used by the parser and is considered private.ModuleExportsDirective
(Name name, NodeList<Name> moduleNames) ModuleExportsDirective
(TokenRange tokenRange, Name name, NodeList<Name> moduleNames) This constructor is used by the parser and is considered private.ModuleOpensDirective
(Name name, NodeList<Name> moduleNames) ModuleOpensDirective
(TokenRange tokenRange, Name name, NodeList<Name> moduleNames) This constructor is used by the parser and is considered private.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.ModuleRequiresDirective
(NodeList<Modifier> modifiers, Name name) ModuleRequiresDirective
(TokenRange tokenRange, NodeList<Modifier> modifiers, Name name) This constructor is used by the parser and is considered private. -
Uses of NodeList in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes that return NodeListModifier and TypeMethodDescriptionNodeWithAnnotations.getAnnotations()
NodeWithArguments.getArguments()
SwitchNode.getEntries()
NodeWithExtends.getExtendedTypes()
NodeWithImplements.getImplementedTypes()
NodeWithMembers.getMembers()
NodeWithModifiers.getModifiers()
Return the modifiers of this variable declaration.NodeWithParameters.getParameters()
NodeWithStatements.getStatements()
NodeWithThrownExceptions.getThrownExceptions()
NodeWithTypeParameters.getTypeParameters()
NodeWithVariables.getVariables()
Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type NodeListMethods in com.github.javaparser.ast.nodeTypes with parameters of type NodeListModifier and TypeMethodDescriptiondefault N
NodeWithStatements.copyStatements
(NodeList<Statement> nodeList) NodeWithAnnotations.setAnnotations
(NodeList<AnnotationExpr> annotations) NodeWithArguments.setArguments
(NodeList<Expression> arguments) SwitchNode.setEntries
(NodeList<SwitchEntry> entries) NodeWithExtends.setExtendedTypes
(NodeList<ClassOrInterfaceType> extendsList) NodeWithImplements.setImplementedTypes
(NodeList<ClassOrInterfaceType> implementsList) NodeWithMembers.setMembers
(NodeList<BodyDeclaration<?>> members) NodeWithModifiers.setModifiers
(NodeList<Modifier> modifiers) NodeWithParameters.setParameters
(NodeList<Parameter> parameters) NodeWithStatements.setStatements
(NodeList<Statement> statements) NodeWithThrownExceptions.setThrownExceptions
(NodeList<ReferenceType> thrownExceptions) NodeWithTypeArguments.setTypeArguments
(NodeList<Type> typeArguments) Allows you to set the generic argumentsNodeWithTypeParameters.setTypeParameters
(NodeList<TypeParameter> typeParameters) NodeWithVariables.setVariables
(NodeList<VariableDeclarator> variables) -
Uses of NodeList in com.github.javaparser.ast.observer
Methods in com.github.javaparser.ast.observer that return NodeListMethods in com.github.javaparser.ast.observer with parameters of type NodeListModifier and TypeMethodDescriptionvoid
PropagatingAstObserver.concreteListChange
(NodeList<?> observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved) void
PropagatingAstObserver.concreteListReplacement
(NodeList<?> observedNode, int index, Node oldValue, Node newValue) void
AstObserver.listChange
(NodeList<?> observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved) A list is changedvoid
AstObserverAdapter.listChange
(NodeList<?> observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved) final void
PropagatingAstObserver.listChange
(NodeList<?> observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved) void
AstObserver.listReplacement
(NodeList<?> observedNode, int index, Node oldNode, Node newNode) void
AstObserverAdapter.listReplacement
(NodeList<?> observedNode, int index, Node oldNode, Node newNode) void
PropagatingAstObserver.listReplacement
(NodeList<?> observedNode, int index, Node oldNode, Node newNode) -
Uses of NodeList in com.github.javaparser.ast.stmt
Fields in com.github.javaparser.ast.stmt declared as NodeListModifier and TypeFieldDescriptionprivate NodeList
<Expression> ExplicitConstructorInvocationStmt.arguments
private NodeList
<CatchClause> TryStmt.catchClauses
private NodeList
<SwitchEntry> SwitchStmt.entries
private NodeList
<Expression> ForStmt.initialization
private NodeList
<Expression> SwitchEntry.labels
private NodeList
<Expression> TryStmt.resources
BlockStmt.statements
SwitchEntry.statements
ExplicitConstructorInvocationStmt.typeArguments
private NodeList
<Expression> ForStmt.update
Methods in com.github.javaparser.ast.stmt that return NodeListModifier and TypeMethodDescriptionExplicitConstructorInvocationStmt.getArguments()
TryStmt.getCatchClauses()
SwitchStmt.getEntries()
ForStmt.getInitialization()
SwitchEntry.getLabels()
TryStmt.getResources()
BlockStmt.getStatements()
SwitchEntry.getStatements()
ForStmt.getUpdate()
Methods in com.github.javaparser.ast.stmt that return types with arguments of type NodeListMethods in com.github.javaparser.ast.stmt with parameters of type NodeListModifier and TypeMethodDescriptionExplicitConstructorInvocationStmt.setArguments
(NodeList<Expression> arguments) TryStmt.setCatchClauses
(NodeList<CatchClause> catchClauses) SwitchStmt.setEntries
(NodeList<SwitchEntry> entries) ForStmt.setInitialization
(NodeList<Expression> initialization) SwitchEntry.setLabels
(NodeList<Expression> labels) Sets the labelTryStmt.setResources
(NodeList<Expression> resources) BlockStmt.setStatements
(NodeList<Statement> statements) SwitchEntry.setStatements
(NodeList<Statement> statements) ExplicitConstructorInvocationStmt.setTypeArguments
(NodeList<Type> typeArguments) Sets the typeArgumentsForStmt.setUpdate
(NodeList<Expression> update) Constructors in com.github.javaparser.ast.stmt with parameters of type NodeListModifierConstructorDescriptionBlockStmt
(TokenRange tokenRange, NodeList<Statement> statements) This constructor is used by the parser and is considered private.CatchClause
(NodeList<Modifier> exceptModifier, NodeList<AnnotationExpr> exceptAnnotations, ClassOrInterfaceType exceptType, SimpleName exceptName, BlockStmt body) ExplicitConstructorInvocationStmt
(boolean isThis, Expression expression, NodeList<Expression> arguments) ExplicitConstructorInvocationStmt
(NodeList<Type> typeArguments, boolean isThis, Expression expression, NodeList<Expression> arguments) ExplicitConstructorInvocationStmt
(TokenRange tokenRange, NodeList<Type> typeArguments, boolean isThis, Expression expression, NodeList<Expression> arguments) This constructor is used by the parser and is considered private.ForStmt
(NodeList<Expression> initialization, Expression compare, NodeList<Expression> update, Statement body) ForStmt
(TokenRange tokenRange, NodeList<Expression> initialization, Expression compare, NodeList<Expression> update, Statement body) This constructor is used by the parser and is considered private.SwitchEntry
(NodeList<Expression> labels, SwitchEntry.Type type, NodeList<Statement> statements) This constructor exists for backwards compatibility for code that instantiated `SwitchEntries` before the `isDefault` and guard fields were added.SwitchEntry
(NodeList<Expression> labels, SwitchEntry.Type type, NodeList<Statement> statements, boolean isDefault) SwitchEntry
(TokenRange tokenRange, NodeList<Expression> labels, SwitchEntry.Type type, NodeList<Statement> statements) This constructor exists for backwards compatibility for code that instantiated `SwitchEntries` before the `isDefault` and guard fields were added.SwitchEntry
(TokenRange tokenRange, NodeList<Expression> labels, SwitchEntry.Type type, NodeList<Statement> statements, boolean isDefault) This constructor is used by the parser and is considered private.SwitchEntry
(TokenRange tokenRange, NodeList<Expression> labels, SwitchEntry.Type type, NodeList<Statement> statements, boolean isDefault, Expression guard) This constructor is used by the parser and is considered private.SwitchStmt
(Expression selector, NodeList<SwitchEntry> entries) SwitchStmt
(TokenRange tokenRange, Expression selector, NodeList<SwitchEntry> entries) This constructor is used by the parser and is considered private.TryStmt
(NodeList<Expression> resources, BlockStmt tryBlock, NodeList<CatchClause> catchClauses, BlockStmt finallyBlock) TryStmt
(BlockStmt tryBlock, NodeList<CatchClause> catchClauses, BlockStmt finallyBlock) TryStmt
(TokenRange tokenRange, NodeList<Expression> resources, BlockStmt tryBlock, NodeList<CatchClause> catchClauses, BlockStmt finallyBlock) This constructor is used by the parser and is considered private. -
Uses of NodeList in com.github.javaparser.ast.type
Fields in com.github.javaparser.ast.type declared as NodeListModifier and TypeFieldDescriptionprivate NodeList
<AnnotationExpr> ArrayType.ArrayBracketPair.annotations
private NodeList
<AnnotationExpr> Type.annotations
private NodeList
<ReferenceType> IntersectionType.elements
private NodeList
<ReferenceType> UnionType.elements
ClassOrInterfaceType.typeArguments
private NodeList
<ClassOrInterfaceType> TypeParameter.typeBound
Methods in com.github.javaparser.ast.type that return NodeListModifier and TypeMethodDescriptionArrayType.ArrayBracketPair.getAnnotations()
Type.getAnnotations()
IntersectionType.getElements()
UnionType.getElements()
TypeParameter.getTypeBound()
Return the list ofClassOrInterfaceType
that this parameter extends.Methods in com.github.javaparser.ast.type that return types with arguments of type NodeListMethods in com.github.javaparser.ast.type with parameters of type NodeListModifier and TypeMethodDescriptionArrayType.ArrayBracketPair.setAnnotations
(NodeList<AnnotationExpr> annotations) ArrayType.setAnnotations
(NodeList<AnnotationExpr> annotations) ClassOrInterfaceType.setAnnotations
(NodeList<AnnotationExpr> annotations) IntersectionType.setAnnotations
(NodeList<AnnotationExpr> annotations) PrimitiveType.setAnnotations
(NodeList<AnnotationExpr> annotations) Type.setAnnotations
(NodeList<AnnotationExpr> annotations) TypeParameter.setAnnotations
(NodeList<AnnotationExpr> annotations) UnionType.setAnnotations
(NodeList<AnnotationExpr> annotations) UnknownType.setAnnotations
(NodeList<AnnotationExpr> annotations) VarType.setAnnotations
(NodeList<AnnotationExpr> annotations) VoidType.setAnnotations
(NodeList<AnnotationExpr> annotations) WildcardType.setAnnotations
(NodeList<AnnotationExpr> annotations) IntersectionType.setElements
(NodeList<ReferenceType> elements) UnionType.setElements
(NodeList<ReferenceType> elements) ClassOrInterfaceType.setTypeArguments
(NodeList<Type> typeArguments) Sets the typeArgumentsTypeParameter.setTypeBound
(NodeList<ClassOrInterfaceType> typeBound) Constructors in com.github.javaparser.ast.type with parameters of type NodeListModifierConstructorDescriptionArrayBracketPair
(TokenRange tokenRange, ArrayType.Origin origin, NodeList<AnnotationExpr> annotations) ArrayType
(Type componentType, ArrayType.Origin origin, NodeList<AnnotationExpr> annotations) ArrayType
(TokenRange tokenRange, Type componentType, ArrayType.Origin origin, NodeList<AnnotationExpr> annotations) This constructor is used by the parser and is considered private.ClassOrInterfaceType
(ClassOrInterfaceType scope, SimpleName name, NodeList<Type> typeArguments) ClassOrInterfaceType
(ClassOrInterfaceType scope, SimpleName name, NodeList<Type> typeArguments, NodeList<AnnotationExpr> annotations) ClassOrInterfaceType
(TokenRange tokenRange, ClassOrInterfaceType scope, SimpleName name, NodeList<Type> typeArguments, NodeList<AnnotationExpr> annotations) This constructor is used by the parser and is considered private.IntersectionType
(NodeList<ReferenceType> elements) IntersectionType
(TokenRange tokenRange, NodeList<ReferenceType> elements) This constructor is used by the parser and is considered private.PrimitiveType
(PrimitiveType.Primitive type, NodeList<AnnotationExpr> annotations) PrimitiveType
(TokenRange tokenRange, PrimitiveType.Primitive type, NodeList<AnnotationExpr> annotations) This constructor is used by the parser and is considered private.ReferenceType
(NodeList<AnnotationExpr> annotations) ReferenceType
(TokenRange tokenRange, NodeList<AnnotationExpr> annotations) This constructor is used by the parser and is considered private.Type
(NodeList<AnnotationExpr> annotations) Type
(TokenRange tokenRange, NodeList<AnnotationExpr> annotations) This constructor is used by the parser and is considered private.TypeParameter
(SimpleName name, NodeList<ClassOrInterfaceType> typeBound, NodeList<AnnotationExpr> annotations) TypeParameter
(TokenRange tokenRange, SimpleName name, NodeList<ClassOrInterfaceType> typeBound, NodeList<AnnotationExpr> annotations) This constructor is used by the parser and is considered private.TypeParameter
(String name, NodeList<ClassOrInterfaceType> typeBound) UnionType
(NodeList<ReferenceType> elements) UnionType
(TokenRange tokenRange, NodeList<ReferenceType> elements) This constructor is used by the parser and is considered private.WildcardType
(ReferenceType extendedType, ReferenceType superType, NodeList<AnnotationExpr> annotations) WildcardType
(TokenRange tokenRange, ReferenceType extendedType, ReferenceType superType, NodeList<AnnotationExpr> annotations) This constructor is used by the parser and is considered private. -
Uses of NodeList in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor that return NodeListModifier and TypeMethodDescriptionModifierVisitor.modifyList
(NodeList<N> list, A arg) ModifierVisitor.modifyList
(Optional<NodeList<N>> list, A arg) Methods in com.github.javaparser.ast.visitor with parameters of type NodeListModifier and TypeMethodDescriptionGenericVisitorWithDefaults.defaultAction
(NodeList n, A arg) This will be called by the NodeList visit method when it is not overridden.void
VoidVisitorWithDefaults.defaultAction
(NodeList n, A arg) This will be called by the NodeList visit method when it is not overridden.ModifierVisitor.modifyList
(NodeList<N> list, A arg) private <N extends Node>
booleanEqualsVisitor.nodesEquals
(NodeList<N> n, NodeList<N> n2) private <N extends Node>
booleanNoCommentEqualsVisitor.nodesEquals
(NodeList<N> n, NodeList<N> n2) void
void
void
void
Method parameters in com.github.javaparser.ast.visitor with type arguments of type NodeListModifier and TypeMethodDescriptionModifierVisitor.modifyList
(Optional<NodeList<N>> list, A arg) private <T extends Node>
booleanEqualsVisitor.nodesEquals
(Optional<NodeList<T>> n, Optional<NodeList<T>> n2) private <T extends Node>
booleanNoCommentEqualsVisitor.nodesEquals
(Optional<NodeList<T>> n, Optional<NodeList<T>> n2) -
Uses of NodeList in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type NodeListModifier and TypeMethodDescriptionprotected void
DefaultPrettyPrinterVisitor.printAnnotations
(NodeList<AnnotationExpr> annotations, boolean prefixWithASpace, Void arg) protected void
PrettyPrintVisitor.printAnnotations
(NodeList<AnnotationExpr> annotations, boolean prefixWithASpace, Void arg) Deprecated.protected <T extends Expression>
voidDefaultPrettyPrinterVisitor.printArguments
(NodeList<T> args, Void arg) protected <T extends Expression>
voidPrettyPrintVisitor.printArguments
(NodeList<T> args, Void arg) Deprecated.private void
DefaultPrettyPrinterVisitor.printImports
(NodeList<ImportDeclaration> imports, Void arg) protected void
DefaultPrettyPrinterVisitor.printMemberAnnotations
(NodeList<AnnotationExpr> annotations, Void arg) protected void
PrettyPrintVisitor.printMemberAnnotations
(NodeList<AnnotationExpr> annotations, Void arg) Deprecated.protected void
DefaultPrettyPrinterVisitor.printMembers
(NodeList<BodyDeclaration<?>> members, Void arg) protected void
PrettyPrintVisitor.printMembers
(NodeList<BodyDeclaration<?>> members, Void arg) Deprecated.protected void
DefaultPrettyPrinterVisitor.printModifiers
(NodeList<Modifier> modifiers) protected void
PrettyPrintVisitor.printModifiers
(NodeList<Modifier> modifiers) Deprecated.protected void
DefaultPrettyPrinterVisitor.printPrePostFixOptionalList
(NodeList<? extends Visitable> args, Void arg, String prefix, String separator, String postfix) protected void
PrettyPrintVisitor.printPrePostFixOptionalList
(NodeList<? extends Visitable> args, Void arg, String prefix, String separator, String postfix) Deprecated.protected void
DefaultPrettyPrinterVisitor.printPrePostFixRequiredList
(NodeList<? extends Visitable> args, Void arg, String prefix, String separator, String postfix) protected void
PrettyPrintVisitor.printPrePostFixRequiredList
(NodeList<? extends Visitable> args, Void arg, String prefix, String separator, String postfix) Deprecated.protected void
DefaultPrettyPrinterVisitor.printTypeParameters
(NodeList<TypeParameter> args, Void arg) protected void
PrettyPrintVisitor.printTypeParameters
(NodeList<TypeParameter> args, Void arg) Deprecated.void
void
Deprecated. -
Uses of NodeList in com.github.javaparser.printer.configuration
Methods in com.github.javaparser.printer.configuration that return types with arguments of type NodeListModifier and TypeMethodDescriptionImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> imports) Sort the list of imports into groups.Methods in com.github.javaparser.printer.configuration with parameters of type NodeListModifier and TypeMethodDescriptionImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> imports) Sort the list of imports into groups. -
Uses of NodeList in com.github.javaparser.printer.configuration.imports
Methods in com.github.javaparser.printer.configuration.imports that return types with arguments of type NodeListModifier and TypeMethodDescriptionDefaultImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) EclipseImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) IntelliJImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) Methods in com.github.javaparser.printer.configuration.imports with parameters of type NodeListModifier and TypeMethodDescriptionDefaultImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) EclipseImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) IntelliJImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) -
Uses of NodeList in com.github.javaparser.printer.lexicalpreservation
Methods in com.github.javaparser.printer.lexicalpreservation with parameters of type NodeListModifier and TypeMethodDescription(package private) LexicalDifferenceCalculator.CalculatedSyntaxModel
LexicalDifferenceCalculator.calculatedSyntaxModelAfterListAddition
(CsmElement csm, ObservableProperty observableProperty, NodeList<?> nodeList, int index, Node nodeAdded) (package private) LexicalDifferenceCalculator.CalculatedSyntaxModel
LexicalDifferenceCalculator.calculatedSyntaxModelAfterListRemoval
(CsmElement csm, ObservableProperty observableProperty, NodeList<?> nodeList, int index) LexicalDifferenceCalculator.calculatedSyntaxModelAfterListReplacement
(CsmElement csm, ObservableProperty observableProperty, NodeList<?> nodeList, int index, Node newValue) (package private) List
<DifferenceElement> LexicalDifferenceCalculator.calculateListAdditionDifference
(ObservableProperty observableProperty, NodeList<?> nodeList, int index, Node nodeAdded) (package private) List
<DifferenceElement> LexicalDifferenceCalculator.calculateListRemovalDifference
(ObservableProperty observableProperty, NodeList<?> nodeList, int index) (package private) List
<DifferenceElement> LexicalDifferenceCalculator.calculateListReplacementDifference
(ObservableProperty observableProperty, NodeList<?> nodeList, int index, Node newValue) void
LexicalPreservingPrinter.Observer.concreteListChange
(NodeList<?> changedList, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved) void
LexicalPreservingPrinter.Observer.concreteListReplacement
(NodeList<?> changedList, int index, Node oldValue, Node newValue) private static ObservableProperty
LexicalPreservingPrinter.findNodeListName
(NodeList<?> nodeList) -
Uses of NodeList in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type NodeListModifier and TypeMethodDescriptionprivate void
JavaParserFacade.solveArguments
(Node node, NodeList<Expression> args, boolean solveLambdas, List<ResolvedType> argumentTypes, List<LambdaArgumentTypePlaceholder> placeholders) -
Uses of NodeList in com.github.javaparser.utils
Methods in com.github.javaparser.utils with parameters of type NodeListModifier and TypeMethodDescriptionstatic <T extends Node>
voidPositionUtils.sortByBeginPosition
(NodeList<T> nodes)