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

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

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

origin: com.barchart.wrap/barchart-wrap-jackson

public String okNameForIsGetter(AnnotatedMethod am, String name)
{
  if (name.startsWith("is")) {
    // plus, must return boolean...
    Class<?> rt = am.getRawType();
    if (rt != Boolean.class && rt != Boolean.TYPE) {
      return null;
    }
    return mangleGetterName(am, name.substring(2));
  }
  // no, not a match by name
  return null;
}
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

public String okNameForIsGetter(AnnotatedMethod am, String name)
{
  if (name.startsWith("is")) {
    // plus, must return boolean...
    Class<?> rt = am.getReturnType();
    if (rt != Boolean.class && rt != Boolean.TYPE) {
      return null;
    }
    return mangleGetterName(am, name.substring(2));
  }
  // no, not a match by name
  return null;
}
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

public String okNameForGetter(AnnotatedMethod am, String name)
{
  if (name.startsWith("get")) {
    /* 16-Feb-2009, tatu: To handle [JACKSON-53], need to block
     *   CGLib-provided method "getCallbacks". Not sure of exact
     *   safe critieria to get decent coverage without false matches;
     *   but for now let's assume there's no reason to use any 
     *   such getter from CGLib.
     *   But let's try this approach...
     */
    if ("getCallbacks".equals(name)) {
      if (isCglibGetCallbacks(am)) {
        return null;
      }
    } else if ("getMetaClass".equals(name)) {
      /* 30-Apr-2009, tatu: [JACKSON-103], need to suppress
       *    serialization of a cyclic (and useless) reference
       */
      if (isGroovyMetaClassGetter(am)) {
        return null;
      }
    }
    return mangleGetterName(am, name.substring(3));
  }
  return null;
}
origin: com.barchart.wrap/barchart-wrap-jackson

public String okNameForGetter(AnnotatedMethod am, String name)
{
  if (name.startsWith("get")) {
    /* 16-Feb-2009, tatu: To handle [JACKSON-53], need to block
     *   CGLib-provided method "getCallbacks". Not sure of exact
     *   safe criteria to get decent coverage without false matches;
     *   but for now let's assume there's no reason to use any 
     *   such getter from CGLib.
     *   But let's try this approach...
     */
    if ("getCallbacks".equals(name)) {
      if (isCglibGetCallbacks(am)) {
        return null;
      }
    } else if ("getMetaClass".equals(name)) {
      /* 30-Apr-2009, tatu: [JACKSON-103], need to suppress
       *    serialization of a cyclic (and useless) reference
       */
      if (isGroovyMetaClassGetter(am)) {
        return null;
      }
    }
    return mangleGetterName(am, name.substring(3));
  }
  return null;
}
org.codehaus.jackson.map.introspectBasicBeanDescriptionmangleGetterName

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,
  • isFactoryMethod,
  • bindingsForBeanType,
  • findAnyGetter

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top plugins for WebStorm
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