Tabnine Logo
RebindUtils.getterSetterDeterminator
Code IndexAdd Tabnine to your IDE (free)

How to use
getterSetterDeterminator
method
in
sk.seges.acris.core.rebind.RebindUtils

Best Java code snippets using sk.seges.acris.core.rebind.RebindUtils.getterSetterDeterminator (Showing top 3 results out of 315)

origin: sk.seges.acris/acris-client-core

public static JMethod getGetter(JClassType beanType, String fieldName) throws NotFoundException {
  JMethod method = null;
  try {
    try {
      method = beanType.getMethod("get" + getterSetterDeterminator(fieldName), new JType[0]);
    } catch (NotFoundException e) {
      method = beanType.getMethod("is" + getterSetterDeterminator(fieldName), new JType[0]);
    }
  } catch (NotFoundException e) {
    JClassType superClass = beanType.getSuperclass();
    if (superClass != null) {
      try {
        method = getGetter(superClass, fieldName);
      } catch (NotFoundException e1) {
        JClassType[] interfaces = beanType.getImplementedInterfaces();
        if (interfaces != null && interfaces.length > 0) {
          for (JClassType intrface : interfaces) {
            method = getGetter(intrface, fieldName);
            if (method != null) {
              break;
            }
          }
        }
      }
    }
  }
  return method;
}
origin: sk.seges.acris/acris-client-core

String setterName = "set" + getterSetterDeterminator(fieldName);
origin: sk.seges.acris/acris-client-core

public static JMethod getSetter(JClassType beanType, String fieldName, JType fieldType)
    throws NotFoundException {
  JMethod method = null;
  try {
    method = beanType.getMethod("set" + getterSetterDeterminator(fieldName),
        new JType[] { fieldType });
    if (method.isPrivate())
      method = null;
  } catch (NotFoundException e) {
    JClassType superClass = beanType.getSuperclass();
    if (superClass != null) {
      try {
        method = getSetter(superClass, fieldName, fieldType);
      } catch (NotFoundException e1) {
        JClassType[] interfaces = beanType.getImplementedInterfaces();
        if (interfaces != null && interfaces.length > 0) {
          for (JClassType intrface : interfaces) {
            method = getSetter(intrface, fieldName, fieldType);
            if (method != null) {
              break;
            }
          }
        }
      }
    }
  }
  return method;
}
sk.seges.acris.core.rebindRebindUtilsgetterSetterDeterminator

Javadoc

Example: for field street it will generate string Street used to construct getter/setter.

Popular methods of RebindUtils

  • getGetter
  • getDeclaredFieldType
    Will it comment it aprox. 2 minutes before getDeclaredFieldClassType method
  • getGenericsFromInterfaceType
    Tries to find parametrized type in interface of a class.
  • getGenericsFromSuperclassType
    Same as getGenericsFromInterfaceType but it extracts generics from superclass
  • getGetterForMoreDotsInBeanTable
    recursively calls RebindUtils#getGetter(JClassType,String) to handle "more-dots strings" e.g.: addre
  • getSetter
  • getComparableMethodDeclaration
  • getDeclaredDirectField
    Searches class and all its superclasses for a field.
  • getDeclaredField
    Searches class and all its superclasses for a property.
  • getDeclaredFieldClassType
    Will it comment later :)
  • getGenericsFromInterfaceHierarchy
    Tries to find parametrized type in interface hierarchy of a class.
  • toFieldName
    Convert method getter/setter/isser to field name.
  • getGenericsFromInterfaceHierarchy,
  • toFieldName

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Best plugins for Eclipse
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