com.fasterxml.jackson.databind.introspect

Class AnnotatedConstructor

    • Field Detail

      • _constructor

        protected final Constructor<?> _constructor
      • _serialization

        protected com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.Serialization _serialization
        Field that is used to make JDK serialization work with this object.
        Since:
        2.1
    • Constructor Detail

      • AnnotatedConstructor

        protected AnnotatedConstructor(com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.Serialization ser)
        Method used for JDK serialization support
        Since:
        2.1
    • Method Detail

      • getAnnotated

        public Constructor<?> getAnnotated()
        Description copied from class: Annotated
        Method that can be used to find actual JDK element that this instance represents. It is non-null, except for method/constructor parameters which do not have a JDK counterpart.
        Specified by:
        getAnnotated in class Annotated
      • getGenericType

        public Type getGenericType()
        Description copied from class: Annotated
        Full generic type of the annotated element; definition of what exactly this means depends on sub-class.
        Specified by:
        getGenericType in class Annotated
      • getRawType

        public Class<?> getRawType()
        Description copied from class: Annotated
        "Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.
        Specified by:
        getRawType in class Annotated
      • getType

        public JavaType getType(TypeBindings bindings)
        As per [JACKSON-468], we need to also allow declaration of local type bindings; mostly it will allow defining bounds.
        Overrides:
        getType in class Annotated
      • call

        public final Object call()
                          throws Exception
        Description copied from class: AnnotatedWithParams
        Method that can be used to (try to) call this object without arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call.

        Note: only works for constructors and static methods.

        Specified by:
        call in class AnnotatedWithParams
        Throws:
        Exception
      • call

        public final Object call(Object[] args)
                          throws Exception
        Description copied from class: AnnotatedWithParams
        Method that can be used to (try to) call this object with specified arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call.

        Note: only works for constructors and static methods.

        Specified by:
        call in class AnnotatedWithParams
        Throws:
        Exception
      • call1

        public final Object call1(Object arg)
                           throws Exception
        Description copied from class: AnnotatedWithParams
        Method that can be used to (try to) call this object with single arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call.

        Note: only works for constructors and static methods.

        Specified by:
        call1 in class AnnotatedWithParams
        Throws:
        Exception

Copyright © 2012-2013 FasterXML. All Rights Reserved.