Home
last modified time | relevance | path

Searched refs:typeArguments (Results 1 – 25 of 75) sorted by relevance

123

/external/javapoet/src/main/java/com/squareup/javapoet/
DParameterizedTypeName.java34 public final List<TypeName> typeArguments; field in ParameterizedTypeName
37 List<TypeName> typeArguments) { in ParameterizedTypeName() argument
38 this(enclosingType, rawType, typeArguments, new ArrayList<>()); in ParameterizedTypeName()
42 List<TypeName> typeArguments, List<AnnotationSpec> annotations) { in ParameterizedTypeName() argument
46 this.typeArguments = Util.immutableList(typeArguments); in ParameterizedTypeName()
48 checkArgument(!this.typeArguments.isEmpty() || enclosingType != null, in ParameterizedTypeName()
50 for (TypeName typeArgument : this.typeArguments) { in ParameterizedTypeName()
58 enclosingType, rawType, typeArguments, concatAnnotations(annotations)); in annotated()
64 enclosingType, rawType.withoutAnnotations(), typeArguments, new ArrayList<>()); in withoutAnnotations()
79 if (!typeArguments.isEmpty()) { in emit()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/
DMethodReferenceExpr.java62 private NodeList<Type> typeArguments; field in MethodReferenceExpr
72 public MethodReferenceExpr(Expression scope, NodeList<Type> typeArguments, String identifier) { in MethodReferenceExpr() argument
73 this(null, scope, typeArguments, identifier); in MethodReferenceExpr()
80 …ReferenceExpr(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, String identi… in MethodReferenceExpr() argument
83 setTypeArguments(typeArguments); in MethodReferenceExpr()
121 return Optional.ofNullable(typeArguments); in getTypeArguments()
131 public MethodReferenceExpr setTypeArguments(final NodeList<Type> typeArguments) { in setTypeArguments() argument
132 if (typeArguments == this.typeArguments) { in setTypeArguments()
135 notifyPropertyChange(ObservableProperty.TYPE_ARGUMENTS, this.typeArguments, typeArguments); in setTypeArguments()
136 if (this.typeArguments != null) in setTypeArguments()
[all …]
DFieldAccessExpr.java54 private NodeList<Type> typeArguments; field in FieldAccessExpr
67 …public FieldAccessExpr(final Expression scope, final NodeList<Type> typeArguments, final SimpleNam… in FieldAccessExpr() argument
68 this(null, scope, typeArguments, name); in FieldAccessExpr()
75 …public FieldAccessExpr(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, Simp… in FieldAccessExpr() argument
78 setTypeArguments(typeArguments); in FieldAccessExpr()
166 return Optional.ofNullable(typeArguments); in getTypeArguments()
176 public FieldAccessExpr setTypeArguments(final NodeList<Type> typeArguments) { in setTypeArguments() argument
177 if (typeArguments == this.typeArguments) { in setTypeArguments()
180 notifyPropertyChange(ObservableProperty.TYPE_ARGUMENTS, this.typeArguments, typeArguments); in setTypeArguments()
181 if (this.typeArguments != null) in setTypeArguments()
[all …]
DMethodCallExpr.java58 private NodeList<Type> typeArguments; field in MethodCallExpr
89 …public MethodCallExpr(final Expression scope, final NodeList<Type> typeArguments, final SimpleName… in MethodCallExpr() argument
90 this(null, scope, typeArguments, name, arguments); in MethodCallExpr()
97 …public MethodCallExpr(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, Simpl… in MethodCallExpr() argument
100 setTypeArguments(typeArguments); in MethodCallExpr()
176 return Optional.ofNullable(typeArguments); in getTypeArguments()
186 public MethodCallExpr setTypeArguments(final NodeList<Type> typeArguments) { in setTypeArguments() argument
187 if (typeArguments == this.typeArguments) { in setTypeArguments()
190 notifyPropertyChange(ObservableProperty.TYPE_ARGUMENTS, this.typeArguments, typeArguments); in setTypeArguments()
191 if (this.typeArguments != null) in setTypeArguments()
[all …]
DObjectCreationExpr.java65 private NodeList<Type> typeArguments; field in ObjectCreationExpr
88 …pression scope, final ClassOrInterfaceType type, final NodeList<Type> typeArguments, final NodeLis… in ObjectCreationExpr() argument
89 this(null, scope, type, typeArguments, arguments, anonymousClassBody); in ObjectCreationExpr()
96 …kenRange, Expression scope, ClassOrInterfaceType type, NodeList<Type> typeArguments, NodeList<Expr… in ObjectCreationExpr() argument
100 setTypeArguments(typeArguments); in ObjectCreationExpr()
214 return Optional.ofNullable(typeArguments); in getTypeArguments()
224 public ObjectCreationExpr setTypeArguments(final NodeList<Type> typeArguments) { in setTypeArguments() argument
225 if (typeArguments == this.typeArguments) { in setTypeArguments()
228 notifyPropertyChange(ObservableProperty.TYPE_ARGUMENTS, this.typeArguments, typeArguments); in setTypeArguments()
229 if (this.typeArguments != null) in setTypeArguments()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DExplicitConstructorInvocationStmt.java57 private NodeList<Type> typeArguments; field in ExplicitConstructorInvocationStmt
75 …public ExplicitConstructorInvocationStmt(final NodeList<Type> typeArguments, final boolean isThis,… in ExplicitConstructorInvocationStmt() argument
76 this(null, typeArguments, isThis, expression, arguments); in ExplicitConstructorInvocationStmt()
83 …public ExplicitConstructorInvocationStmt(TokenRange tokenRange, NodeList<Type> typeArguments, bool… in ExplicitConstructorInvocationStmt() argument
85 setTypeArguments(typeArguments); in ExplicitConstructorInvocationStmt()
178 return Optional.ofNullable(typeArguments); in getTypeArguments()
188 public ExplicitConstructorInvocationStmt setTypeArguments(final NodeList<Type> typeArguments) { in setTypeArguments() argument
189 if (typeArguments == this.typeArguments) { in setTypeArguments()
192 notifyPropertyChange(ObservableProperty.TYPE_ARGUMENTS, this.typeArguments, typeArguments); in setTypeArguments()
193 if (this.typeArguments != null) in setTypeArguments()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/type/
DClassOrInterfaceType.java68 private NodeList<Type> typeArguments; field in ClassOrInterfaceType
85 …Type(final ClassOrInterfaceType scope, final SimpleName name, final NodeList<Type> typeArguments) { in ClassOrInterfaceType() argument
86 this(null, scope, name, typeArguments, new NodeList<>()); in ClassOrInterfaceType()
90 …assOrInterfaceType scope, final SimpleName name, final NodeList<Type> typeArguments, final NodeLis… in ClassOrInterfaceType() argument
91 this(null, scope, name, typeArguments, annotations); in ClassOrInterfaceType()
98 …kenRange, ClassOrInterfaceType scope, SimpleName name, NodeList<Type> typeArguments, NodeList<Anno… in ClassOrInterfaceType() argument
102 setTypeArguments(typeArguments); in ClassOrInterfaceType()
174 return Optional.ofNullable(typeArguments); in getTypeArguments()
184 public ClassOrInterfaceType setTypeArguments(final NodeList<Type> typeArguments) { in setTypeArguments() argument
185 if (typeArguments == this.typeArguments) { in setTypeArguments()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/expr/
DMethodReferenceExpr.java48 private List<Type<?>> typeArguments; field in MethodReferenceExpr
56 List<Type<?>> typeArguments, String identifier) { in MethodReferenceExpr() argument
60 setTypeArguments(typeArguments); in MethodReferenceExpr()
86 return typeArguments; in getTypeArguments()
91 this.typeArguments = types; in setTypeArguments()
92 setAsParentNodeOf(this.typeArguments); in setTypeArguments()
DFieldAccessExpr.java39 private List<Type<?>> typeArguments; field in FieldAccessExpr
51 …ssExpr(final Range range, final Expression scope, final List<Type<?>> typeArguments, final String … in FieldAccessExpr() argument
54 setTypeArguments(typeArguments); in FieldAccessExpr()
98 return typeArguments; in getTypeArguments()
103 this.typeArguments = types; in setTypeArguments()
104 setAsParentNodeOf(this.typeArguments); in setTypeArguments()
DMethodCallExpr.java41 private List<Type<?>> typeArguments; field in MethodCallExpr
61 …public MethodCallExpr(final Range range, final Expression scope, final List<Type<?>> typeArguments in MethodCallExpr() argument
64 setTypeArguments(typeArguments); in MethodCallExpr()
136 return typeArguments; in getTypeArguments()
141 this.typeArguments = types; in setTypeArguments()
142 setAsParentNodeOf(this.typeArguments); in setTypeArguments()
DObjectCreationExpr.java55 private List<Type<?>> typeArguments; field in ObjectCreationExpr
79 final Expression scope, final ClassOrInterfaceType type, final List<Type<?>> typeArguments, in ObjectCreationExpr() argument
84 setTypeArguments(typeArguments); in ObjectCreationExpr()
156 return typeArguments; in getTypeArguments()
161 this.typeArguments = types; in setTypeArguments()
162 setAsParentNodeOf(this.typeArguments); in setTypeArguments()
/external/guice/core/src/com/google/inject/internal/
DMoreTypes.java355 private final Type[] typeArguments; field in MoreTypes.ParameterizedTypeImpl
357 public ParameterizedTypeImpl(Type ownerType, Type rawType, Type... typeArguments) { in ParameterizedTypeImpl() argument
363 this.typeArguments = typeArguments.clone(); in ParameterizedTypeImpl()
364 for (int t = 0; t < this.typeArguments.length; t++) { in ParameterizedTypeImpl()
365 checkNotNull(this.typeArguments[t], "type parameter"); in ParameterizedTypeImpl()
366 checkNotPrimitive(this.typeArguments[t], "type parameters"); in ParameterizedTypeImpl()
367 this.typeArguments[t] = canonicalize(this.typeArguments[t]); in ParameterizedTypeImpl()
373 return typeArguments.clone(); in getActualTypeArguments()
396 for (Type type : typeArguments) { in isFullySpecified()
413 return Arrays.hashCode(typeArguments) ^ rawType.hashCode() ^ hashCodeOrZero(ownerType); in hashCode()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/stmt/
DExplicitConstructorInvocationStmt.java40 private List<Type<?>> typeArguments; field in ExplicitConstructorInvocationStmt
59 final List<Type<?>> typeArguments, final boolean isThis, in ExplicitConstructorInvocationStmt() argument
62 setTypeArguments(typeArguments); in ExplicitConstructorInvocationStmt()
110 return typeArguments; in getTypeArguments()
115 this.typeArguments = types; in setTypeArguments()
116 setAsParentNodeOf(this.typeArguments); in setTypeArguments()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/type/
DClassOrInterfaceType.java47 private List<Type<?>> typeArguments; field in ClassOrInterfaceType
61 …ge range, final ClassOrInterfaceType scope, final String name, final List<Type<?>> typeArguments) { in ClassOrInterfaceType() argument
65 setTypeArguments(typeArguments); in ClassOrInterfaceType()
110 return typeArguments; in getTypeArguments()
115 this.typeArguments = types; in setTypeArguments()
116 setAsParentNodeOf(this.typeArguments); in setTypeArguments()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/
DJava5Validator.java17 …Optional<NodeList<Type>> typeArguments = ((NodeWithTypeArguments<? extends Node>) node).getTypeArg…
18 if (typeArguments.isPresent() && typeArguments.get().isEmpty()) {
26 …Optional<NodeList<Type>> typeArguments = ((NodeWithTypeArguments<? extends Node>) node).getTypeArg…
27 typeArguments.ifPresent(types -> types.forEach(ty -> {
/external/doclava/src/com/google/doclava/
DTypeInfo.java144 if (other.typeArguments() != null) { in TypeInfo()
145 mTypeArguments = new ArrayList<TypeInfo>(other.typeArguments()); in TypeInfo()
288 public ArrayList<TypeInfo> typeArguments() { in typeArguments() method in TypeInfo
526 public TypeInfo getTypeWithArguments(Map<String, TypeInfo> typeArguments) { in getTypeWithArguments() argument
527 if (typeArguments.containsKey(fullName())) { in getTypeWithArguments()
528 return typeArguments.get(fullName()); in getTypeWithArguments()
532 if (typeArguments() != null) { in getTypeWithArguments()
534 for (TypeInfo t : typeArguments()) { in getTypeWithArguments()
535 newArgs.add(t.getTypeWithArguments(typeArguments)); in getTypeWithArguments()
548 if (generic != null && generic.typeArguments() != null) { in getTypeArgumentMapping()
[all …]
/external/guice/core/src/com/google/inject/util/
DTypes.java48 public static ParameterizedType newParameterizedType(Type rawType, Type... typeArguments) { in newParameterizedType() argument
49 return newParameterizedTypeWithOwner(null, rawType, typeArguments); in newParameterizedType()
59 Type ownerType, Type rawType, Type... typeArguments) { in newParameterizedTypeWithOwner() argument
60 return new ParameterizedTypeImpl(ownerType, rawType, typeArguments); in newParameterizedTypeWithOwner()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/
DNodeWithTypeArguments.java48 T setTypeArguments(List<Type<?>> typeArguments); in setTypeArguments() argument
77 default T setTypeArguments(Type<?>... typeArguments) { in setTypeArguments() argument
78 setTypeArguments(arrayToList(typeArguments)); in setTypeArguments()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithTypeArguments.java53 N setTypeArguments(NodeList<Type> typeArguments); in setTypeArguments() argument
80 default N setTypeArguments(Type... typeArguments) { in setTypeArguments() argument
81 return setTypeArguments(nodeList(typeArguments)); in setTypeArguments()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/visitor/
DModifierVisitorAdapter.java340 final List<Type<?>> typeArguments = n.getTypeArguments(); in visit() local
341 if (typeArguments != null) { in visit()
342 for (int i = 0; i < typeArguments.size(); i++) { in visit()
343 typeArguments.set(i, (Type<?>) typeArguments.get(i).accept(this, arg)); in visit()
345 removeNulls(typeArguments); in visit()
526 final List<Type<?>> typeArguments = n.getTypeArguments(); in visit() local
527 if (typeArguments != null) { in visit()
528 for (int i = 0; i < typeArguments.size(); i++) { in visit()
529 typeArguments.set(i, (Type<?>) typeArguments.get(i).accept(this, arg)); in visit()
531 removeNulls(typeArguments); in visit()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/types/
DResolvedReferenceType.java59 …ReferenceType(ResolvedReferenceTypeDeclaration typeDeclaration, List<ResolvedType> typeArguments) { in ResolvedReferenceType() argument
63 …if (typeArguments.size() > 0 && typeArguments.size() != typeDeclaration.getTypeParameters().size()… in ResolvedReferenceType()
66 typeDeclaration.getTypeParameters().size(), typeArguments.size())); in ResolvedReferenceType()
69 for (int i = 0; i < typeArguments.size(); i++) { in ResolvedReferenceType()
70 …ypeParametersMapBuilder.setValue(typeDeclaration.getTypeParameters().get(i), typeArguments.get(i)); in ResolvedReferenceType()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/
Dcom_github_javaparser_ast_nodeTypes_NodeWithTypeArguments.txt6 …Line 78) setTypeArguments(arrayToList(typeArguments)) ==> com.github.javaparser.ast.nodeTypes.Node…
7 Line 78) arrayToList(typeArguments) ==> com.github.javaparser.utils.Utils.arrayToList(T[])
Dcom_github_javaparser_ast_expr_MethodReferenceExpr.txt3 …Line 60) setTypeArguments(typeArguments) ==> com.github.javaparser.ast.expr.MethodReferenceExpr.se…
7 …Line 92) setAsParentNodeOf(this.typeArguments) ==> com.github.javaparser.ast.Node.setAsParentNodeO…
Dcom_github_javaparser_ast_expr_FieldAccessExpr.txt4 …Line 54) setTypeArguments(typeArguments) ==> com.github.javaparser.ast.expr.FieldAccessExpr.setTyp…
12 …Line 104) setAsParentNodeOf(this.typeArguments) ==> com.github.javaparser.ast.Node.setAsParentNode…
Dcom_github_javaparser_ast_type_ClassOrInterfaceType.txt6 …Line 65) setTypeArguments(typeArguments) ==> com.github.javaparser.ast.type.ClassOrInterfaceType.s…
13 …Line 116) setAsParentNodeOf(this.typeArguments) ==> com.github.javaparser.ast.Node.setAsParentNode…

123