Home
last modified time | relevance | path

Searched refs:TypeElement (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/aosp_15_r20/external/doclava/doclet_adapter/src/test/java/com/google/doclava/javadoc/
H A DBaseTest.java24 import javax.lang.model.element.TypeElement;
64 static final TypeElement publicAbstractClass = initTypeElement(
66 static final TypeElement publicAbstractInterface = initTypeElement(
69 static final TypeElement publicAnnotation = initTypeElement(
71 static final TypeElement publicClass = initTypeElement("com.example.classes.PublicClass");
72 static final TypeElement publicEnum = initTypeElement("com.example.classes.PublicEnum");
73 static final TypeElement publicInterface = initTypeElement(
76 static final TypeElement simpleEnum = initTypeElement("com.example.classes.SimpleEnum");
78 static final TypeElement publicClassWithNests = initTypeElement(
80 static final TypeElement publicClassWithNests$Nest1 = initTypeElement(
[all …]
/aosp_15_r20/external/robolectric/processor/src/main/java/org/robolectric/annotation/processing/
H A DRobolectricModel.java27 import javax.lang.model.element.TypeElement;
72 private static final ElementVisitor<TypeElement, Void> TYPE_ELEMENT_VISITOR =
73 new SimpleElementVisitor6<TypeElement, Void>() {
75 public TypeElement visitType(TypeElement e, Void p) {
91 private final Map<TypeElement, TypeElement> importMap = newHashMap();
92 private final Map<TypeElement, String> referentMap = newHashMap();
93 private HashMultimap<String, TypeElement> typeMap = HashMultimap.create();
100 TypeElement shadowType, TypeElement actualType, TypeElement shadowPickerType) { in addShadowType()
101 TypeElement shadowBaseType = null; in addShadowType()
126 public void addExtraShadowPicker(String sdkClassName, TypeElement pickerTypeElement) { in addExtraShadowPicker()
[all …]
H A DHelpers.java19 import javax.lang.model.element.TypeElement;
37 private static final ElementVisitor<TypeElement, Void> TYPE_ELEMENT_VISITOR =
38 new SimpleElementVisitor6<TypeElement, Void>() {
40 public TypeElement visitType(TypeElement e, Void p) {
65 public static TypeElement getAnnotationTypeMirrorValue(Element el) { in getAnnotationTypeMirrorValue()
89 Types types, Element element, TypeElement annotation) { in getAnnotationMirror()
100 Element elem, Types types, TypeElement typeElement) { in getImplementsMirror()
175 TypeElement impElement = elements.getTypeElement(classNameString.replace('$', '.')); in getImplementedClassName()
202 String getPackageOf(TypeElement typeElement) { in getPackageOf()
207 String getBinaryName(TypeElement typeElement) { in getBinaryName()
[all …]
/aosp_15_r20/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/containers/
H A DUserConnectorInfo.java30 import javax.lang.model.element.TypeElement;
40 abstract ImmutableCollection<TypeElement> parcelableWrapperClasses(); in parcelableWrapperClasses()
42 abstract ImmutableCollection<TypeElement> futureWrapperClasses(); in futureWrapperClasses()
44 abstract ImmutableCollection<TypeElement> importsClasses(); in importsClasses()
46 abstract ImmutableCollection<TypeElement> additionalUsedTypes(); in additionalUsedTypes()
51 public abstract TypeElement connectorElement(); in connectorElement()
61 public abstract ImmutableCollection<TypeElement> parcelableWrapperClasses(); in parcelableWrapperClasses()
63 public abstract ImmutableCollection<TypeElement> futureWrapperClasses(); in futureWrapperClasses()
65 public abstract ImmutableCollection<TypeElement> importsClasses(); in importsClasses()
67 public abstract ImmutableCollection<TypeElement> additionalUsedTypes(); in additionalUsedTypes()
[all …]
H A DProfileConnectorInfo.java32 import javax.lang.model.element.TypeElement;
45 abstract ImmutableCollection<TypeElement> parcelableWrapperClasses(); in parcelableWrapperClasses()
47 abstract ImmutableCollection<TypeElement> futureWrapperClasses(); in futureWrapperClasses()
49 abstract ImmutableCollection<TypeElement> importsClasses(); in importsClasses()
51 abstract ImmutableCollection<TypeElement> additionalUsedTypes(); in additionalUsedTypes()
58 public abstract TypeElement connectorElement(); in connectorElement()
70 public abstract ImmutableCollection<TypeElement> parcelableWrapperClasses(); in parcelableWrapperClasses()
72 public abstract ImmutableCollection<TypeElement> futureWrapperClasses(); in futureWrapperClasses()
74 public abstract ImmutableCollection<TypeElement> importsClasses(); in importsClasses()
76 public abstract ImmutableCollection<TypeElement> additionalUsedTypes(); in additionalUsedTypes()
[all …]
H A DValidatorCrossProfileConfigurationInfo.java28 import javax.lang.model.element.TypeElement;
34 public abstract TypeElement configurationElement(); in configurationElement()
36 public abstract ImmutableCollection<TypeElement> providerClassElements(); in providerClassElements()
40 public abstract Optional<TypeElement> serviceClass(); in serviceClass()
42 public abstract Optional<TypeElement> connector(); in connector()
45 Context context, TypeElement annotatedElement) { in createMultipleFromElement()
64 Context context, TypeElement annotatedElement) { in createFromElement()
72 CrossProfileConfigurationAnnotationInfo annotationInfo, TypeElement annotatedElement) { in createFromAnnotationInfo()
78 TypeElement serviceClass = in createFromAnnotationInfo()
81 Optional<TypeElement> connector = in createFromAnnotationInfo()
[all …]
H A DValidatorContext.java24 import javax.lang.model.element.TypeElement;
50 public abstract ImmutableSet<TypeElement> newGeneratedProfileConnectors(); in newGeneratedProfileConnectors()
52 public abstract ImmutableSet<TypeElement> newGeneratedUserConnectors(); in newGeneratedUserConnectors()
64 public abstract ImmutableSet<TypeElement> newCrossProfileCallbackInterfaces(); in newCrossProfileCallbackInterfaces()
68 public abstract ImmutableSet<TypeElement> newCustomParcelableWrappers(); in newCustomParcelableWrappers()
70 public abstract ImmutableSet<TypeElement> newCustomFutureWrappers(); in newCustomFutureWrappers()
90 Collection<TypeElement> newGeneratedConnectors); in setNewGeneratedProfileConnectors()
93 Collection<TypeElement> newGeneratedUserConnectors); in setNewGeneratedUserConnectors()
110 Collection<TypeElement> newCrossProfileCallbackInterfaces); in setNewCrossProfileCallbackInterfaces()
116 Collection<TypeElement> newCustomParcelableWrappers); in setNewCustomParcelableWrappers()
[all …]
H A DCrossProfileConfigurationAnnotationInfo.java21 import javax.lang.model.element.TypeElement;
29 public abstract ImmutableCollection<TypeElement> providerClasses(); in providerClasses()
31 public abstract TypeElement serviceSuperclass(); in serviceSuperclass()
33 public abstract TypeElement serviceClass(); in serviceClass()
35 public abstract TypeElement connector(); in connector()
44 public abstract Builder setProviderClasses(ImmutableCollection<TypeElement> value); in setProviderClasses()
46 public abstract Builder setServiceSuperclass(TypeElement value); in setServiceSuperclass()
48 public abstract Builder setServiceClass(TypeElement value); in setServiceClass()
50 public abstract Builder setConnector(TypeElement value); in setConnector()
H A DCrossProfileAnnotationInfo.java21 import javax.lang.model.element.TypeElement;
30 public abstract TypeElement connectorClass(); in connectorClass()
32 public abstract ImmutableCollection<TypeElement> parcelableWrapperClasses(); in parcelableWrapperClasses()
34 public abstract ImmutableCollection<TypeElement> futureWrapperClasses(); in futureWrapperClasses()
36 public abstract ImmutableCollection<TypeElement> additionalUsedTypes(); in additionalUsedTypes()
51 public abstract Builder setConnectorClass(TypeElement value); in setConnectorClass()
53 public abstract Builder setParcelableWrapperClasses(ImmutableCollection<TypeElement> value); in setParcelableWrapperClasses()
55 public abstract Builder setFutureWrapperClasses(ImmutableCollection<TypeElement> value); in setFutureWrapperClasses()
57 public abstract Builder setAdditionalUsedTypes(ImmutableCollection<TypeElement> value); in setAdditionalUsedTypes()
H A DConnectorInfo.java24 import javax.lang.model.element.TypeElement;
39 public static boolean isProfileConnector(Context context, TypeElement connectorElement) { in isProfileConnector()
43 public static boolean isUserConnector(Context context, TypeElement connectorElement) { in isUserConnector()
48 Context context, TypeElement connectorElement, String requiredType) { in isConnectorOfType()
67 public TypeElement connectorElement() { in connectorElement()
111 Context context, TypeElement connector, SupportedTypes globalSupportedTypes) { in invalid()
126 TypeElement profileConnector, in noSpecificConnector()
127 TypeElement userConnector) { in noSpecificConnector()
134 Context context, TypeElement connectorElement, SupportedTypes globalSupportedTypes) { in forProfileConnector()
141 Context context, TypeElement connectorElement, SupportedTypes globalSupportedTypes) { in forUserConnector()
/aosp_15_r20/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
H A DProcessor.java58 import javax.lang.model.element.TypeElement;
91 public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { in process()
106 Collection<TypeElement> newGeneratedConnectors = findNewGeneratedConnectors(roundEnv); in process()
107 Collection<TypeElement> newGeneratedUserConnectors = findNewGeneratedUserConnectors(roundEnv); in process()
116 Collection<TypeElement> newCrossProfileCallbackInterfaces = in process()
128 Collection<TypeElement> newCustomParcelableWrappers = findNewParcelableWrappers(roundEnv); in process()
129 Collection<TypeElement> newCustomFutureWrappers = findNewFutureWrappers(roundEnv); in process()
193 context, (TypeElement) element)) in findNewConfigurations()
200 context, (TypeElement) element)) in findNewConfigurations()
227 .filter(m -> m instanceof TypeElement) in findNewProviderClasses()
[all …]
H A DEarlyValidator.java72 import javax.lang.model.element.TypeElement;
331 for (TypeElement parcelableWrapper : connectorInterface.parcelableWrapperClasses()) { in validateProfileConnectorInterface()
337 for (TypeElement futureWrapper : connectorInterface.futureWrapperClasses()) { in validateProfileConnectorInterface()
344 for (TypeElement importer : connectorInterface.importsClasses()) { in validateProfileConnectorInterface()
379 for (TypeElement parcelableWrapper : connectorInterface.parcelableWrapperClasses()) { in validateUserConnectorInterface()
385 for (TypeElement futureWrapper : connectorInterface.futureWrapperClasses()) { in validateUserConnectorInterface()
392 for (TypeElement importer : connectorInterface.importsClasses()) { in validateUserConnectorInterface()
402 private boolean validateGeneratedProfileConnectors(Collection<TypeElement> generatedConnectors) { in validateGeneratedProfileConnectors()
405 for (TypeElement generatedConnector : generatedConnectors) { in validateGeneratedProfileConnectors()
412 private boolean validateGeneratedProfileConnector(TypeElement generatedConnector) { in validateGeneratedProfileConnector()
[all …]
/aosp_15_r20/external/auto/common/src/main/java/com/google/auto/common/
H A DOverrides.java33 import javax.lang.model.element.TypeElement;
59 ExecutableElement overrider, ExecutableElement overridden, TypeElement in); in overrides()
69 boolean overrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement in) { in overrides()
83 ExecutableElement overrider, ExecutableElement overridden, TypeElement in) { in overrides()
135 TypeElement overriddenType = MoreElements.asType(overridden.getEnclosingElement()); in overrides()
187 TypeElement overriderType = MoreElements.asType(overrider.getEnclosingElement()); in overrides()
196 ExecutableElement overrider, ExecutableElement overridden, TypeElement in) { in isSubsignature()
239 ImmutableList<TypeMirror> erasedParameterTypes(ExecutableElement method, TypeElement in) { in erasedParameterTypes()
270 private final Set<TypeElement> visitingTypes = new LinkedHashSet<>();
273 ImmutableList<TypeMirror> erasedParameterTypes(ExecutableElement method, TypeElement in) { in erasedParameterTypes()
[all …]
H A DBasicAnnotationProcessor.java55 import javax.lang.model.element.TypeElement;
162 private ImmutableSet<TypeElement> getSupportedAnnotationTypeElements() { in getSupportedAnnotationTypeElements()
169 private ImmutableSet<TypeElement> getSupportedAnnotationTypeElements(Step step) { in getSupportedAnnotationTypeElements()
187 public final boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { in process()
215 private void process(ImmutableSetMultimap<TypeElement, Element> validElements) { in process() argument
217 ImmutableSet<TypeElement> annotationTypes = getSupportedAnnotationTypeElements(step); in process()
218 ImmutableSetMultimap<TypeElement, Element> stepElements = in process()
219 new ImmutableSetMultimap.Builder<TypeElement, Element>() in process()
261 private ImmutableSetMultimap<TypeElement, Element> validElements(RoundEnvironment roundEnv) { in validElements()
265 ImmutableSetMultimap.Builder<TypeElement, Element> deferredElementsByAnnotationBuilder = in validElements()
[all …]
H A DMoreElements.java41 import javax.lang.model.element.TypeElement;
97 private static final class TypeElementVisitor extends CastingElementVisitor<TypeElement> {
105 public TypeElement visitType(TypeElement e, Void ignore) { in visitType()
131 public static TypeElement asType(Element element) { in asType()
234 public static boolean isAnnotationPresent(Element element, TypeElement annotation) { in isAnnotationPresent()
270 Element element, TypeElement annotation) { in getAnnotationMirror()
288 TypeElement annotationTypeElement = asType(annotationMirror.getAnnotationType().asElement()); in getAnnotationMirror()
361 TypeElement type, Elements elementUtils) {
395 TypeElement type, Types typeUtils, Elements elementUtils) {
400 TypeElement type, Overrides overrides) {
[all …]
/aosp_15_r20/external/auto/common/src/test/java/com/google/auto/common/
H A DOverridesTest.java46 import javax.lang.model.element.TypeElement;
253 abstract Optional<TypeElement> contributingModule(); in contributingModule()
378 ImmutableSet.Builder<TypeElement> testTypesBuilder = ImmutableSet.builder(); in checkOverridesInSet()
382 ImmutableSet<TypeElement> testTypes = testTypesBuilder.build(); in checkOverridesInSet()
384 for (TypeElement testType : testTypes) { in checkOverridesInSet()
388 for (TypeElement in : testTypes) { in checkOverridesInSet()
389 TypeElement javacIn = javacType(in); in checkOverridesInSet()
415 private TypeElement getTypeElement(Class<?> c) { in getTypeElement()
419 private ExecutableElement getMethod(TypeElement in, String name, TypeKind... parameterTypeKinds) { in getMethod()
474 TypeElement xAbstractList = getTypeElement(XAbstractList.class); in methodParameters_StringList()
[all …]
H A DMoreTypesTest.java40 import javax.lang.model.element.TypeElement;
70 TypeElement mapElement = elements.getTypeElement(Map.class.getCanonicalName()); in equivalence()
71 TypeElement setElement = elements.getTypeElement(Set.class.getCanonicalName()); in equivalence()
72 TypeElement enumElement = elements.getTypeElement(Enum.class.getCanonicalName()); in equivalence()
73 TypeElement container = elements.getTypeElement(Container.class.getCanonicalName()); in equivalence()
74 TypeElement contained = elements.getTypeElement(Container.Contained.class.getCanonicalName()); in equivalence()
75 TypeElement funkyBounds = elements.getTypeElement(FunkyBounds.class.getCanonicalName()); in equivalence()
76 TypeElement funkyBounds2 = elements.getTypeElement(FunkyBounds2.class.getCanonicalName()); in equivalence()
77 TypeElement funkierBounds = elements.getTypeElement(FunkierBounds.class.getCanonicalName()); in equivalence()
233 TypeElement testDataElement = in testReferencedTypes()
[all …]
H A DSuperficialValidationTest.java31 import javax.lang.model.element.TypeElement;
54 TypeElement testClassElement = in missingReturnType()
76 TypeElement testClassElement = in missingGenericReturnType()
101 TypeElement testClassElement = in missingReturnTypeTypeParameter()
121 TypeElement testClassElement = in missingTypeParameter()
143 TypeElement testClassElement = in missingParameterType()
164 TypeElement testClassElement = in missingAnnotation()
188 TypeElement testClassElement = in handlesRecursiveTypeParams()
210 TypeElement testClassElement = in handlesRecursiveType()
240 TypeElement testClassElement = in missingWildcardBound()
[all …]
/aosp_15_r20/external/auto/value/src/main/java/com/google/auto/value/processor/
H A DTypeSimplifier.java34 import javax.lang.model.element.TypeElement;
120 TypeElement typeElement = MoreElements.asType(type.asElement()); in simplifiedClassName()
121 TypeElement top = topLevelType(typeElement); in simplifiedClassName()
138 static String actualTypeParametersString(TypeElement type) { in actualTypeParametersString()
150 static String classNameOf(TypeElement type) { in classNameOf()
156 private static TypeElement topLevelType(TypeElement type) { in topLevelType()
167 static String packageNameOf(TypeElement type) { in packageNameOf()
214 TypeElement typeElement = (TypeElement) typeUtils.asElement(type); in findImports()
248 Elements elementUtils, String codePackageName, TypeElement typeElement) { in javaLangSpelling()
250 TypeElement topLevelType = topLevelType(typeElement); in javaLangSpelling()
[all …]
H A DAutoValueishProcessor.java76 import javax.lang.model.element.TypeElement;
115 private TypeElement annotationType;
387 void addDeferredType(TypeElement type, String missingType) { in addDeferredType()
395 public final boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { in process()
408 ImmutableMap<TypeElement, String> deferredTypes = in process()
433 List<TypeElement> types = in process()
434 new ImmutableList.Builder<TypeElement>() in process()
439 for (TypeElement type : types) { in process()
470 private void validateType(TypeElement type) { in validateType()
507 abstract void processType(TypeElement type); in processType()
[all …]
/aosp_15_r20/external/auto/value/src/test/java/com/google/auto/value/processor/
H A DTypeVariablesTest.java26 import javax.lang.model.element.TypeElement;
60 TypeElement source1 = elementUtils.getTypeElement(Source1.class.getCanonicalName()); in noTypeParameters()
61 TypeElement target1 = elementUtils.getTypeElement(Target1.class.getCanonicalName()); in noTypeParameters()
78 TypeElement source2 = elementUtils.getTypeElement(Source2.class.getCanonicalName()); in simpleTypeParameter()
79 TypeElement target2 = elementUtils.getTypeElement(Target2.class.getCanonicalName()); in simpleTypeParameter()
102 TypeElement source3 = elementUtils.getTypeElement(Source3.class.getCanonicalName()); in hairyTypeParameters()
103 TypeElement target3 = elementUtils.getTypeElement(Target3.class.getCanonicalName()); in hairyTypeParameters()
130 TypeElement outer = elementUtils.getTypeElement(Outer.class.getCanonicalName()); in nestedClasses()
131 TypeElement inner = elementUtils.getTypeElement(Outer.Inner.class.getCanonicalName()); in nestedClasses()
154 TypeElement immutableMap = elementUtils.getTypeElement(ImmutableMap.class.getCanonicalName()); in canAssignStaticMethodResult()
[all …]
/aosp_15_r20/external/dagger2/java/dagger/model/
H A DComponentPath.java26 import javax.lang.model.element.TypeElement;
32 public static ComponentPath create(Iterable<TypeElement> components) { in create()
40 public abstract ImmutableList<TypeElement> components(); in components()
45 public final TypeElement rootComponent() { in rootComponent()
51 public TypeElement currentComponent() { in currentComponent()
60 public final TypeElement parentComponent() { in parentComponent()
77 public final ComponentPath childPath(TypeElement child) { in childPath()
78 return create(ImmutableList.<TypeElement>builder().addAll(components()).add(child).build()); in childPath()
91 return components().stream().map(TypeElement::getQualifiedName).collect(joining(" → ")); in toString()
/aosp_15_r20/packages/apps/Dialer/java/com/android/dialer/rootcomponentgenerator/
DRootComponentGeneratingStep.java52 import javax.lang.model.element.TypeElement;
120 private void generateRootComponent(TypeElement rootElement) { in generateRootComponent()
122 ListMultimap<DialerVariant, TypeElement> componentModuleMap = generateComponentModuleMap(); in generateRootComponent()
123 List<TypeElement> componentList = generateComponentList(); in generateRootComponent()
129 for (TypeElement componentWithSuperInterface : componentList) { in generateRootComponent()
133 for (TypeElement annotatedElement : componentModuleMap.get(dialerVariant)) { in generateRootComponent()
151 private List<TypeElement> generateComponentList() { in generateComponentList()
152 List<TypeElement> list = new ArrayList<>(); in generateComponentList()
157 private ListMultimap<DialerVariant, TypeElement> generateComponentModuleMap() { in generateComponentModuleMap()
158 ListMultimap<DialerVariant, TypeElement> map = ArrayListMultimap.create(); in generateComponentModuleMap()
[all …]
/aosp_15_r20/external/javapoet/src/test/java/com/squareup/javapoet/
H A DClassNameTest.java20 import javax.lang.model.element.TypeElement;
107 TypeElement object = elements.getTypeElement(Object.class.getCanonicalName()); in classNameFromTypeElement()
109 TypeElement outer = elements.getTypeElement($Outer.class.getCanonicalName()); in classNameFromTypeElement()
111 TypeElement inner = elements.getTypeElement($Outer.$Inner.class.getCanonicalName()); in classNameFromTypeElement()
121 TypeElement object = elements.getTypeElement(Object.class.getCanonicalName()); in classNameFromTypeElementDoesntUseGetKind()
124 TypeElement outer = elements.getTypeElement($Outer.class.getCanonicalName()); in classNameFromTypeElementDoesntUseGetKind()
127 TypeElement inner = elements.getTypeElement($Outer.$Inner.class.getCanonicalName()); in classNameFromTypeElementDoesntUseGetKind()
133 private TypeElement preventGetKind(TypeElement object) { in preventGetKind()
134 TypeElement spy = Mockito.spy(object); in preventGetKind()
138 return enclosingElement instanceof TypeElement in preventGetKind()
[all …]
/aosp_15_r20/external/doclava/doclet_adapter/src/main/java/com/google/doclava/javadoc/
H A DDocletElementUtils.java26 import javax.lang.model.element.TypeElement;
104 TypeElement e = elementUtils.getTypeElement(name); in getTypeByName()
120 public String getClassNameUntilNotNested(TypeElement e) { in getClassNameUntilNotNested()
127 public TypeElement getEnclosingTypeElement(Element e) { in getEnclosingTypeElement()
142 return (TypeElement) encl; in getEnclosingTypeElement()
149 private static class EnclosingUntilNotNestedIterator implements Iterator<TypeElement> {
151 private TypeElement current;
154 public EnclosingUntilNotNestedIterator(TypeElement typeElement, DocletElementUtils utils) { in EnclosingUntilNotNestedIterator()
165 public TypeElement next() { in next()
169 TypeElement ret = current; in next()

12345678910>>...12