Home
last modified time | relevance | path

Searched refs:DeclaredType (Results 1 – 25 of 109) sorted by relevance

12345

/external/auto/common/src/test/java/com/google/auto/common/
DMoreTypesTest.java42 import javax.lang.model.type.DeclaredType;
76 TypeMirror funkyBoundsVar = ((DeclaredType) funkyBounds.asType()).getTypeArguments().get(0); in equivalence()
77 TypeMirror funkyBounds2Var = ((DeclaredType) funkyBounds2.asType()).getTypeArguments().get(0); in equivalence()
78 TypeMirror funkierBoundsVar = ((DeclaredType) funkierBounds.asType()).getTypeArguments().get(0); in equivalence()
79 DeclaredType mapOfObjectToObjectType = in equivalence()
82 DeclaredType setOfSetOfObject = in equivalence()
84 DeclaredType setOfSetOfString = in equivalence()
86 DeclaredType setOfSetOfSetOfObject = types.getDeclaredType(setElement, setOfSetOfObject); in equivalence()
87 DeclaredType setOfSetOfSetOfString = types.getDeclaredType(setElement, setOfSetOfString); in equivalence()
89 DeclaredType containerOfObject = types.getDeclaredType(container, objectType); in equivalence()
[all …]
/external/dagger2/java/dagger/hilt/android/processor/internal/
DMoreTypes.java27 import javax.lang.model.type.DeclaredType;
44 public static DeclaredType getDeclaredType(TypeMirror type) { in getDeclaredType()
46 new SimpleTypeVisitor7<DeclaredType, Void>() { in getDeclaredType()
47 @Override public DeclaredType visitArray(ArrayType type, Void unused) { in getDeclaredType()
51 @Override public DeclaredType visitDeclared(DeclaredType type, Void unused) { in getDeclaredType()
55 @Override public DeclaredType visitError(ErrorType type, Void unused) { in getDeclaredType()
59 @Override public DeclaredType defaultAction(TypeMirror type, Void unused) { in getDeclaredType()
71 public static TypeElement asTypeElement(DeclaredType type) {
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DTypeUtils.java26 import javax.lang.model.type.DeclaredType;
46 if (type instanceof DeclaredType) { in isGeneric()
47 return !((DeclaredType) type).getTypeArguments().isEmpty(); in isGeneric()
53 if (type instanceof DeclaredType) { in removeTypeArguments()
54 return ((DeclaredType) type).asElement().asType(); in removeTypeArguments()
60 if (!(type instanceof DeclaredType)) { in extractTypeArguments()
64 return new ArrayList<>(((DeclaredType) type).getTypeArguments()); in extractTypeArguments()
/external/dagger2/java/dagger/internal/codegen/langmodel/
DDaggerTypes.java38 import javax.lang.model.type.DeclaredType;
66 public Optional<DeclaredType> nonObjectSuperclass(DeclaredType type) { in nonObjectSuperclass()
105 DeclaredType declaredType = MoreTypes.asDeclared(type); in unwrapTypeOrDefault()
120 public DeclaredType wrapType(TypeMirror type, Class<?> wrappingClass) { in wrapType()
135 public DeclaredType rewrapType(TypeMirror type, Class<?> wrappingClass) { in rewrapType()
207 public Void visitDeclared(DeclaredType declaredType, Void p) { in checkTypePresent()
236 public Boolean visitDeclared(DeclaredType declaredType, Void p) { in hasTypeVariable()
344 public DeclaredType getDeclaredType(TypeElement typeElem, TypeMirror... typeArgs) {
349 public DeclaredType getDeclaredType(
350 DeclaredType containing, TypeElement typeElem, TypeMirror... typeArgs) {
[all …]
/external/dagger2/java/dagger/internal/codegen/binding/
DMapKeys.java50 import javax.lang.model.type.DeclaredType;
106 public static DeclaredType getUnwrappedMapKeyType( in getUnwrappedMapKeyType()
107 final DeclaredType mapKeyAnnotationType, final DaggerTypes types) { in getUnwrappedMapKeyType()
116 SimpleTypeVisitor6<DeclaredType, Void> keyTypeElementVisitor = in getUnwrappedMapKeyType()
117 new SimpleTypeVisitor6<DeclaredType, Void>() { in getUnwrappedMapKeyType()
120 public DeclaredType visitArray(ArrayType t, Void p) { in getUnwrappedMapKeyType()
126 public DeclaredType visitPrimitive(PrimitiveType t, Void p) { in getUnwrappedMapKeyType()
131 public DeclaredType visitDeclared(DeclaredType t, Void p) { in getUnwrappedMapKeyType()
DInjectionSiteFactory.java43 import javax.lang.model.type.DeclaredType;
66 ImmutableSortedSet<InjectionSite> getInjectionSites(DeclaredType declaredType) { in getInjectionSites()
70 for (Optional<DeclaredType> currentType = Optional.of(declaredType); in getInjectionSites()
73 DeclaredType type = currentType.get(); in getInjectionSites()
94 extends ElementKindVisitor8<Optional<InjectionSite>, DeclaredType> {
104 ExecutableElement method, DeclaredType type) { in visitExecutableAsMethod()
130 VariableElement field, DeclaredType type) { in visitVariableAsField()
DBindsTypeChecker.java32 import javax.lang.model.type.DeclaredType;
68 DeclaredType parameterizedSetType = types.getDeclaredType(setElement(), leftHandSide); in desiredAssignableType()
73 DeclaredType parameterizedMapType = in desiredAssignableType()
80 private ImmutableList<TypeMirror> methodParameterTypes(DeclaredType type, String methodName) { in methodParameterTypes()
97 private TypeMirror methodParameterType(DeclaredType type, String methodName) { in methodParameterType()
DConfigurationAnnotations.java48 import javax.lang.model.type.DeclaredType;
79 public static Optional<DeclaredType> getNullableType(Element element) { in getNullableType()
128 public static ImmutableList<DeclaredType> enclosedAnnotatedTypes( in enclosedAnnotatedTypes()
130 final ImmutableList.Builder<DeclaredType> builders = ImmutableList.builder(); in enclosedAnnotatedTypes()
/external/auto/value/src/main/java/com/google/auto/value/processor/
DEclipseHack.java33 import javax.lang.model.type.DeclaredType;
84 static TypeMirror getEnclosingType(DeclaredType type) { in getEnclosingType()
94 DeclaredType declared = MoreTypes.asDeclared(enclosing); in getEnclosingType()
122 TypeMirror methodReturnType(ExecutableElement method, DeclaredType in) { in methodReturnType()
145 Set<ExecutableElement> methods, DeclaredType in) { in methodReturnTypes()
175 private Map<Name, ExecutableElement> noArgMethodsIn(DeclaredType in) { in noArgMethodsIn()
DOptionalish.java25 import javax.lang.model.type.DeclaredType;
45 private final DeclaredType optionalType;
48 private Optionalish(DeclaredType optionalType) { in Optionalish()
71 DeclaredType declaredType = MoreTypes.asDeclared(type); in isOptional()
DTypeEncoder.java34 import javax.lang.model.type.DeclaredType;
143 private static String className(DeclaredType declaredType) { in className()
224 return visitDeclared((DeclaredType) type, sb); in visit2()
241 public StringBuilder visitDeclared(DeclaredType type, StringBuilder sb) { in visitDeclared()
247 void appendTypeName(DeclaredType type, StringBuilder sb) { in appendTypeName()
263 void appendTypeArguments(DeclaredType type, StringBuilder sb) { in appendTypeArguments()
301 void appendTypeArguments(DeclaredType type, StringBuilder sb) {} in appendTypeArguments()
362 public StringBuilder visitDeclared(DeclaredType type, StringBuilder sb) { in visitDeclared()
461 private DeclaredType classForName(String className) { in classForName()
469 DeclaredType type = classForName(className); in decode()
/external/dagger2/java/dagger/hilt/processor/internal/
DProcessors.java72 import javax.lang.model.type.DeclaredType;
167 private static Multimap<String, DeclaredType> getAnnotationClassValues( in getAnnotationClassValues()
170 SetMultimap<String, DeclaredType> annotationMembers = LinkedHashMultimap.create(); in getAnnotationClassValues()
173 Optional<DeclaredType> returnType = getOptionalDeclaredType(e.getKey().getReturnType()); in getAnnotationClassValues()
176 Set<DeclaredType> declaredTypes = new LinkedHashSet<DeclaredType>(); in getAnnotationClassValues()
202 extends SimpleAnnotationValueVisitor7<Void, Set<DeclaredType>> {
205 List<? extends AnnotationValue> vals, Set<DeclaredType> types) { in visitArray()
212 @Override public Void visitType(TypeMirror t, Set<DeclaredType> types) { in visitType()
213 DeclaredType declared = MoreTypes.asDeclared(t); in visitType()
245 public static Optional<DeclaredType> getOptionalDeclaredType(TypeMirror type) {
[all …]
DAnnotationValues.java31 import javax.lang.model.type.DeclaredType;
55 private static final class TypeMirrorVisitor extends DefaultVisitor<DeclaredType> {
59 super(DeclaredType.class); in TypeMirrorVisitor()
63 public DeclaredType visitType(TypeMirror value, Void unused) { in visitType()
73 public static DeclaredType getTypeMirror(AnnotationValue value) { in getTypeMirror()
/external/auto/common/src/main/java/com/google/auto/common/
DMoreTypes.java44 import javax.lang.model.type.DeclaredType;
183 public Boolean visitDeclared(DeclaredType a, EqualVisitorParam p) { in visitDeclared()
185 DeclaredType b = (DeclaredType) p.type; in visitDeclared()
321 private static TypeMirror enclosingType(DeclaredType t) { in enclosingType()
378 public Integer visitDeclared(DeclaredType t, Set<Element> visiting) { in visitDeclared()
473 public Void visitDeclared(DeclaredType t, ImmutableSet.Builder<TypeElement> p) { in visitDeclared()
524 public Element visitDeclared(DeclaredType t, Void p) { in visitDeclared()
578 public static DeclaredType asDeclared(TypeMirror maybeDeclaredType) { in asDeclared()
582 private static final class DeclaredTypeVisitor extends CastingTypeVisitor<DeclaredType> {
590 public DeclaredType visitDeclared(DeclaredType type, Void ignore) { in visitDeclared()
[all …]
DAnnotationValues.java28 import javax.lang.model.type.DeclaredType;
154 private static final class TypeMirrorVisitor extends DefaultVisitor<DeclaredType> {
158 super(DeclaredType.class); in TypeMirrorVisitor()
162 public DeclaredType visitType(TypeMirror value, Void unused) { in visitType()
173 public static DeclaredType getTypeMirror(AnnotationValue value) { in getTypeMirror()
332 private static final ArrayVisitor<DeclaredType> TYPE_MIRRORS_VISITOR =
340 public static ImmutableList<DeclaredType> getTypeMirrors(AnnotationValue value) { in getTypeMirrors()
/external/auto/service/processor/src/main/java/com/google/auto/service/processor/
DAutoServiceProcessor.java47 import javax.lang.model.type.DeclaredType;
139 Set<DeclaredType> providerInterfaces = getValueFieldOfClasses(annotationMirror); in processAnnotations()
144 for (DeclaredType providerInterface : providerInterfaces) { in processAnnotations()
258 private ImmutableSet<DeclaredType> getValueFieldOfClasses(AnnotationMirror annotationMirror) { in getValueFieldOfClasses()
261 new SimpleAnnotationValueVisitor8<ImmutableSet<DeclaredType>, Void>() { in getValueFieldOfClasses()
263 public ImmutableSet<DeclaredType> visitType(TypeMirror typeMirror, Void v) { in getValueFieldOfClasses()
270 public ImmutableSet<DeclaredType> visitArray( in getValueFieldOfClasses()
/external/auto/value/src/test/java/com/google/auto/value/processor/
DTypeEncoderTest.java37 import javax.lang.model.type.DeclaredType;
317 DeclaredType doubleMirror = typeMirrorOf(Double.class); in testOuterParameterizedInnerNot()
318 DeclaredType outerOfDoubleMirror = typeUtils.getDeclaredType(outerElement, doubleMirror); in testOuterParameterizedInnerNot()
320 DeclaredType parameterizedInnerWithoutTypeParam = in testOuterParameterizedInnerNot()
334 DeclaredType doubleMirror = typeMirrorOf(Double.class); in testOuterParameterizedInnerAlso()
335 DeclaredType outerOfDoubleMirror = typeUtils.getDeclaredType(outerElement, doubleMirror); in testOuterParameterizedInnerAlso()
337 DeclaredType stringMirror = typeMirrorOf(String.class); in testOuterParameterizedInnerAlso()
338 DeclaredType middleOfStringMirror = in testOuterParameterizedInnerAlso()
341 DeclaredType integerMirror = typeMirrorOf(Integer.class); in testOuterParameterizedInnerAlso()
342 DeclaredType parameterizedInnerWithTypeParam = in testOuterParameterizedInnerAlso()
[all …]
/external/dagger2/java/dagger/internal/codegen/base/
DOptionalType.java32 import javax.lang.model.type.DeclaredType;
96 public Optional<OptionalKind> visitDeclared(DeclaredType t, Void p) {
113 protected abstract Equivalence.Wrapper<DeclaredType> wrappedDeclaredOptionalType(); in wrappedDeclaredOptionalType()
117 private DeclaredType declaredOptionalType() { in declaredOptionalType()
DSetType.java26 import javax.lang.model.type.DeclaredType;
38 protected abstract Equivalence.Wrapper<DeclaredType> wrappedDeclaredSetType(); in wrappedDeclaredSetType()
43 private DeclaredType declaredSetType() { in declaredSetType()
DMapType.java27 import javax.lang.model.type.DeclaredType;
39 protected abstract Equivalence.Wrapper<DeclaredType> wrappedDeclaredMapType(); in wrappedDeclaredMapType()
44 private DeclaredType declaredMapType() { in declaredMapType()
/external/dagger2/java/dagger/internal/codegen/validation/
DMembersInjectionValidator.java28 import javax.lang.model.type.DeclaredType;
90 public Void visitDeclared(DeclaredType type, ValidationReport.Builder<?> report) {
125 public Boolean visitDeclared(DeclaredType declaredType, Void p) {
148 public Boolean visitDeclared(DeclaredType t, Void p) {
/external/desugar/java/com/google/devtools/common/options/processor/
DProcessorUtils.java23 import javax.lang.model.type.DeclaredType;
80 if (!(annotationField instanceof DeclaredType)) { in getClassTypeFromAnnotationField()
88 ((TypeElement) ((DeclaredType) annotationField).asElement()) in getClassTypeFromAnnotationField()
/external/turbine/javatests/com/google/turbine/processing/
DTurbineTypeMirrorTest.java35 import javax.lang.model.type.DeclaredType;
133 DeclaredType te = in roundTrip()
134 (DeclaredType) in roundTrip()
247 DeclaredType a = in declared()
248 (DeclaredType) in declared()
260 DeclaredType b = in declared()
261 (DeclaredType) in declared()
/external/auto/value/src/test/java/com/google/auto/value/extension/serializable/serializer/utils/
DCompilationAbstractTest.java27 import javax.lang.model.type.DeclaredType;
69 protected DeclaredType declaredTypeOf(Class<?> enclosingClass, Class<?> containedClass) { in declaredTypeOf()
73 protected DeclaredType declaredTypeOf(Class<?> enclosingClass, Class<?>... classArgs) { in declaredTypeOf()
/external/turbine/java/com/google/turbine/processing/
DTurbineAnnotationMirror.java44 import javax.lang.model.type.DeclaredType;
76 private final Supplier<DeclaredType> type;
87 new Supplier<DeclaredType>() { in TurbineAnnotationMirror()
89 public DeclaredType get() { in TurbineAnnotationMirror()
94 return (DeclaredType) factory.typeElement(anno.sym()).asType(); in TurbineAnnotationMirror()
164 public DeclaredType getAnnotationType() { in getAnnotationType()

12345