Uses of Class
com.github.javaparser.ast.NodeList
-
-
Uses of NodeList in com.github.javaparser
Fields in com.github.javaparser declared as NodeList Modifier and Type Field Description (package private) NodeList<AnnotationExpr>ModifierHolder. annotations(package private) NodeList<T>RangedList. list(package private) NodeList<Modifier>ModifierHolder. modifiersMethods in com.github.javaparser that return NodeList Modifier and Type Method Description (package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. add(NodeList<T> list, T obj)Add obj to list and return it.(package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. addWhenNotNull(NodeList<T> list, T obj)Add obj to list only when list is not nullNodeList<AnnotationExpr>GeneratedJavaParser. Annotations()https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.7NodeList<BodyDeclaration<?>>GeneratedJavaParser. AnnotationTypeBody()https://docs.oracle.com/javase/specs/jls/se15/html/jls-9.html#jls-9.6.1NodeList<Expression>GeneratedJavaParser. ArgumentList()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.12NodeList<Expression>GeneratedJavaParser. Arguments()https://docs.oracle.com/javase/specs/jls/se15/html/jls-15.html#jls-15.12NodeList<BodyDeclaration<?>>GeneratedJavaParser. ClassOrInterfaceBody()https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.1.6(package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. emptyNodeList()Quickly create a new, empty, NodeListNodeList<Expression>GeneratedJavaParser. ExpressionList()https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14NodeList<ClassOrInterfaceType>GeneratedJavaParser. ExtendsList()https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.1.4NodeList<Expression>GeneratedJavaParser. ForInit()https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14NodeList<Expression>GeneratedJavaParser. ForUpdate()https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.14NodeList<ClassOrInterfaceType>GeneratedJavaParser. ImplementsList()https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.1.5NodeList<Parameter>GeneratedJavaParser. InferredLambdaParameters()Note: Similar, but not identical to,FormalParameter.NodeList<Parameter>GeneratedJavaParser. LambdaParameters()Note: Similar, but not identical to,FormalParameter.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.1NodeList<PatternExpr>GeneratedJavaParser. PatternList()https://openjdk.org/jeps/440NodeList<ClassOrInterfaceType>GeneratedJavaParser. PermitsList()https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.1.5(package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. prepend(NodeList<T> list, T obj)Add obj to list at position posNodeList<BodyDeclaration<?>>GeneratedJavaParser. RecordBody()Everything that can go into a "regular" class or interface declaration, can also (usually) be included within a record.NodeList<Expression>GeneratedJavaParser. Resources()https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.20.3NodeList<Expression>GeneratedJavaParser. ResourceSpecification()https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.20.3NodeList<Statement>GeneratedJavaParser. Statements()https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.5NodeList<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 NodeList Modifier and Type Method Description Pair<NodeList<Parameter>,ReceiverParameter>GeneratedJavaParser. Parameters()The JLS refers to parameters asFormalParameter.Methods in com.github.javaparser with parameters of type NodeList Modifier and Type Method Description (package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. add(NodeList<T> list, T obj)Add obj to list and return it.(package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. addWhenNotNull(NodeList<T> list, T obj)Add obj to list only when list is not nullClassOrInterfaceTypeGeneratedJavaParser. ClassOrInterfaceType(NodeList<AnnotationExpr> firstAnnotations)IntersectionTypeGeneratedJavaParser. 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 & ...(package private) ArrayCreationExprGeneratedJavaParserBase. juggleArrayCreation(TokenRange range, java.util.List<TokenRange> levelRanges, Type type, NodeList<Expression> dimensions, java.util.List<NodeList<AnnotationExpr>> arrayAnnotations, ArrayInitializerExpr arrayInitializerExpr)Throws together an ArrayCreationExpr from a lot of pieces(package private) JavaTokenGeneratedJavaParserBase. nodeListBegin(NodeList<?> l)Get the token that starts the NodeList l(package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. prepend(NodeList<T> list, T obj)Add obj to list at position posPrimitiveTypeGeneratedJavaParser. PrimitiveType(NodeList<AnnotationExpr> annotations)Note thatcharandbyteare treated as anIntegralType, which is a subtype ofNumericType.ReferenceTypeGeneratedJavaParser. ReferenceType(NodeList<AnnotationExpr> annotations)// TODO: JLS Has type and unannotated type, while JavaParser has type and annotated type.TypeGeneratedJavaParser. ResultType(NodeList<AnnotationExpr> annotations)https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.4.5TypeGeneratedJavaParser. Type(NodeList<AnnotationExpr> annotations)https://docs.oracle.com/javase/specs/jls/se15/html/jls-4.html#jls-4.1TypeParameterGeneratedJavaParser. TypeParameter(NodeList<AnnotationExpr> annotations)Note that theTypeParameterModifieris defined as anAnnotation.WildcardTypeGeneratedJavaParser. 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 NodeList Constructor Description ModifierHolder(JavaToken begin, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations)RangedList(NodeList<T> list) -
Uses of NodeList in com.github.javaparser.ast
Fields in com.github.javaparser.ast declared as NodeList Modifier and Type Field Description private NodeList<AnnotationExpr>ArrayCreationLevel. annotationsprivate NodeList<AnnotationExpr>PackageDeclaration. annotationsprivate NodeList<ImportDeclaration>CompilationUnit. importsprivate NodeList<TypeDeclaration<?>>CompilationUnit. typesMethods in com.github.javaparser.ast that return NodeList Modifier and Type Method Description NodeList<N>NodeList. addAfter(N node, N afterThisNode)Inserts the node after afterThisNode.NodeList<N>NodeList. addBefore(N node, N beforeThisNode)Inserts the node before beforeThisNode.NodeList<N>NodeList. addFirst(N node)Inserts the node before all other nodes.NodeList<N>NodeList. addLast(N node)Inserts the node after all other nodes.static NodeList<Modifier>Modifier. createModifierList(Modifier.Keyword... modifiers)Utility method that instantiaties "Modifier"s for the keywords, and puts them in a NodeList.NodeList<AnnotationExpr>ArrayCreationLevel. getAnnotations()NodeList<AnnotationExpr>PackageDeclaration. getAnnotations()Retrieves the list of annotations declared before the package declaration.NodeList<ImportDeclaration>CompilationUnit. getImports()Retrieves the list of imports declared in this compilation unit ornullif there is no import.NodeList<TypeDeclaration<?>>CompilationUnit. getTypes()Return the list of top level types declared in this compilation unit.
If there are no types declared,noneis returned.static <X extends Node>
NodeList<X>NodeList. nodeList(NodeList<X> nodes)static <X extends Node>
NodeList<X>NodeList. nodeList(java.util.Collection<X> nodes)static <X extends Node>
NodeList<X>NodeList. nodeList(X... nodes)NodeList<N>NodeList. setParentNode(Node parentNode)Sets the parentNodeMethods in com.github.javaparser.ast that return types with arguments of type NodeList Modifier and Type Method Description static <T extends Node>
java.util.stream.Collector<T,NodeList<T>,NodeList<T>>NodeList. toNodeList()static <T extends Node>
java.util.stream.Collector<T,NodeList<T>,NodeList<T>>NodeList. toNodeList()Methods in com.github.javaparser.ast with parameters of type NodeList Modifier and Type Method Description voidNodeList. addAll(NodeList<N> otherList)static <X extends Node>
NodeList<X>NodeList. nodeList(NodeList<X> nodes)ArrayCreationLevelArrayCreationLevel. setAnnotations(NodeList<AnnotationExpr> annotations)PackageDeclarationPackageDeclaration. setAnnotations(NodeList<AnnotationExpr> annotations)protected voidNode. setAsParentNodeOf(NodeList<? extends Node> list)CompilationUnitCompilationUnit. setImports(NodeList<ImportDeclaration> imports)Sets the list of imports of this compilation unit.CompilationUnitCompilationUnit. 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 NodeList Modifier and Type Method Description voidNodeList. ifNonEmpty(java.util.function.Consumer<? super NodeList<N>> consumer)Constructors in com.github.javaparser.ast with parameters of type NodeList Constructor Description ArrayCreationLevel(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 NodeList Modifier and Type Field Description private NodeList<AnnotationExpr>BodyDeclaration. annotationsprivate NodeList<AnnotationExpr>Parameter. annotationsprivate NodeList<AnnotationExpr>ReceiverParameter. annotationsprivate NodeList<Expression>EnumConstantDeclaration. argumentsprivate NodeList<BodyDeclaration<?>>EnumConstantDeclaration. classBodyprivate NodeList<EnumConstantDeclaration>EnumDeclaration. entriesprivate NodeList<ClassOrInterfaceType>ClassOrInterfaceDeclaration. extendedTypesprivate NodeList<ClassOrInterfaceType>ClassOrInterfaceDeclaration. implementedTypesprivate NodeList<ClassOrInterfaceType>EnumDeclaration. implementedTypesprivate NodeList<ClassOrInterfaceType>RecordDeclaration. implementedTypesprivate NodeList<BodyDeclaration<?>>TypeDeclaration. membersprivate NodeList<Modifier>AnnotationMemberDeclaration. modifiersprivate NodeList<Modifier>CallableDeclaration. modifiersprivate NodeList<Modifier>CompactConstructorDeclaration. modifiersprivate NodeList<Modifier>FieldDeclaration. modifiersprivate NodeList<Modifier>Parameter. modifiersprivate NodeList<Modifier>TypeDeclaration. modifiersprivate NodeList<Parameter>CallableDeclaration. parametersprivate NodeList<Parameter>RecordDeclaration. parametersprivate NodeList<ClassOrInterfaceType>ClassOrInterfaceDeclaration. permittedTypesprivate NodeList<ReferenceType>CallableDeclaration. thrownExceptionsprivate NodeList<ReferenceType>CompactConstructorDeclaration. thrownExceptionsprivate NodeList<TypeParameter>CallableDeclaration. typeParametersprivate NodeList<TypeParameter>ClassOrInterfaceDeclaration. typeParametersprivate NodeList<TypeParameter>CompactConstructorDeclaration. typeParametersprivate NodeList<TypeParameter>RecordDeclaration. typeParametersprivate NodeList<AnnotationExpr>Parameter. varArgsAnnotationsprivate NodeList<VariableDeclarator>FieldDeclaration. variablesMethods in com.github.javaparser.ast.body that return NodeList Modifier and Type Method Description NodeList<AnnotationExpr>BodyDeclaration. getAnnotations()NodeList<AnnotationExpr>Parameter. getAnnotations()NodeList<AnnotationExpr>ReceiverParameter. getAnnotations()NodeList<Expression>EnumConstantDeclaration. getArguments()NodeList<BodyDeclaration<?>>EnumConstantDeclaration. getClassBody()NodeList<EnumConstantDeclaration>EnumDeclaration. getEntries()NodeList<ClassOrInterfaceType>ClassOrInterfaceDeclaration. getExtendedTypes()NodeList<ClassOrInterfaceType>ClassOrInterfaceDeclaration. getImplementedTypes()NodeList<ClassOrInterfaceType>EnumDeclaration. getImplementedTypes()NodeList<ClassOrInterfaceType>RecordDeclaration. getImplementedTypes()NodeList<BodyDeclaration<?>>TypeDeclaration. getMembers()NodeList<Modifier>AnnotationMemberDeclaration. getModifiers()Return the modifiers of this member declaration.NodeList<Modifier>CallableDeclaration. getModifiers()Return the modifiers of this member declaration.NodeList<Modifier>CompactConstructorDeclaration. getModifiers()NodeList<Modifier>FieldDeclaration. getModifiers()Return the modifiers of this member declaration.NodeList<Modifier>Parameter. getModifiers()Return the modifiers of this parameter declaration.NodeList<Modifier>TypeDeclaration. getModifiers()Return the modifiers of this type declaration.NodeList<Parameter>CallableDeclaration. getParameters()NodeList<Parameter>RecordDeclaration. getParameters()Type declarations do not normally have parameters - e.g.NodeList<ClassOrInterfaceType>ClassOrInterfaceDeclaration. getPermittedTypes()NodeList<ReferenceType>CallableDeclaration. getThrownExceptions()NodeList<ReferenceType>CompactConstructorDeclaration. getThrownExceptions()NodeList<TypeParameter>CallableDeclaration. getTypeParameters()NodeList<TypeParameter>ClassOrInterfaceDeclaration. getTypeParameters()NodeList<TypeParameter>CompactConstructorDeclaration. getTypeParameters()NodeList<TypeParameter>RecordDeclaration. getTypeParameters()NodeList<AnnotationExpr>Parameter. getVarArgsAnnotations()NodeList<VariableDeclarator>FieldDeclaration. getVariables()Constructors in com.github.javaparser.ast.body with parameters of type NodeList Constructor Description AnnotationDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)AnnotationDeclaration(NodeList<Modifier> modifiers, java.lang.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, java.lang.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.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, java.lang.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, java.lang.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, java.lang.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, java.lang.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, java.lang.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, java.lang.String name)MethodDeclaration(NodeList<Modifier> modifiers, java.lang.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, java.lang.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, java.lang.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 NodeList Modifier and Type Field Description private NodeList<AnnotationExpr>VariableDeclarationExpr. annotationsprivate NodeList<BodyDeclaration<?>>ObjectCreationExpr. anonymousClassBodyprivate NodeList<Expression>MethodCallExpr. argumentsprivate NodeList<Expression>ObjectCreationExpr. argumentsprivate NodeList<SwitchEntry>SwitchExpr. entriesprivate NodeList<ArrayCreationLevel>ArrayCreationExpr. levelsprivate NodeList<Modifier>RecordPatternExpr. modifiersprivate NodeList<Modifier>TypePatternExpr. modifiersprivate NodeList<Modifier>VariableDeclarationExpr. modifiersprivate NodeList<MemberValuePair>NormalAnnotationExpr. pairsprivate NodeList<Parameter>LambdaExpr. parametersprivate NodeList<PatternExpr>RecordPatternExpr. patternListprivate NodeList<Type>FieldAccessExpr. typeArgumentsprivate NodeList<Type>MethodCallExpr. typeArgumentsprivate NodeList<Type>MethodReferenceExpr. typeArgumentsprivate NodeList<Type>ObjectCreationExpr. typeArgumentsprivate NodeList<Expression>ArrayInitializerExpr. valuesprivate NodeList<VariableDeclarator>VariableDeclarationExpr. variablesMethods in com.github.javaparser.ast.expr that return NodeList Modifier and Type Method Description NodeList<AnnotationExpr>VariableDeclarationExpr. getAnnotations()NodeList<Expression>MethodCallExpr. getArguments()NodeList<Expression>ObjectCreationExpr. getArguments()NodeList<SwitchEntry>SwitchExpr. getEntries()NodeList<ArrayCreationLevel>ArrayCreationExpr. getLevels()NodeList<Modifier>RecordPatternExpr. getModifiers()NodeList<Modifier>TypePatternExpr. getModifiers()NodeList<Modifier>VariableDeclarationExpr. getModifiers()Return the modifiers of this variable declaration.NodeList<MemberValuePair>NormalAnnotationExpr. getPairs()NodeList<Parameter>LambdaExpr. getParameters()NodeList<PatternExpr>RecordPatternExpr. getPatternList()NodeList<Expression>ArrayInitializerExpr. getValues()NodeList<VariableDeclarator>VariableDeclarationExpr. getVariables()Methods in com.github.javaparser.ast.expr that return types with arguments of type NodeList Modifier and Type Method Description java.util.Optional<NodeList<BodyDeclaration<?>>>ObjectCreationExpr. getAnonymousClassBody()java.util.Optional<NodeList<Type>>FieldAccessExpr. getTypeArguments()java.util.Optional<NodeList<Type>>MethodCallExpr. getTypeArguments()java.util.Optional<NodeList<Type>>MethodReferenceExpr. getTypeArguments()java.util.Optional<NodeList<Type>>ObjectCreationExpr. getTypeArguments()Methods in com.github.javaparser.ast.expr with parameters of type NodeList Modifier and Type Method Description VariableDeclarationExprVariableDeclarationExpr. setAnnotations(NodeList<AnnotationExpr> annotations)ObjectCreationExprObjectCreationExpr. setAnonymousClassBody(NodeList<BodyDeclaration<?>> anonymousClassBody)Sets the anonymousClassBody
Null means no class body
Empty NodeList means new ClassName(){ }MethodCallExprMethodCallExpr. setArguments(NodeList<Expression> arguments)ObjectCreationExprObjectCreationExpr. setArguments(NodeList<Expression> arguments)SwitchExprSwitchExpr. setEntries(NodeList<SwitchEntry> entries)ArrayCreationExprArrayCreationExpr. setLevels(NodeList<ArrayCreationLevel> levels)RecordPatternExprRecordPatternExpr. setModifiers(NodeList<Modifier> modifiers)TypePatternExprTypePatternExpr. setModifiers(NodeList<Modifier> modifiers)VariableDeclarationExprVariableDeclarationExpr. setModifiers(NodeList<Modifier> modifiers)NormalAnnotationExprNormalAnnotationExpr. setPairs(NodeList<MemberValuePair> pairs)LambdaExprLambdaExpr. setParameters(NodeList<Parameter> parameters)RecordPatternExprRecordPatternExpr. setPatternList(NodeList<PatternExpr> patternList)FieldAccessExprFieldAccessExpr. setTypeArguments(NodeList<Type> typeArguments)Sets the type argumentsMethodCallExprMethodCallExpr. setTypeArguments(NodeList<Type> typeArguments)Sets the typeArgumentsMethodReferenceExprMethodReferenceExpr. setTypeArguments(NodeList<Type> typeArguments)Sets the typeArgumentsObjectCreationExprObjectCreationExpr. setTypeArguments(NodeList<Type> typeArguments)Sets the typeArgumentsArrayInitializerExprArrayInitializerExpr. setValues(NodeList<Expression> values)VariableDeclarationExprVariableDeclarationExpr. setVariables(NodeList<VariableDeclarator> variables)Constructors in com.github.javaparser.ast.expr with parameters of type NodeList Constructor Description ArrayCreationExpr(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, java.lang.String name, NodeList<Expression> arguments)MethodCallExpr(Expression scope, java.lang.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, java.lang.String identifier)MethodReferenceExpr(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, java.lang.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 NodeList Modifier and Type Field Description private NodeList<AnnotationExpr>ModuleDeclaration. annotationsprivate NodeList<ModuleDirective>ModuleDeclaration. directivesprivate NodeList<Modifier>ModuleRequiresDirective. modifiersprivate NodeList<Name>ModuleExportsDirective. moduleNamesprivate NodeList<Name>ModuleOpensDirective. moduleNamesprivate NodeList<Name>ModuleProvidesDirective. withMethods in com.github.javaparser.ast.modules that return NodeList Modifier and Type Method Description NodeList<AnnotationExpr>ModuleDeclaration. getAnnotations()NodeList<ModuleDirective>ModuleDeclaration. getDirectives()NodeList<Modifier>ModuleRequiresDirective. getModifiers()NodeList<Name>ModuleExportsDirective. getModuleNames()NodeList<Name>ModuleOpensDirective. getModuleNames()NodeList<Name>ModuleProvidesDirective. getWith()Methods in com.github.javaparser.ast.modules with parameters of type NodeList Modifier and Type Method Description ModuleDeclarationModuleDeclaration. setAnnotations(NodeList<AnnotationExpr> annotations)ModuleDeclarationModuleDeclaration. setDirectives(NodeList<ModuleDirective> directives)ModuleRequiresDirectiveModuleRequiresDirective. setModifiers(NodeList<Modifier> modifiers)ModuleExportsDirectiveModuleExportsDirective. setModuleNames(NodeList<Name> moduleNames)ModuleOpensDirectiveModuleOpensDirective. setModuleNames(NodeList<Name> moduleNames)ModuleProvidesDirectiveModuleProvidesDirective. setWith(NodeList<Name> with)Constructors in com.github.javaparser.ast.modules with parameters of type NodeList Constructor Description ModuleDeclaration(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 NodeList Modifier and Type Method Description NodeList<AnnotationExpr>NodeWithAnnotations. getAnnotations()NodeList<Expression>NodeWithArguments. getArguments()NodeList<SwitchEntry>SwitchNode. getEntries()NodeList<ClassOrInterfaceType>NodeWithExtends. getExtendedTypes()NodeList<ClassOrInterfaceType>NodeWithImplements. getImplementedTypes()NodeList<BodyDeclaration<?>>NodeWithMembers. getMembers()NodeList<Modifier>NodeWithModifiers. getModifiers()Return the modifiers of this variable declaration.NodeList<Parameter>NodeWithParameters. getParameters()NodeList<Statement>NodeWithStatements. getStatements()NodeList<ReferenceType>NodeWithThrownExceptions. getThrownExceptions()NodeList<TypeParameter>NodeWithTypeParameters. getTypeParameters()NodeList<VariableDeclarator>NodeWithVariables. getVariables()Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type NodeList Modifier and Type Method Description java.util.Optional<NodeList<Type>>NodeWithTypeArguments. getTypeArguments()Methods in com.github.javaparser.ast.nodeTypes with parameters of type NodeList Modifier and Type Method Description default NNodeWithStatements. copyStatements(NodeList<Statement> nodeList)NNodeWithAnnotations. setAnnotations(NodeList<AnnotationExpr> annotations)NNodeWithArguments. setArguments(NodeList<Expression> arguments)SwitchNodeSwitchNode. setEntries(NodeList<SwitchEntry> entries)NNodeWithExtends. setExtendedTypes(NodeList<ClassOrInterfaceType> extendsList)NNodeWithImplements. setImplementedTypes(NodeList<ClassOrInterfaceType> implementsList)NNodeWithMembers. setMembers(NodeList<BodyDeclaration<?>> members)NNodeWithModifiers. setModifiers(NodeList<Modifier> modifiers)NNodeWithParameters. setParameters(NodeList<Parameter> parameters)NNodeWithStatements. setStatements(NodeList<Statement> statements)NNodeWithThrownExceptions. setThrownExceptions(NodeList<ReferenceType> thrownExceptions)NNodeWithTypeArguments. setTypeArguments(NodeList<Type> typeArguments)Allows you to set the generic argumentsNNodeWithTypeParameters. setTypeParameters(NodeList<TypeParameter> typeParameters)NNodeWithVariables. setVariables(NodeList<VariableDeclarator> variables) -
Uses of NodeList in com.github.javaparser.ast.observer
Methods in com.github.javaparser.ast.observer that return NodeList Modifier and Type Method Description NodeList<? extends Node>ObservableProperty. getValueAsMultipleReference(Node node)Methods in com.github.javaparser.ast.observer with parameters of type NodeList Modifier and Type Method Description voidPropagatingAstObserver. concreteListChange(NodeList<?> observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)voidPropagatingAstObserver. concreteListReplacement(NodeList<?> observedNode, int index, Node oldValue, Node newValue)voidAstObserver. listChange(NodeList<?> observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)A list is changedvoidAstObserverAdapter. listChange(NodeList<?> observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)voidPropagatingAstObserver. listChange(NodeList<?> observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)voidAstObserver. listReplacement(NodeList<?> observedNode, int index, Node oldNode, Node newNode)voidAstObserverAdapter. listReplacement(NodeList<?> observedNode, int index, Node oldNode, Node newNode)voidPropagatingAstObserver. 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 NodeList Modifier and Type Field Description private NodeList<Expression>ExplicitConstructorInvocationStmt. argumentsprivate NodeList<CatchClause>TryStmt. catchClausesprivate NodeList<SwitchEntry>SwitchStmt. entriesprivate NodeList<Expression>ForStmt. initializationprivate NodeList<Expression>SwitchEntry. labelsprivate NodeList<Expression>TryStmt. resourcesprivate NodeList<Statement>BlockStmt. statementsprivate NodeList<Statement>SwitchEntry. statementsprivate NodeList<Type>ExplicitConstructorInvocationStmt. typeArgumentsprivate NodeList<Expression>ForStmt. updateMethods in com.github.javaparser.ast.stmt that return NodeList Modifier and Type Method Description NodeList<Expression>ExplicitConstructorInvocationStmt. getArguments()NodeList<CatchClause>TryStmt. getCatchClauses()NodeList<SwitchEntry>SwitchStmt. getEntries()NodeList<Expression>ForStmt. getInitialization()NodeList<Expression>SwitchEntry. getLabels()NodeList<Expression>TryStmt. getResources()NodeList<Statement>BlockStmt. getStatements()NodeList<Statement>SwitchEntry. getStatements()NodeList<Expression>ForStmt. getUpdate()Methods in com.github.javaparser.ast.stmt that return types with arguments of type NodeList Modifier and Type Method Description java.util.Optional<NodeList<Type>>ExplicitConstructorInvocationStmt. getTypeArguments()Methods in com.github.javaparser.ast.stmt with parameters of type NodeList Modifier and Type Method Description ExplicitConstructorInvocationStmtExplicitConstructorInvocationStmt. setArguments(NodeList<Expression> arguments)TryStmtTryStmt. setCatchClauses(NodeList<CatchClause> catchClauses)SwitchStmtSwitchStmt. setEntries(NodeList<SwitchEntry> entries)ForStmtForStmt. setInitialization(NodeList<Expression> initialization)SwitchEntrySwitchEntry. setLabels(NodeList<Expression> labels)Sets the labelTryStmtTryStmt. setResources(NodeList<Expression> resources)BlockStmtBlockStmt. setStatements(NodeList<Statement> statements)SwitchEntrySwitchEntry. setStatements(NodeList<Statement> statements)ExplicitConstructorInvocationStmtExplicitConstructorInvocationStmt. setTypeArguments(NodeList<Type> typeArguments)Sets the typeArgumentsForStmtForStmt. setUpdate(NodeList<Expression> update)Constructors in com.github.javaparser.ast.stmt with parameters of type NodeList Constructor Description BlockStmt(NodeList<Statement> statements)BlockStmt(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 NodeList Modifier and Type Field Description private NodeList<AnnotationExpr>ArrayType.ArrayBracketPair. annotationsprivate NodeList<AnnotationExpr>Type. annotationsprivate NodeList<ReferenceType>IntersectionType. elementsprivate NodeList<ReferenceType>UnionType. elementsprivate NodeList<Type>ClassOrInterfaceType. typeArgumentsprivate NodeList<ClassOrInterfaceType>TypeParameter. typeBoundMethods in com.github.javaparser.ast.type that return NodeList Modifier and Type Method Description NodeList<AnnotationExpr>ArrayType.ArrayBracketPair. getAnnotations()NodeList<AnnotationExpr>Type. getAnnotations()NodeList<ReferenceType>IntersectionType. getElements()NodeList<ReferenceType>UnionType. getElements()NodeList<ClassOrInterfaceType>TypeParameter. getTypeBound()Return the list ofClassOrInterfaceTypethat this parameter extends.Methods in com.github.javaparser.ast.type that return types with arguments of type NodeList Modifier and Type Method Description java.util.Optional<NodeList<Type>>ClassOrInterfaceType. getTypeArguments()Constructors in com.github.javaparser.ast.type with parameters of type NodeList Constructor Description ArrayBracketPair(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(java.lang.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 NodeList Modifier and Type Method Description private <N extends Node>
NodeList<N>CloneVisitor. cloneList(NodeList<N> list, java.lang.Object arg)private <N extends Node>
NodeList<N>ModifierVisitor. modifyList(NodeList<N> list, A arg)private <N extends Node>
NodeList<N>ModifierVisitor. modifyList(java.util.Optional<NodeList<N>> list, A arg)Methods in com.github.javaparser.ast.visitor with parameters of type NodeList Modifier and Type Method Description private <N extends Node>
NodeList<N>CloneVisitor. cloneList(NodeList<N> list, java.lang.Object arg)RGenericVisitorWithDefaults. defaultAction(NodeList n, A arg)This will be called by the NodeList visit method when it is not overridden.voidVoidVisitorWithDefaults. defaultAction(NodeList n, A arg)This will be called by the NodeList visit method when it is not overridden.private <N extends Node>
NodeList<N>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)VisitableCloneVisitor. visit(NodeList n, java.lang.Object arg)java.lang.BooleanEqualsVisitor. visit(NodeList n, Visitable arg)java.util.List<R>GenericListVisitorAdapter. visit(NodeList n, A arg)RGenericVisitor. visit(NodeList n, A arg)RGenericVisitorAdapter. visit(NodeList n, A arg)RGenericVisitorWithDefaults. visit(NodeList n, A arg)java.lang.IntegerHashCodeVisitor. visit(NodeList n, java.lang.Void arg)VisitableModifierVisitor. visit(NodeList n, A arg)java.lang.BooleanNoCommentEqualsVisitor. visit(NodeList n, Visitable arg)java.lang.IntegerNoCommentHashCodeVisitor. visit(NodeList n, java.lang.Void arg)voidNodeFinderVisitor. visit(NodeList n, Range arg)java.lang.BooleanObjectIdentityEqualsVisitor. visit(NodeList n, Visitable arg)java.lang.IntegerObjectIdentityHashCodeVisitor. visit(NodeList n, java.lang.Void arg)voidVoidVisitor. visit(NodeList n, A arg)voidVoidVisitorAdapter. visit(NodeList n, A arg)voidVoidVisitorWithDefaults. visit(NodeList n, A arg)Method parameters in com.github.javaparser.ast.visitor with type arguments of type NodeList Modifier and Type Method Description private <N extends Node>
NodeList<N>ModifierVisitor. modifyList(java.util.Optional<NodeList<N>> list, A arg)private <T extends Node>
booleanEqualsVisitor. nodesEquals(java.util.Optional<NodeList<T>> n, java.util.Optional<NodeList<T>> n2)private <T extends Node>
booleanNoCommentEqualsVisitor. nodesEquals(java.util.Optional<NodeList<T>> n, java.util.Optional<NodeList<T>> n2) -
Uses of NodeList in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type NodeList Modifier and Type Method Description protected voidDefaultPrettyPrinterVisitor. printAnnotations(NodeList<AnnotationExpr> annotations, boolean prefixWithASpace, java.lang.Void arg)protected voidPrettyPrintVisitor. printAnnotations(NodeList<AnnotationExpr> annotations, boolean prefixWithASpace, java.lang.Void arg)Deprecated.protected <T extends Expression>
voidDefaultPrettyPrinterVisitor. printArguments(NodeList<T> args, java.lang.Void arg)protected <T extends Expression>
voidPrettyPrintVisitor. printArguments(NodeList<T> args, java.lang.Void arg)Deprecated.private voidDefaultPrettyPrinterVisitor. printImports(NodeList<ImportDeclaration> imports, java.lang.Void arg)protected voidDefaultPrettyPrinterVisitor. printMemberAnnotations(NodeList<AnnotationExpr> annotations, java.lang.Void arg)protected voidPrettyPrintVisitor. printMemberAnnotations(NodeList<AnnotationExpr> annotations, java.lang.Void arg)Deprecated.protected voidDefaultPrettyPrinterVisitor. printMembers(NodeList<BodyDeclaration<?>> members, java.lang.Void arg)protected voidPrettyPrintVisitor. printMembers(NodeList<BodyDeclaration<?>> members, java.lang.Void arg)Deprecated.protected voidDefaultPrettyPrinterVisitor. printModifiers(NodeList<Modifier> modifiers)protected voidPrettyPrintVisitor. printModifiers(NodeList<Modifier> modifiers)Deprecated.protected voidDefaultPrettyPrinterVisitor. printPrePostFixOptionalList(NodeList<? extends Visitable> args, java.lang.Void arg, java.lang.String prefix, java.lang.String separator, java.lang.String postfix)protected voidPrettyPrintVisitor. printPrePostFixOptionalList(NodeList<? extends Visitable> args, java.lang.Void arg, java.lang.String prefix, java.lang.String separator, java.lang.String postfix)Deprecated.protected voidDefaultPrettyPrinterVisitor. printPrePostFixRequiredList(NodeList<? extends Visitable> args, java.lang.Void arg, java.lang.String prefix, java.lang.String separator, java.lang.String postfix)protected voidPrettyPrintVisitor. printPrePostFixRequiredList(NodeList<? extends Visitable> args, java.lang.Void arg, java.lang.String prefix, java.lang.String separator, java.lang.String postfix)Deprecated.protected voidDefaultPrettyPrinterVisitor. printTypeParameters(NodeList<TypeParameter> args, java.lang.Void arg)protected voidPrettyPrintVisitor. printTypeParameters(NodeList<TypeParameter> args, java.lang.Void arg)Deprecated.voidDefaultPrettyPrinterVisitor. visit(NodeList n, java.lang.Void arg)voidPrettyPrintVisitor. visit(NodeList n, java.lang.Void arg)Deprecated. -
Uses of NodeList in com.github.javaparser.printer.configuration
Methods in com.github.javaparser.printer.configuration that return types with arguments of type NodeList Modifier and Type Method Description java.util.List<NodeList<ImportDeclaration>>ImportOrderingStrategy. sortImports(NodeList<ImportDeclaration> imports)Sort the list of imports into groups.Methods in com.github.javaparser.printer.configuration with parameters of type NodeList Modifier and Type Method Description java.util.List<NodeList<ImportDeclaration>>ImportOrderingStrategy. 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 NodeList Modifier and Type Method Description java.util.List<NodeList<ImportDeclaration>>DefaultImportOrderingStrategy. sortImports(NodeList<ImportDeclaration> nodes)java.util.List<NodeList<ImportDeclaration>>EclipseImportOrderingStrategy. sortImports(NodeList<ImportDeclaration> nodes)java.util.List<NodeList<ImportDeclaration>>IntelliJImportOrderingStrategy. sortImports(NodeList<ImportDeclaration> nodes)Methods in com.github.javaparser.printer.configuration.imports with parameters of type NodeList Modifier and Type Method Description java.util.List<NodeList<ImportDeclaration>>DefaultImportOrderingStrategy. sortImports(NodeList<ImportDeclaration> nodes)java.util.List<NodeList<ImportDeclaration>>EclipseImportOrderingStrategy. sortImports(NodeList<ImportDeclaration> nodes)java.util.List<NodeList<ImportDeclaration>>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 NodeList Modifier and Type Method Description (package private) LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelAfterListAddition(CsmElement csm, ObservableProperty observableProperty, NodeList<?> nodeList, int index, Node nodeAdded)(package private) LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelAfterListRemoval(CsmElement csm, ObservableProperty observableProperty, NodeList<?> nodeList, int index)private LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelAfterListReplacement(CsmElement csm, ObservableProperty observableProperty, NodeList<?> nodeList, int index, Node newValue)(package private) java.util.List<DifferenceElement>LexicalDifferenceCalculator. calculateListAdditionDifference(ObservableProperty observableProperty, NodeList<?> nodeList, int index, Node nodeAdded)(package private) java.util.List<DifferenceElement>LexicalDifferenceCalculator. calculateListRemovalDifference(ObservableProperty observableProperty, NodeList<?> nodeList, int index)(package private) java.util.List<DifferenceElement>LexicalDifferenceCalculator. calculateListReplacementDifference(ObservableProperty observableProperty, NodeList<?> nodeList, int index, Node newValue)voidLexicalPreservingPrinter.Observer. concreteListChange(NodeList<?> changedList, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)voidLexicalPreservingPrinter.Observer. concreteListReplacement(NodeList<?> changedList, int index, Node oldValue, Node newValue)private static ObservablePropertyLexicalPreservingPrinter. findNodeListName(NodeList<?> nodeList) -
Uses of NodeList in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type NodeList Modifier and Type Method Description private voidJavaParserFacade. solveArguments(Node node, NodeList<Expression> args, boolean solveLambdas, java.util.List<ResolvedType> argumentTypes, java.util.List<LambdaArgumentTypePlaceholder> placeholders)ResolvedTypeDefaultVisitorAdapter. visit(NodeList node, java.lang.Boolean aBoolean) -
Uses of NodeList in com.github.javaparser.utils
Methods in com.github.javaparser.utils with parameters of type NodeList Modifier and Type Method Description static <T extends Node>
voidPositionUtils. sortByBeginPosition(NodeList<T> nodes)
-