Class AbstractConversionContext

java.lang.Object
io.micronaut.data.runtime.support.AbstractConversionContext
All Implemented Interfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.convert.ConversionContext, io.micronaut.core.convert.ErrorsContext, io.micronaut.core.type.TypeVariableResolver, Iterable<io.micronaut.core.convert.ConversionError>

@Internal public class AbstractConversionContext extends Object implements io.micronaut.core.convert.ConversionContext
Delegating ConversionContext.
Since:
3.1
Author:
Denis Stepanov
  • Field Summary

    Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

    EMPTY

    Fields inherited from interface io.micronaut.core.convert.ConversionContext

    BOOLEAN, DEFAULT, INT, LIST_OF_STRING, LONG, MAP, STRING
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractConversionContext(io.micronaut.core.convert.ConversionContext conversionContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.annotation.AnnotationMetadata
     
    Optional<io.micronaut.core.type.Argument<?>>
     
    Optional<io.micronaut.core.convert.ConversionError>
     
    io.micronaut.core.type.Argument[]
     
    Optional<io.micronaut.core.type.Argument<?>>
     
    Map<String,io.micronaut.core.type.Argument<?>>
     
    boolean
     
    Iterator<io.micronaut.core.convert.ConversionError>
     
    void
    reject(Exception exception)
     
    void
    reject(Object value, Exception exception)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider

    findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType

    Methods inherited from interface io.micronaut.core.annotation.AnnotationSource

    getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared

    Methods inherited from interface io.micronaut.core.convert.ConversionContext

    getCharset, getLocale, with

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • AbstractConversionContext

      public AbstractConversionContext(io.micronaut.core.convert.ConversionContext conversionContext)
  • Method Details

    • getAnnotationMetadata

      public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
      Specified by:
      getAnnotationMetadata in interface io.micronaut.core.annotation.AnnotationMetadataProvider
    • getTypeVariables

      public Map<String,io.micronaut.core.type.Argument<?>> getTypeVariables()
      Specified by:
      getTypeVariables in interface io.micronaut.core.convert.ConversionContext
      Specified by:
      getTypeVariables in interface io.micronaut.core.type.TypeVariableResolver
    • getTypeParameters

      public io.micronaut.core.type.Argument[] getTypeParameters()
      Specified by:
      getTypeParameters in interface io.micronaut.core.type.TypeVariableResolver
    • getFirstTypeVariable

      public Optional<io.micronaut.core.type.Argument<?>> getFirstTypeVariable()
      Specified by:
      getFirstTypeVariable in interface io.micronaut.core.type.TypeVariableResolver
    • getTypeVariable

      public Optional<io.micronaut.core.type.Argument<?>> getTypeVariable(String name)
      Specified by:
      getTypeVariable in interface io.micronaut.core.type.TypeVariableResolver
    • reject

      public void reject(Exception exception)
      Specified by:
      reject in interface io.micronaut.core.convert.ErrorsContext
    • reject

      public void reject(Object value, Exception exception)
      Specified by:
      reject in interface io.micronaut.core.convert.ErrorsContext
    • iterator

      public Iterator<io.micronaut.core.convert.ConversionError> iterator()
      Specified by:
      iterator in interface io.micronaut.core.convert.ErrorsContext
      Specified by:
      iterator in interface Iterable<io.micronaut.core.convert.ConversionError>
    • getLastError

      public Optional<io.micronaut.core.convert.ConversionError> getLastError()
      Specified by:
      getLastError in interface io.micronaut.core.convert.ErrorsContext
    • hasErrors

      public boolean hasErrors()
      Specified by:
      hasErrors in interface io.micronaut.core.convert.ErrorsContext