public WildcardMember(javax.lang.model.element.Element delegate, TypeDefinition typeDef, EnunciateJackson1Context context) { super(delegate, context.getContext().getProcessingEnvironment()); this.facets.addAll(Facet.gatherFacets(delegate, context.getContext())); this.facets.addAll(typeDef.getFacets()); }
public WildcardMember(javax.lang.model.element.Element delegate, TypeDefinition typeDef, EnunciateJackson1Context context) { super(delegate, context.getContext().getProcessingEnvironment()); this.facets.addAll(Facet.gatherFacets(delegate, context.getContext())); this.facets.addAll(typeDef.getFacets()); }
/** * Look up the mix-in for a given element. * * @param element The element for which to look up the mix-in. * @return The mixin. */ public TypeElement lookupMixin(TypeElement element) { String mixin = this.mixins.get(element.getQualifiedName().toString()); if (mixin != null) { return getContext().getProcessingEnvironment().getElementUtils().getTypeElement(mixin); } return null; }
/** * Look up the mix-in for a given element. * * @param element The element for which to look up the mix-in. * @return The mixin. */ public TypeElement lookupMixin(TypeElement element) { String mixin = this.mixins.get(element.getQualifiedName().toString()); if (mixin != null) { return getContext().getProcessingEnvironment().getElementUtils().getTypeElement(mixin); } return null; }
public Accessor(javax.lang.model.element.Element delegate, TypeDefinition typeDef, EnunciateJackson1Context context) { super(delegate, context.getContext().getProcessingEnvironment()); this.typeDefinition = typeDef; this.facets.addAll(Facet.gatherFacets(delegate, context.getContext())); this.facets.addAll(typeDef.getFacets()); this.context = context; this.adapterType = JacksonUtil.findAdapterType(this, context); }
public Accessor(javax.lang.model.element.Element delegate, TypeDefinition typeDef, EnunciateJackson1Context context) { super(delegate, context.getContext().getProcessingEnvironment()); this.typeDefinition = typeDef; this.facets.addAll(Facet.gatherFacets(delegate, context.getContext())); this.facets.addAll(typeDef.getFacets()); this.context = context; this.adapterType = JacksonUtil.findAdapterType(this, context); }
public EnumValue(EnumTypeDefinition typeDefinition, VariableElement delegate, String name, String value) { super(delegate, typeDefinition.getContext().getContext().getProcessingEnvironment()); this.typeDefinition = typeDefinition; this.name = name; this.value = value; this.facets.addAll(Facet.gatherFacets(delegate, typeDefinition.getContext().getContext())); this.facets.addAll(typeDefinition.getFacets()); }
public EnumValue(EnumTypeDefinition typeDefinition, VariableElement delegate, String name, String value) { super(delegate, typeDefinition.getContext().getContext().getProcessingEnvironment()); this.typeDefinition = typeDefinition; this.name = name; this.value = value; this.facets.addAll(Facet.gatherFacets(delegate, typeDefinition.getContext().getContext())); this.facets.addAll(typeDefinition.getFacets()); }
/** * If this is a collection type, return the type parameter of the collection, or null if this isn't a * parameterized collection type. * * @return the type parameter of the collection. */ public DecoratedTypeMirror getCollectionItemType() { return TypeMirrorUtils.getComponentType(getAccessorType(), this.context.getContext().getProcessingEnvironment()); }
/** * If this is a collection type, return the type parameter of the collection, or null if this isn't a * parameterized collection type. * * @return the type parameter of the collection. */ public DecoratedTypeMirror getCollectionItemType() { return TypeMirrorUtils.getComponentType(getAccessorType(), this.context.getContext().getProcessingEnvironment()); }
/** * Get the resolved accessor type for this accessor. * * @return the resolved accessor type for this accessor. */ public TypeMirror getResolvedAccessorType() { DecoratedTypeMirror accessorType = getAccessorType(); if (isAdapted()) { accessorType = (DecoratedTypeMirror) getAdapterType().getAdaptingType(accessorType, this.context.getContext()); } return accessorType; }
/** * Get the resolved accessor type for this accessor. * * @return the resolved accessor type for this accessor. */ public TypeMirror getResolvedAccessorType() { DecoratedTypeMirror accessorType = getAccessorType(); if (isAdapted()) { accessorType = (DecoratedTypeMirror) getAdapterType().getAdaptingType(accessorType, this.context.getContext()); } return accessorType; }
@Override public Set<String> getStyles() { return Styles.gatherStyles(this.typeDefinition, this.typeDefinition.getContext().getContext().getConfiguration().getAnnotationStyles()); }
@Override public Set<String> getStyles() { return Styles.gatherStyles(this.member, this.member.getContext().getContext().getConfiguration().getAnnotationStyles()); }
@Override public Set<String> getStyles() { return Styles.gatherStyles(this.member, this.member.getContext().getContext().getConfiguration().getAnnotationStyles()); }
@Override public Set<String> getStyles() { return Styles.gatherStyles(this.typeDefinition, this.typeDefinition.getContext().getContext().getConfiguration().getAnnotationStyles()); }
/** * Whether the accessor type is a collection type. * * @return Whether the accessor type is a collection type. */ public boolean isCollectionType() { DecoratedTypeMirror accessorType = getAccessorType(); if (isAdapted()) { accessorType = (DecoratedTypeMirror) getAdapterType().getAdaptingType(accessorType, this.context.getContext()); } return accessorType.isArray() || accessorType.isCollection(); }
/** * Whether the accessor type is a collection type. * * @return Whether the accessor type is a collection type. */ public boolean isCollectionType() { DecoratedTypeMirror accessorType = getAccessorType(); if (isAdapted()) { accessorType = (DecoratedTypeMirror) getAdapterType().getAdaptingType(accessorType, this.context.getContext()); } return accessorType.isArray() || accessorType.isCollection(); }
private ValueImpl createValue(EnumValue enumValue) { return new ValueImpl(enumValue.getValue(), enumValue.getJavaDoc(this.registrationContext.getTagHandler()), Styles.gatherStyles(enumValue, this.typeDefinition.getContext().getContext().getConfiguration().getAnnotationStyles()), enumValue.getFacets()); }
private ValueImpl createValue(EnumValue enumValue) { return new ValueImpl(enumValue.getValue(), enumValue.getJavaDoc(this.registrationContext.getTagHandler()), Styles.gatherStyles(enumValue, this.typeDefinition.getContext().getContext().getConfiguration().getAnnotationStyles()), enumValue.getFacets()); }