Home
last modified time | relevance | path

Searched refs:NodeList (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DConstructorDeclaration.java59 …this(null, new NodeList<>(), new NodeList<>(), new NodeList<>(), new SimpleName(), new NodeList<>(… in ConstructorDeclaration()
63 …this(null, new NodeList<>(new Modifier()), new NodeList<>(), new NodeList<>(), new SimpleName(name… in ConstructorDeclaration()
66 public ConstructorDeclaration(NodeList<Modifier> modifiers, String name) { in ConstructorDeclaration()
67 …this(null, modifiers, new NodeList<>(), new NodeList<>(), new SimpleName(name), new NodeList<>(), … in ConstructorDeclaration()
70NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typePa… in ConstructorDeclaration()
75NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typePa… in ConstructorDeclaration()
83NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typePa… in ConstructorDeclaration()
127 public ConstructorDeclaration setModifiers(final NodeList<Modifier> modifiers) { in setModifiers()
137 public ConstructorDeclaration setParameters(final NodeList<Parameter> parameters) { in setParameters()
142 …public ConstructorDeclaration setThrownExceptions(final NodeList<ReferenceType> thrownExceptions) { in setThrownExceptions()
[all …]
DClassOrInterfaceDeclaration.java27 import com.github.javaparser.ast.NodeList;
61 private NodeList<TypeParameter> typeParameters;
64 private NodeList<ClassOrInterfaceType> extendedTypes;
66 private NodeList<ClassOrInterfaceType> implementedTypes;
69 …this(null, new NodeList<>(), new NodeList<>(), false, new SimpleName(), new NodeList<>(), new Node… in ClassOrInterfaceDeclaration()
72 …public ClassOrInterfaceDeclaration(final NodeList<Modifier> modifiers, final boolean isInterface, … in ClassOrInterfaceDeclaration()
73 …ll, modifiers, new NodeList<>(), isInterface, new SimpleName(name), new NodeList<>(), new NodeList in ClassOrInterfaceDeclaration()
77NodeList<Modifier> modifiers, final NodeList<AnnotationExpr> annotations, final boolean isInterfac… in ClassOrInterfaceDeclaration()
85NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, boolean isInterface, SimpleNam… in ClassOrInterfaceDeclaration()
107 public NodeList<ClassOrInterfaceType> getExtendedTypes() { in getExtendedTypes()
[all …]
DMethodDeclaration.java66 …is(null, new NodeList<>(), new NodeList<>(), new NodeList<>(), new ClassOrInterfaceType(), new Sim… in MethodDeclaration()
69 … public MethodDeclaration(final NodeList<Modifier> modifiers, final Type type, final String name) { in MethodDeclaration()
70 …this(null, modifiers, new NodeList<>(), new NodeList<>(), type, new SimpleName(name), new NodeList in MethodDeclaration()
73 …public MethodDeclaration(final NodeList<Modifier> modifiers, final String name, final Type type, f… in MethodDeclaration()
74 …this(null, modifiers, new NodeList<>(), new NodeList<>(), type, new SimpleName(name), parameters, … in MethodDeclaration()
77NodeList<Modifier> modifiers, final NodeList<AnnotationExpr> annotations, final NodeList<TypeParam… in MethodDeclaration()
82NodeList<Modifier> modifiers, final NodeList<AnnotationExpr> annotations, final NodeList<TypeParam… in MethodDeclaration()
90NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typePa… in MethodDeclaration()
153 public MethodDeclaration setModifiers(final NodeList<Modifier> modifiers) { in setModifiers()
163 public MethodDeclaration setParameters(final NodeList<Parameter> parameters) { in setParameters()
[all …]
DEnumDeclaration.java27 import com.github.javaparser.ast.NodeList;
54 private NodeList<ClassOrInterfaceType> implementedTypes;
56 private NodeList<EnumConstantDeclaration> entries;
59 …this(null, new NodeList<>(), new NodeList<>(), new SimpleName(), new NodeList<>(), new NodeList<>(… in EnumDeclaration()
62 public EnumDeclaration(NodeList<Modifier> modifiers, String name) { in EnumDeclaration()
63 …this(null, modifiers, new NodeList<>(), new SimpleName(name), new NodeList<>(), new NodeList<>(), … in EnumDeclaration()
67NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Clas… in EnumDeclaration()
75NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Clas… in EnumDeclaration()
95 public NodeList<EnumConstantDeclaration> getEntries() { in getEntries()
114 public NodeList<ClassOrInterfaceType> getImplementedTypes() { in getImplementedTypes()
[all …]
DParameter.java26 import com.github.javaparser.ast.NodeList;
64 private NodeList<AnnotationExpr> varArgsAnnotations;
66 private NodeList<Modifier> modifiers;
68 private NodeList<AnnotationExpr> annotations;
73 …this(null, new NodeList<>(), new NodeList<>(), new ClassOrInterfaceType(), false, new NodeList<>()… in Parameter()
77 this(null, new NodeList<>(), new NodeList<>(), type, false, new NodeList<>(), name); in Parameter()
87 …this(null, new NodeList<>(), new NodeList<>(), type, false, new NodeList<>(), new SimpleName(name)… in Parameter()
90 public Parameter(NodeList<Modifier> modifiers, Type type, SimpleName name) { in Parameter()
91 this(null, modifiers, new NodeList<>(), type, false, new NodeList<>(), name); in Parameter()
95 …public Parameter(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type type, bo… in Parameter()
[all …]
DEnumConstantDeclaration.java24 import com.github.javaparser.ast.NodeList;
55 private NodeList<Expression> arguments;
57 private NodeList<BodyDeclaration<?>> classBody;
60 this(null, new NodeList<>(), new SimpleName(), new NodeList<>(), new NodeList<>()); in EnumConstantDeclaration()
64 this(null, new NodeList<>(), new SimpleName(name), new NodeList<>(), new NodeList<>()); in EnumConstantDeclaration()
68 …blic EnumConstantDeclaration(NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Expre… in EnumConstantDeclaration()
76 …ation(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<Expre… in EnumConstantDeclaration()
97 public NodeList<Expression> getArguments() { in getArguments()
102 public NodeList<BodyDeclaration<?>> getClassBody() { in getClassBody()
112 public EnumConstantDeclaration setArguments(final NodeList<Expression> arguments) { in setArguments()
[all …]
DTypeDeclaration.java54 private NodeList<Modifier> modifiers;
56 private NodeList<BodyDeclaration<?>> members;
59 this(null, new NodeList<>(), new NodeList<>(), new SimpleName(), new NodeList<>()); in TypeDeclaration()
62 public TypeDeclaration(NodeList<Modifier> modifiers, String name) { in TypeDeclaration()
63 this(null, modifiers, new NodeList<>(), new SimpleName(name), new NodeList<>()); in TypeDeclaration()
67 …public TypeDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleN… in TypeDeclaration()
75 …ration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, … in TypeDeclaration()
89 NodeList<BodyDeclaration<?>> members = getMembers(); in addMember()
95 public NodeList<BodyDeclaration<?>> getMembers() { in getMembers()
106 public NodeList<Modifier> getModifiers() { in getModifiers()
[all …]
DFieldDeclaration.java49 import static com.github.javaparser.ast.NodeList.nodeList;
65 private NodeList<Modifier> modifiers;
68 private NodeList<VariableDeclarator> variables;
71 this(null, new NodeList<>(), new NodeList<>(), new NodeList<>()); in FieldDeclaration()
74 public FieldDeclaration(NodeList<Modifier> modifiers, VariableDeclarator variable) { in FieldDeclaration()
75 this(null, modifiers, new NodeList<>(), nodeList(variable)); in FieldDeclaration()
78 public FieldDeclaration(NodeList<Modifier> modifiers, NodeList<VariableDeclarator> variables) { in FieldDeclaration()
79 this(null, modifiers, new NodeList<>(), variables); in FieldDeclaration()
83 …public FieldDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeLi… in FieldDeclaration()
91 …eldDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annot… in FieldDeclaration()
[all …]
DAnnotationDeclaration.java26 import com.github.javaparser.ast.NodeList;
51 this(null, new NodeList<>(), new NodeList<>(), new SimpleName(), new NodeList<>()); in AnnotationDeclaration()
54 public AnnotationDeclaration(NodeList<Modifier> modifiers, String name) { in AnnotationDeclaration()
55 this(null, modifiers, new NodeList<>(), new SimpleName(name), new NodeList<>()); in AnnotationDeclaration()
59 …public AnnotationDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, S… in AnnotationDeclaration()
67 …ration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, … in AnnotationDeclaration()
DCallableDeclaration.java27 import com.github.javaparser.ast.NodeList;
54 private NodeList<Modifier> modifiers;
56 private NodeList<TypeParameter> typeParameters;
60 private NodeList<Parameter> parameters;
62 private NodeList<ReferenceType> thrownExceptions;
68NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typePa… in CallableDeclaration()
76NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typePa… in CallableDeclaration()
94 public NodeList<Modifier> getModifiers() { in getModifiers()
100 public T setModifiers(final NodeList<Modifier> modifiers) { in setModifiers()
134 public NodeList<Parameter> getParameters() { in getParameters()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/
DVariableDeclarationExpr.java26 import com.github.javaparser.ast.NodeList;
41 import static com.github.javaparser.ast.NodeList.nodeList;
61 private NodeList<Modifier> modifiers;
63 private NodeList<AnnotationExpr> annotations;
66 private NodeList<VariableDeclarator> variables;
69 this(null, new NodeList<>(), new NodeList<>(), new NodeList<>()); in VariableDeclarationExpr()
73 …this(null, new NodeList<>(), new NodeList<>(), nodeList(new VariableDeclarator(type, variableName)… in VariableDeclarationExpr()
77 this(null, new NodeList<>(), new NodeList<>(), nodeList(var)); in VariableDeclarationExpr()
81 …s.stream(modifiers).collect(Collectors.toCollection(() -> new NodeList<>())), new NodeList<>(), no… in VariableDeclarationExpr()
85 …s.stream(modifiers).collect(Collectors.toCollection(() -> new NodeList<>())), new NodeList<>(), no… in VariableDeclarationExpr()
[all …]
DMethodCallExpr.java24 import com.github.javaparser.ast.NodeList;
60 private NodeList<Type> typeArguments;
64 private NodeList<Expression> arguments;
67 this(null, null, null, new SimpleName(), new NodeList<>()); in MethodCallExpr()
71 this(null, null, null, new SimpleName(name), new NodeList<>(arguments)); in MethodCallExpr()
75 this(null, scope, null, new SimpleName(name), new NodeList<>()); in MethodCallExpr()
79 this(null, scope, null, name, new NodeList<>()); in MethodCallExpr()
82 …public MethodCallExpr(final Expression scope, final String name, final NodeList<Expression> argume… in MethodCallExpr()
86 …MethodCallExpr(final Expression scope, final NodeList<Type> typeArguments, final String name, fina… in MethodCallExpr()
90 …public MethodCallExpr(final Expression scope, final SimpleName name, final NodeList<Expression> ar… in MethodCallExpr()
[all …]
DObjectCreationExpr.java24 import com.github.javaparser.ast.NodeList;
68 private NodeList<Type> typeArguments;
70 private NodeList<Expression> arguments;
73 private NodeList<BodyDeclaration<?>> anonymousClassBody;
76 this(null, null, new ClassOrInterfaceType(), new NodeList<>(), new NodeList<>(), null); in ObjectCreationExpr()
86 …tionExpr(final Expression scope, final ClassOrInterfaceType type, final NodeList<Expression> argum… in ObjectCreationExpr()
91 …l ClassOrInterfaceType type, final NodeList<Type> typeArguments, final NodeList<Expression> argume… in ObjectCreationExpr()
99 …ession scope, ClassOrInterfaceType type, NodeList<Type> typeArguments, NodeList<Expression> argume… in ObjectCreationExpr()
122 public Optional<NodeList<BodyDeclaration<?>>> getAnonymousClassBody() { in getAnonymousClassBody()
128 anonymousClassBody = new NodeList<>(); in addAnonymousClassBody()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/
DNodeList.java47 public class NodeList<N extends Node> implements List<N>, Iterable<N>, HasParentNode<NodeList<N>>, … class
55 public NodeList() { in NodeList() method in NodeList
59 public NodeList(Collection<N> n) { in NodeList() method in NodeList
64 public NodeList(N... n) { in NodeList() method in NodeList
100 public static <X extends Node> NodeList<X> nodeList(X... nodes) { in nodeList()
101 final NodeList<X> nodeList = new NodeList<>(); in nodeList()
106 public static <X extends Node> NodeList<X> nodeList(Collection<X> nodes) { in nodeList()
107 final NodeList<X> nodeList = new NodeList<>(); in nodeList()
112 public static <X extends Node> NodeList<X> nodeList(NodeList<X> nodes) { in nodeList()
113 final NodeList<X> nodeList = new NodeList<>(); in nodeList()
[all …]
/external/javaparser/javaparser-core/src/main/javacc-support/com/github/javaparser/
DGeneratedJavaParserBase.java5 import com.github.javaparser.ast.NodeList;
146 JavaToken nodeListBegin(NodeList<?> l) { in nodeListBegin()
190 <T extends Node> NodeList<T> emptyList() { in emptyList()
191 return new NodeList<>(); in emptyList()
197 <T extends Node> NodeList<T> add(NodeList<T> list, T obj) { in add()
199 list = new NodeList<>(); in add()
208 <T extends Node> NodeList<T> addWhenNotNull(NodeList<T> list, T obj) { in addWhenNotNull()
218 <T extends Node> NodeList<T> prepend(NodeList<T> list, T obj) { in prepend()
220 list = new NodeList<>(); in prepend()
261NodeList<Parameter> params = add(new NodeList<>(), new Parameter(ret.getTokenRange().orElse(null),… in generateLambda()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/modules/
DModuleDeclaration.java5 import com.github.javaparser.ast.NodeList;
28 private NodeList<AnnotationExpr> annotations;
32 private NodeList<ModuleDirective> directives;
35 this(null, new NodeList<>(), new Name(), false, new NodeList<>()); in ModuleDeclaration()
39 this(null, new NodeList<>(), name, isOpen, new NodeList<>()); in ModuleDeclaration()
43 …public ModuleDeclaration(NodeList<AnnotationExpr> annotations, Name name, boolean isOpen, NodeList in ModuleDeclaration()
51 …oduleDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Name name, boolean i… in ModuleDeclaration()
92 public NodeList<AnnotationExpr> getAnnotations() { in getAnnotations()
97 public ModuleDeclaration setAnnotations(final NodeList<AnnotationExpr> annotations) { in setAnnotations()
146 public NodeList<ModuleDirective> getDirectives() { in getDirectives()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/type/
DTypeParameter.java25 import com.github.javaparser.ast.NodeList;
61 private NodeList<ClassOrInterfaceType> typeBound;
64 this(null, new SimpleName(), new NodeList<>(), new NodeList<>()); in TypeParameter()
68 this(null, new SimpleName(name), new NodeList<>(), new NodeList<>()); in TypeParameter()
71 public TypeParameter(final String name, final NodeList<ClassOrInterfaceType> typeBound) { in TypeParameter()
72 this(null, new SimpleName(name), typeBound, new NodeList<>()); in TypeParameter()
76 …public TypeParameter(SimpleName name, NodeList<ClassOrInterfaceType> typeBound, NodeList<Annotatio… in TypeParameter()
84 …eParameter(TokenRange tokenRange, SimpleName name, NodeList<ClassOrInterfaceType> typeBound, NodeL… in TypeParameter()
120 public NodeList<ClassOrInterfaceType> getTypeBound() { in getTypeBound()
139 public TypeParameter setTypeBound(final NodeList<ClassOrInterfaceType> typeBound) { in setTypeBound()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DSwitchEntry.java27 import com.github.javaparser.ast.NodeList;
88 private NodeList<Expression> labels;
90 private NodeList<Statement> statements;
95 this(null, new NodeList<Expression>(), Type.STATEMENT_GROUP, new NodeList<>()); in SwitchEntry()
99 …public SwitchEntry(final NodeList<Expression> labels, final Type type, final NodeList<Statement> s… in SwitchEntry()
107 …public SwitchEntry(TokenRange tokenRange, NodeList<Expression> labels, Type type, NodeList<Stateme… in SwitchEntry()
128 public NodeList<Expression> getLabels() { in getLabels()
133 public NodeList<Statement> getStatements() { in getStatements()
144 public SwitchEntry setLabels(final NodeList<Expression> labels) { in setLabels()
158 public SwitchEntry setStatements(final NodeList<Statement> statements) { in setStatements()
DTryStmt.java26 import com.github.javaparser.ast.NodeList;
97 private NodeList<Expression> resources;
101 private NodeList<CatchClause> catchClauses;
107 this(null, new NodeList<>(), new BlockStmt(), new NodeList<>(), null); in TryStmt()
110 …public TryStmt(final BlockStmt tryBlock, final NodeList<CatchClause> catchClauses, final BlockStmt… in TryStmt()
111 this(null, new NodeList<>(), tryBlock, catchClauses, finallyBlock); in TryStmt()
115 …public TryStmt(NodeList<Expression> resources, final BlockStmt tryBlock, final NodeList<CatchClaus… in TryStmt()
123 …public TryStmt(TokenRange tokenRange, NodeList<Expression> resources, BlockStmt tryBlock, NodeList in TryStmt()
145 public NodeList<CatchClause> getCatchClauses() { in getCatchClauses()
160 public NodeList<Expression> getResources() { in getResources()
[all …]
DForStmt.java26 import com.github.javaparser.ast.NodeList;
71 private NodeList<Expression> initialization;
76 private NodeList<Expression> update;
81 this(null, new NodeList<>(), new BooleanLiteralExpr(), new NodeList<>(), new ReturnStmt()); in ForStmt()
85 …public ForStmt(final NodeList<Expression> initialization, final Expression compare, final NodeList in ForStmt()
93 …public ForStmt(TokenRange tokenRange, NodeList<Expression> initialization, Expression compare, Nod… in ForStmt()
125 public NodeList<Expression> getInitialization() { in getInitialization()
130 public NodeList<Expression> getUpdate() { in getUpdate()
168 public ForStmt setInitialization(final NodeList<Expression> initialization) { in setInitialization()
182 public ForStmt setUpdate(final NodeList<Expression> update) { in setUpdate()
DExplicitConstructorInvocationStmt.java24 import com.github.javaparser.ast.NodeList;
58 private NodeList<Type> typeArguments;
65 private NodeList<Expression> arguments;
68 this(null, null, true, null, new NodeList<>()); in ExplicitConstructorInvocationStmt()
71 …InvocationStmt(final boolean isThis, final Expression expression, final NodeList<Expression> argum… in ExplicitConstructorInvocationStmt()
76 …structorInvocationStmt(final NodeList<Type> typeArguments, final boolean isThis, final Expression … in ExplicitConstructorInvocationStmt()
84 …InvocationStmt(TokenRange tokenRange, NodeList<Type> typeArguments, boolean isThis, Expression exp… in ExplicitConstructorInvocationStmt()
106 public NodeList<Expression> getArguments() { in getArguments()
121 public ExplicitConstructorInvocationStmt setArguments(final NodeList<Expression> arguments) { in setArguments()
164 public Optional<NodeList<Type>> getTypeArguments() { in getTypeArguments()
[all …]
/external/python/cpython3/Lib/test/
Dtest_xml_dom_minicompat.py35 node_list = EmptyNodeList() + NodeList()
36 self.assertEqual(node_list, NodeList())
49 node_list = NodeList()
70 node_list = NodeList([1, 2])
78 node_list = NodeList([3, 4]) + [1, 2]
79 self.assertEqual(node_list, NodeList([3, 4, 1, 2]))
82 node_list = [1, 2] + NodeList([3, 4])
83 self.assertEqual(node_list, NodeList([1, 2, 3, 4]))
90 node_list = NodeList()
106 node_list = NodeList()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/
DModifierVisitor.java55 NodeList<BodyDeclaration<?>> members = modifyList(n.getMembers(), arg); in visit()
56 NodeList<Modifier> modifiers = modifyList(n.getModifiers(), arg); in visit()
58 NodeList<AnnotationExpr> annotations = modifyList(n.getAnnotations(), arg); in visit()
73 NodeList<Modifier> modifiers = modifyList(n.getModifiers(), arg); in visit()
76 NodeList<AnnotationExpr> annotations = modifyList(n.getAnnotations(), arg); in visit()
106 NodeList<ArrayCreationLevel> levels = modifyList(n.getLevels(), arg); in visit()
119 NodeList<Expression> values = modifyList(n.getValues(), arg); in visit()
169 NodeList<Statement> statements = modifyList(n.getStatements(), arg); in visit()
238 NodeList<ClassOrInterfaceType> extendedTypes = modifyList(n.getExtendedTypes(), arg); in visit()
239 NodeList<ClassOrInterfaceType> implementedTypes = modifyList(n.getImplementedTypes(), arg); in visit()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithTypeArguments.java25 import com.github.javaparser.ast.NodeList;
31 import static com.github.javaparser.ast.NodeList.nodeList;
48 Optional<NodeList<Type>> getTypeArguments(); in getTypeArguments()
55 N setTypeArguments(NodeList<Type> typeArguments); in setTypeArguments()
70 return setTypeArguments(new NodeList<>()); in setDiamondOperator()
78 return setTypeArguments((NodeList<Type>) null); in removeTypeArguments()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/
DListRemovalChange.java4 import com.github.javaparser.ast.NodeList;
22 NodeList<Node> nodeList = new NodeList<>(); in getValue()
24 if (!(currentRawValue instanceof NodeList)){ in getValue()
27 NodeList<?> currentNodeList = (NodeList<?>)currentRawValue; in getValue()

12345678910>>...12