Tabnine Logo
BasicBeanDescription.isFactoryMethod
Code IndexAdd Tabnine to your IDE (free)

How to use
isFactoryMethod
method
in
org.codehaus.jackson.map.introspect.BasicBeanDescription

Best Java code snippets using org.codehaus.jackson.map.introspect.BasicBeanDescription.isFactoryMethod (Showing top 12 results out of 315)

origin: org.codehaus.jackson/jackson-mapper-asl

public List<AnnotatedMethod> getFactoryMethods()
{
  // must filter out anything that clearly is not a factory method
  List<AnnotatedMethod> candidates = _classInfo.getStaticMethods();
  if (candidates.isEmpty()) {
    return candidates;
  }
  ArrayList<AnnotatedMethod> result = new ArrayList<AnnotatedMethod>();
  for (AnnotatedMethod am : candidates) {
    if (isFactoryMethod(am)) {
      result.add(am);
    }
  }
  return result;
}
origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method that can be called to find if introspected class declares
 * a static "valueOf" factory method that returns an instance of
 * introspected type, given one of acceptable types.
 *
 * @param expArgTypes Types that the matching single argument factory
 *   method can take: will also accept super types of these types
 *   (ie. arg just has to be assignable from expArgType)
 */
public Method findFactoryMethod(Class<?>... expArgTypes)
{
  // So, of all single-arg static methods:
  for (AnnotatedMethod am : _classInfo.getStaticMethods()) {
    if (isFactoryMethod(am)) {
      // And must take one of expected arg types (or supertype)
      Class<?> actualArgType = am.getParameterClass(0);
      for (Class<?> expArgType : expArgTypes) {
        // And one that matches what we would pass in
        if (actualArgType.isAssignableFrom(expArgType)) {
          return am.getAnnotated();
        }
      }
    }
  }
  return null;
}
origin: camunda/camunda-bpm-platform

public List<AnnotatedMethod> getFactoryMethods()
{
  // must filter out anything that clearly is not a factory method
  List<AnnotatedMethod> candidates = _classInfo.getStaticMethods();
  if (candidates.isEmpty()) {
    return candidates;
  }
  ArrayList<AnnotatedMethod> result = new ArrayList<AnnotatedMethod>();
  for (AnnotatedMethod am : candidates) {
    if (isFactoryMethod(am)) {
      result.add(am);
    }
  }
  return result;
}
origin: camunda/camunda-bpm-platform

/**
 * Method that can be called to find if introspected class declares
 * a static "valueOf" factory method that returns an instance of
 * introspected type, given one of acceptable types.
 *
 * @param expArgTypes Types that the matching single argument factory
 *   method can take: will also accept super types of these types
 *   (ie. arg just has to be assignable from expArgType)
 */
public Method findFactoryMethod(Class<?>... expArgTypes)
{
  // So, of all single-arg static methods:
  for (AnnotatedMethod am : _classInfo.getStaticMethods()) {
    if (isFactoryMethod(am)) {
      // And must take one of expected arg types (or supertype)
      Class<?> actualArgType = am.getParameterClass(0);
      for (Class<?> expArgType : expArgTypes) {
        // And one that matches what we would pass in
        if (actualArgType.isAssignableFrom(expArgType)) {
          return am.getAnnotated();
        }
      }
    }
  }
  return null;
}
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

public List<AnnotatedMethod> getFactoryMethods()
{
  // must filter out anything that clearly is not a factory method
  List<AnnotatedMethod> candidates = _classInfo.getStaticMethods();
  if (candidates.isEmpty()) {
    return candidates;
  }
  ArrayList<AnnotatedMethod> result = new ArrayList<AnnotatedMethod>();
  for (AnnotatedMethod am : candidates) {
    if (isFactoryMethod(am)) {
      result.add(am);
    }
  }
  return result;
}
origin: org.codehaus.jackson/jackson-mapper-lgpl

public List<AnnotatedMethod> getFactoryMethods()
{
  // must filter out anything that clearly is not a factory method
  List<AnnotatedMethod> candidates = _classInfo.getStaticMethods();
  if (candidates.isEmpty()) {
    return candidates;
  }
  ArrayList<AnnotatedMethod> result = new ArrayList<AnnotatedMethod>();
  for (AnnotatedMethod am : candidates) {
    if (isFactoryMethod(am)) {
      result.add(am);
    }
  }
  return result;
}
origin: com.barchart.wrap/barchart-wrap-jackson

public List<AnnotatedMethod> getFactoryMethods()
{
  // must filter out anything that clearly is not a factory method
  List<AnnotatedMethod> candidates = _classInfo.getStaticMethods();
  if (candidates.isEmpty()) {
    return candidates;
  }
  ArrayList<AnnotatedMethod> result = new ArrayList<AnnotatedMethod>();
  for (AnnotatedMethod am : candidates) {
    if (isFactoryMethod(am)) {
      result.add(am);
    }
  }
  return result;
}
origin: ovea-deprecated/jetty-session-redis

public List<AnnotatedMethod> getFactoryMethods()
{
  // must filter out anything that clearly is not a factory method
  List<AnnotatedMethod> candidates = _classInfo.getStaticMethods();
  if (candidates.isEmpty()) {
    return candidates;
  }
  ArrayList<AnnotatedMethod> result = new ArrayList<AnnotatedMethod>();
  for (AnnotatedMethod am : candidates) {
    if (isFactoryMethod(am)) {
      result.add(am);
    }
  }
  return result;
}
origin: org.codehaus.jackson/jackson-mapper-lgpl

/**
 * Method that can be called to find if introspected class declares
 * a static "valueOf" factory method that returns an instance of
 * introspected type, given one of acceptable types.
 *
 * @param expArgTypes Types that the matching single argument factory
 *   method can take: will also accept super types of these types
 *   (ie. arg just has to be assignable from expArgType)
 */
public Method findFactoryMethod(Class<?>... expArgTypes)
{
  // So, of all single-arg static methods:
  for (AnnotatedMethod am : _classInfo.getStaticMethods()) {
    if (isFactoryMethod(am)) {
      // And must take one of expected arg types (or supertype)
      Class<?> actualArgType = am.getParameterClass(0);
      for (Class<?> expArgType : expArgTypes) {
        // And one that matches what we would pass in
        if (actualArgType.isAssignableFrom(expArgType)) {
          return am.getAnnotated();
        }
      }
    }
  }
  return null;
}
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

/**
 * Method that can be called to find if introspected class declares
 * a static "valueOf" factory method that returns an instance of
 * introspected type, given one of acceptable types.
 *
 * @param expArgTypes Types that the matching single argument factory
 *   method can take: will also accept super types of these types
 *   (ie. arg just has to be assignable from expArgType)
 */
public Method findFactoryMethod(Class<?>... expArgTypes)
{
  // So, of all single-arg static methods:
  for (AnnotatedMethod am : _classInfo.getStaticMethods()) {
    if (isFactoryMethod(am)) {
      // And must take one of expected arg types (or supertype)
      Class<?> actualArgType = am.getParameterClass(0);
      for (Class<?> expArgType : expArgTypes) {
        // And one that matches what we would pass in
        if (actualArgType.isAssignableFrom(expArgType)) {
          return am.getAnnotated();
        }
      }
    }
  }
  return null;
}
origin: com.barchart.wrap/barchart-wrap-jackson

/**
 * Method that can be called to find if introspected class declares
 * a static "valueOf" factory method that returns an instance of
 * introspected type, given one of acceptable types.
 *
 * @param expArgTypes Types that the matching single argument factory
 *   method can take: will also accept super types of these types
 *   (ie. arg just has to be assignable from expArgType)
 */
public Method findFactoryMethod(Class<?>... expArgTypes)
{
  // So, of all single-arg static methods:
  for (AnnotatedMethod am : _classInfo.getStaticMethods()) {
    if (isFactoryMethod(am)) {
      // And must take one of expected arg types (or supertype)
      Class<?> actualArgType = am.getParameterClass(0);
      for (Class<?> expArgType : expArgTypes) {
        // And one that matches what we would pass in
        if (actualArgType.isAssignableFrom(expArgType)) {
          return am.getAnnotated();
        }
      }
    }
  }
  return null;
}
origin: ovea-deprecated/jetty-session-redis

/**
 * Method that can be called to find if introspected class declares
 * a static "valueOf" factory method that returns an instance of
 * introspected type, given one of acceptable types.
 *
 * @param expArgTypes Types that the matching single argument factory
 *   method can take: will also accept super types of these types
 *   (ie. arg just has to be assignable from expArgType)
 */
public Method findFactoryMethod(Class<?>... expArgTypes)
{
  // So, of all single-arg static methods:
  for (AnnotatedMethod am : _classInfo.getStaticMethods()) {
    if (isFactoryMethod(am)) {
      // And must take one of expected arg types (or supertype)
      Class<?> actualArgType = am.getParameterClass(0);
      for (Class<?> expArgType : expArgTypes) {
        // And one that matches what we would pass in
        if (actualArgType.isAssignableFrom(expArgType)) {
          return am.getAnnotated();
        }
      }
    }
  }
  return null;
}
org.codehaus.jackson.map.introspectBasicBeanDescriptionisFactoryMethod

Popular methods of BasicBeanDescription

  • getBeanClass
  • getClassInfo
  • <init>
  • _findPropertyFields
  • findAnySetter
    Method used to locate the method of introspected class that implements org.codehaus.jackson.annotate
  • findDefaultConstructor
    Method that will locate the no-arg constructor for this class, if it has one, and that constructor h
  • findFactoryMethod
    Method that can be called to find if introspected class declares a static "valueOf" factory method t
  • findJsonValueMethod
    Method for locating the getter method that is annotated with org.codehaus.jackson.annotate.JsonValue
  • findMethod
  • findProperties
  • findSerializationInclusion
    Method for determining whether null properties should be written out for a Bean of introspected type
  • findSingleArgConstructor
    Method that can be called to locate a single-arg constructor that takes specified exact type (will n
  • findSerializationInclusion,
  • findSingleArgConstructor,
  • getConstructors,
  • getFactoryMethods,
  • getType,
  • hasKnownClassAnnotations,
  • instantiateBean,
  • bindingsForBeanType,
  • findAnyGetter

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Collectors (java.util.stream)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now