Home
last modified time | relevance | path

Searched refs:VariableElement (Results 1 – 25 of 93) sorted by relevance

1234

/external/dagger2/java/dagger/internal/codegen/binding/
DAssistedInjectionAnnotations.java53 import javax.lang.model.element.VariableElement;
104 List<? extends VariableElement> paramElements, List<? extends TypeMirror> paramTypes) { in assistedParameterSpecs()
107 VariableElement paramElement = paramElements.get(i); in assistedParameterSpecs()
149 public static ImmutableList<VariableElement> assistedParameters(Binding binding) { in assistedParameters()
155 private static ImmutableList<VariableElement> assistedParameters(ExecutableElement constructor) { in assistedParameters()
162 public static boolean isAssistedParameter(VariableElement param) { in isAssistedParameter()
205 public ImmutableMap<AssistedParameter, VariableElement> assistedInjectAssistedParametersMap() { in assistedInjectAssistedParametersMap()
206 ImmutableMap.Builder<AssistedParameter, VariableElement> builder = ImmutableMap.builder(); in assistedInjectAssistedParametersMap()
214 public ImmutableMap<AssistedParameter, VariableElement> assistedFactoryAssistedParametersMap() { in assistedFactoryAssistedParametersMap()
215 ImmutableMap.Builder<AssistedParameter, VariableElement> builder = ImmutableMap.builder(); in assistedFactoryAssistedParametersMap()
[all …]
DComponentCreatorDescriptor.java43 import javax.lang.model.element.VariableElement;
83 abstract ImmutableSetMultimap<ComponentRequirement, VariableElement>
121 public ImmutableMap<ComponentRequirement, VariableElement> factoryParameters() { in factoryParameters()
174 VariableElement parameter = getOnlyElement(method.getParameters()); in create()
183 ImmutableSetMultimap.Builder<ComponentRequirement, VariableElement> factoryParameters = in create()
188 List<? extends VariableElement> parameters = factoryMethod.getParameters(); in create()
191 VariableElement parameter = parameters.get(i); in create()
206 VariableElement parameter, in requirement()
DMethodSignatureFormatter.java33 import javax.lang.model.element.VariableElement;
111 Iterator<? extends VariableElement> parameters = method.getParameters().iterator();
123 private void appendParameter(StringBuilder builder, VariableElement parameter, TypeMirror type) {
/external/dagger2/java/dagger/internal/codegen/
DAssistedProcessingStep.java39 import javax.lang.model.element.VariableElement;
46 final class AssistedProcessingStep extends TypeCheckingProcessingStep<VariableElement> {
75 VariableElement assisted, ImmutableSet<Class<? extends Annotation>> annotations) { in process()
80 ValidationReport<VariableElement> validate(VariableElement assisted) { in validate()
81 ValidationReport.Builder<VariableElement> report = ValidationReport.about(assisted); in validate()
/external/desugar/java/com/google/devtools/common/options/processor/
DOptionProcessor.java45 import javax.lang.model.element.VariableElement;
136 private void checkInOptionBase(VariableElement optionField) throws OptionProcessorException { in checkInOptionBase()
158 private void checkModifiers(VariableElement optionField) throws OptionProcessorException { in checkModifiers()
172 private ImmutableList<TypeMirror> getAcceptedConverterReturnTypes(VariableElement optionField) in getAcceptedConverterReturnTypes()
228 VariableElement optionField, in checkForDefaultConverter()
265 VariableElement optionField, in checkProvidedConverter()
319 private void checkConverter(VariableElement optionField) throws OptionProcessorException { in checkConverter()
360 private void checkEffectTagRationality(VariableElement optionField) in checkEffectTagRationality()
393 private void checkMetadataTagAndCategoryRationality(VariableElement optionField) in checkMetadataTagAndCategoryRationality()
415 private void checkOldCategoriesAreNotUsed(VariableElement optionField) in checkOldCategoriesAreNotUsed()
[all …]
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
DRealObjectValidator.java7 import javax.lang.model.element.VariableElement;
37 TypeVisitor<Void,VariableElement> typeVisitor = new SimpleTypeVisitor6<Void,VariableElement>() {
39 public Void visitDeclared(DeclaredType t, VariableElement v) {
61 public Void visitVariable(VariableElement elem, TypeElement parent) { in visitVariable()
DFoundOnImplementsValidator.java8 import javax.lang.model.element.VariableElement;
51 final public Void visitVariable(VariableElement elem, Element parent) { in visitVariable()
55 public Void visitVariable(VariableElement elem, TypeElement parent) { in visitVariable()
DResetterValidator.java9 import javax.lang.model.element.VariableElement;
33 List<? extends VariableElement> params = elem.getParameters(); in visitExecutable()
DValidator.java13 import javax.lang.model.element.VariableElement;
45 public Void visitVariable(VariableElement e, Element p) {
128 public Void visitVariable(VariableElement e, Element p) { in visitVariable()
/external/dagger2/java/dagger/internal/codegen/validation/
DBindsInstanceParameterValidator.java30 import javax.lang.model.element.VariableElement;
34 final class BindsInstanceParameterValidator extends BindsInstanceElementValidator<VariableElement> {
41 protected ElementValidator elementValidator(VariableElement element) { in elementValidator()
46 Validator(VariableElement element) { in Validator()
DInjectValidator.java54 import javax.lang.model.element.VariableElement;
178 for (VariableElement parameter : constructorElement.getParameters()) { in validateConstructorUncached()
246 private ValidationReport<VariableElement> validateField(VariableElement fieldElement) { in validateField()
247 ValidationReport.Builder<VariableElement> builder = ValidationReport.about(fieldElement); in validateField()
302 for (VariableElement parameter : methodElement.getParameters()) { in validateMethod()
310 ValidationReport.Builder<?> builder, VariableElement parameter) { in validateDependencyRequest()
320 for (VariableElement element : ElementFilter.fieldsIn(typeElement.getEnclosedElements())) { in validateMembersInjectionType()
323 ValidationReport<VariableElement> report = validateField(element); in validateMembersInjectionType()
DProvidesMethodValidator.java34 import javax.lang.model.element.VariableElement;
79 protected void checkParameter(VariableElement parameter) { in checkParameter()
/external/dagger2/java/dagger/hilt/processor/internal/
DAnnotationValues.java30 import javax.lang.model.element.VariableElement;
77 private static final class EnumVisitor extends DefaultVisitor<VariableElement> {
81 super(VariableElement.class); in EnumVisitor()
85 public VariableElement visitEnumConstant(VariableElement value, Void unused) { in visitEnumConstant()
95 public static VariableElement getEnum(AnnotationValue value) { in getEnum()
DProcessors.java70 import javax.lang.model.element.VariableElement;
377 private static final SimpleAnnotationValueVisitor7<ImmutableSet<VariableElement>, Void>
379 new SimpleAnnotationValueVisitor7<ImmutableSet<VariableElement>, Void>() {
381 public ImmutableSet<VariableElement> defaultAction(Object o, Void unused) {
387 public ImmutableSet<VariableElement> visitArray(
389 ImmutableSet.Builder<VariableElement> builder = ImmutableSet.builder();
397 public ImmutableSet<VariableElement> visitEnumConstant(
398 VariableElement value, Void unused) {
404 public static ImmutableSet<VariableElement> getEnumArrayAnnotationValue(AnnotationValue value) {
744 VariableElement fieldElement = asVariable(element);
[all …]
/external/dagger2/java/dagger/internal/codegen/kotlin/
DKotlinMetadata.java47 import javax.lang.model.element.VariableElement;
77 private final Map<VariableElement, Optional<MethodForAnnotations>>
81 private final Map<VariableElement, Optional<ExecutableElement>> elementFieldGetterMethodMap =
103 Optional<ExecutableElement> getSyntheticAnnotationMethod(VariableElement fieldElement) { in getSyntheticAnnotationMethod()
119 boolean isMissingSyntheticAnnotationMethod(VariableElement fieldElement) {
128 private Optional<MethodForAnnotations> getAnnotationMethod(VariableElement fieldElement) {
133 private Optional<MethodForAnnotations> getAnnotationMethodUncached(VariableElement fieldElement) {
146 Optional<ExecutableElement> getPropertyGetter(VariableElement fieldElement) {
151 private Optional<ExecutableElement> getPropertyGetterUncached(VariableElement fieldElement) {
157 private PropertyMetadata findProperty(VariableElement field) {
[all …]
DKotlinMetadataUtil.java37 import javax.lang.model.element.VariableElement;
68 VariableElement fieldElement, Class<? extends Annotation> annotationType) { in getSyntheticPropertyAnnotations()
81 public boolean isMissingSyntheticPropertyForAnnotations(VariableElement fieldElement) { in isMissingSyntheticPropertyForAnnotations()
142 public Optional<ExecutableElement> getPropertyGetter(VariableElement fieldElement) { in getPropertyGetter()
/external/auto/factory/src/main/java/com/google/auto/factory/processor/
DParameter.java37 import javax.lang.model.element.VariableElement;
73 VariableElement variable, TypeMirror type, Types types) { in forVariableElement()
103 List<? extends VariableElement> variables, in forParameterList()
120 List<? extends VariableElement> variables, Types types) { in forParameterList()
122 for (VariableElement var : variables) { in forParameterList()
DProvidedChecker.java27 import javax.lang.model.element.VariableElement;
47 public Void visitVariableAsParameter(final VariableElement providedParameter, Void p) { in checkProvidedParameter()
70 private void raiseError(VariableElement providedParameter, String messageFormat) { in raiseError()
DFactoryDescriptorGenerator.java42 import javax.lang.model.element.VariableElement;
123 ImmutableListMultimap<Boolean, ? extends VariableElement> parameterMap =
125 new Predicate<VariableElement>() {
127 public boolean apply(VariableElement parameter) {
/external/auto/common/src/main/java/com/google/auto/common/
DAnnotationValues.java27 import javax.lang.model.element.VariableElement;
200 private static final class EnumVisitor extends DefaultVisitor<VariableElement> {
204 super(VariableElement.class); in EnumVisitor()
208 public VariableElement visitEnumConstant(VariableElement value, Void unused) { in visitEnumConstant()
219 public static VariableElement getEnum(AnnotationValue value) { in getEnum()
356 private static final ArrayVisitor<VariableElement> ENUMS_VISITOR =
364 public static ImmutableList<VariableElement> getEnums(AnnotationValue value) { in getEnums()
DMoreElements.java42 import javax.lang.model.element.VariableElement;
161 private static final class VariableElementVisitor extends CastingElementVisitor<VariableElement> {
169 public VariableElement visitVariable(VariableElement e, Void ignore) { in visitVariable()
183 public static VariableElement asVariable(Element element) { in asVariable()
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/containers/
DCrossProfileMethodInfo.java39 import javax.lang.model.element.VariableElement;
168 Optional<VariableElement> param = getCrossProfileCallbackParam(generatorContext); in isSimpleCrossProfileCallback()
190 public Optional<VariableElement> getCrossProfileCallbackParam(GeneratorContext generatorContext) { in getCrossProfileCallbackParam()
194 public static Optional<VariableElement> getCrossProfileCallbackParam( in getCrossProfileCallbackParam()
199 .map(e -> (VariableElement) e); in getCrossProfileCallbackParam()
/external/dagger2/java/dagger/internal/codegen/base/
DElementFormatter.java27 import javax.lang.model.element.VariableElement;
70 public String visitVariableAsParameter(VariableElement parameter, Void aVoid) {
84 public String visitVariableAsField(VariableElement field, Void aVoid) {
/external/javapoet/src/test/java/com/squareup/javapoet/
DParameterSpecTest.java24 import javax.lang.model.element.VariableElement;
98 List<VariableElement> methods = fieldsIn(elements.getAllMembers(classElement)); in fieldVariableElement()
99 VariableElement element = findFirst(methods, "name"); in fieldVariableElement()
118 VariableElement parameterElement = element.getParameters().get(0); in parameterVariableElement()
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DOtherProfileGenerator.java41 import javax.lang.model.element.VariableElement;
181 for (VariableElement param : method.methodElement().getParameters()) { in generateBlockingMethodOnOtherProfileClass()
241 VariableElement callbackParameter = method.getCrossProfileCallbackParam(generatorContext).get(); in generateCrossProfileCallbackMethodOnOtherProfileClass()
267 for (VariableElement param : method.methodElement().getParameters()) { in generateCrossProfileCallbackMethodOnOtherProfileClass()
330 for (VariableElement param : method.methodElement().getParameters()) { in generateFutureMethodOnOtherProfileClass()

1234