Codota Logo
JDefinedClass.methods
Code IndexAdd Codota to your IDE (free)

How to use
methods
method
in
com.sun.codemodel.JDefinedClass

Best Java code snippets using com.sun.codemodel.JDefinedClass.methods (Showing top 20 results out of 315)

  • Common ways to obtain JDefinedClass
private void myMethod () {
JDefinedClass j =
  • Codota IconJCodeModel codeModel;String fullyqualifiedName;codeModel._class(fullyqualifiedName)
  • Codota IconJClassAlreadyExistsException e;e.getExistingClass()
  • Codota IconJCodeModel cm;String fullyqualifiedName;ClassType t;cm._class(fullyqualifiedName, t)
  • Smart code suggestions by Codota
}
origin: joelittlejohn/jsonschema2pojo

private void updateGetterSetterJavaDoc(JDefinedClass jclass, List<String> requiredFieldMethods) {
  for (Iterator<JMethod> methods = jclass.methods().iterator(); methods.hasNext();) {
    JMethod method = methods.next();
    if (requiredFieldMethods.contains(method.name())) {
      addJavaDoc(method);
    }
  }
}
origin: joelittlejohn/jsonschema2pojo

private void addOverrideBuilders(JDefinedClass jclass, JDefinedClass parentJclass) {
  if (parentJclass == null) {
    return;
  }
  for (JMethod parentJMethod : parentJclass.methods()) {
    if (parentJMethod.name().startsWith("with") && parentJMethod.params().size() == 1) {
      addOverrideBuilder(jclass, parentJMethod, parentJMethod.params().get(0));
    }
  }
}
origin: joelittlejohn/jsonschema2pojo

processMethodCollectionForSerializableSupport(jclass.methods().iterator(), dataOutputStream);
processMethodCollectionForSerializableSupport(jclass.constructors(), dataOutputStream);
origin: org.jvnet.jaxb2_commons/jaxb2-basics-tools

public static JMethod getMethod(final JDefinedClass theClass,
    final String name) {
  for (JMethod method : theClass.methods()) {
    if (method.name().equals(name))
      return method;
  }
  return null;
}
origin: org.jvnet.jaxbcommons/jaxbcommons-core

protected boolean matches(JCodeModel codeModel, JDefinedClass jinterface, Method theMethod) {
 for (Iterator itr = jinterface.methods(); itr.hasNext();) {
  final JMethod m = (JMethod) itr.next();
  if (matches(codeModel, m, theMethod))
   return true;
 }
 return false;
}
origin: org.jvnet.jaxbcommons/jaxbcommons-core

public static JMethod getMethod(final JDefinedClass theClass, final String name) {
 for (Iterator iterator = theClass.methods(); iterator.hasNext();) {
  final JMethod method = (JMethod) iterator.next();
  if (method.name().equals(name))
   return method;
 }
 return null;
}
origin: org.jvnet.jaxb2_commons/tools

public static JMethod getMethod(final JDefinedClass theClass,
    final String name) {
  for (JMethod method : theClass.methods()) {
    if (method.name().equals(name))
      return method;
  }
  return null;
}
origin: org.jvnet.hyperjaxb3/hyperjaxb3-tools

public static JMethod getMethod(final JDefinedClass theClass,
    final String name) {
  for (JMethod method : theClass.methods()) {
    if (method.name().equals(name))
      return method;
  }
  return null;
}
origin: Evolveum/midpoint

private void removeCloneableMethod(ClassOutline classOutline) {
  JDefinedClass impl = classOutline.implClass;
  Iterator<JMethod> methods = impl.methods().iterator();
  while (methods.hasNext()) {
    JMethod method = methods.next();
    if ("clone".equals(method.name()) && method.hasSignature(new JType[]{})) {
      methods.remove();
    }
  }
}
origin: org.jsonschema2pojo/jsonschema2pojo-core

private void updateGetterSetterJavaDoc(JDefinedClass jclass, List<String> requiredFieldMethods) {
  for (Iterator<JMethod> methods = jclass.methods().iterator(); methods.hasNext();) {
    JMethod method = methods.next();
    if (requiredFieldMethods.contains(method.name())) {
      addJavaDoc(method);
    }
  }
}
origin: Evolveum/midpoint

private JMethod findMethod(JDefinedClass definedClass, String methodName) {
  for (JMethod method : definedClass.methods()) {
    if (method.name().equals(methodName)) {
      return method;
    }
  }
  throw new IllegalArgumentException("Couldn't find method '" + methodName
      + "' in defined class '" + definedClass.name() + "'");
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

/**
 * Adds "synchoronized" to all the methods.
 */
private void augument(ClassOutline co) {
  for (JMethod m : co.implClass.methods())
    m.getMods().setSynchronized(true);
}
origin: org.glassfish.metro/webservices-tools

/**
 * Adds "synchoronized" to all the methods.
 */
private void augument(ClassOutline co) {
  for (JMethod m : co.implClass.methods())
    m.getMods().setSynchronized(true);
}
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

/**
 * Adds "synchoronized" to all the methods.
 */
private void augument(ClassOutline co) {
  for (JMethod m : co.implClass.methods())
    m.getMods().setSynchronized(true);
}
origin: sun-jaxb/jaxb-xjc

/**
 * Adds "synchoronized" to all the methods.
 */
private void augument(ClassOutline co) {
  for (JMethod m : co.implClass.methods())
    m.getMods().setSynchronized(true);
}
origin: org.jsonschema2pojo/jsonschema2pojo-core

private void addOverrideBuilders(JDefinedClass jclass, JDefinedClass parentJclass) {
  if (parentJclass == null) {
    return;
  }
  for (JMethod parentJMethod : parentJclass.methods()) {
    if (parentJMethod.name().startsWith("with") && parentJMethod.params().size() == 1) {
      addOverrideBuilder(jclass, parentJMethod, parentJMethod.params().get(0));
    }
  }
}
origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

/**
 * Adds "@Generated" to the classes, methods, and fields.
 */
private void augument(ClassOutline co) {
  annotate(co.implClass);
  for (JMethod m : co.implClass.methods())
    annotate(m);
  for (JFieldVar f : co.implClass.fields().values())
    annotate(f);
}
origin: org.glassfish.metro/webservices-tools

/**
 * Adds "@Generated" to the classes, methods, and fields.
 */
private void augument(ClassOutline co) {
  annotate(co.implClass);
  for (JMethod m : co.implClass.methods())
    annotate(m);
  for (JFieldVar f : co.implClass.fields().values())
    annotate(f);
}
origin: sun-jaxb/jaxb-xjc

/**
 * Adds "@Generated" to the classes, methods, and fields.
 */
private void augument(ClassOutline co) {
  annotate(co.implClass);
  for (JMethod m : co.implClass.methods())
    annotate(m);
  for (JFieldVar f : co.implClass.fields().values())
    annotate(f);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

/**
 * Adds "@Generated" to the classes, methods, and fields.
 */
private void augument(ClassOutline co) {
  annotate(co.implClass);
  for (JMethod m : co.implClass.methods())
    annotate(m);
  for (JFieldVar f : co.implClass.fields().values())
    annotate(f);
}
com.sun.codemodelJDefinedClassmethods

Javadoc

Set of methods that are members of this class

Popular methods of JDefinedClass

  • method
  • _extends
  • field
  • _implements
  • name
    JClass name accessor. For example, for java.util.List, this method returns "List""
  • constructor
    Adds a constructor to this class.
  • fields
    Returns all the fields declred in this class. The returned Map is a read-only live view.
  • annotate
    Adding ability to annotate a class
  • fullName
    Gets the fully qualified name of this class.
  • owner
  • javadoc
    Creates, if necessary, and returns the class javadoc for this JDefinedClass
  • _class
    Add a new public nested class to this class.
  • javadoc,
  • _class,
  • getMethod,
  • _package,
  • dotclass,
  • enumConstant,
  • staticInvoke,
  • staticRef,
  • init

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JOptionPane (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now