congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CodeDefinition.writeBody
Code IndexAdd Tabnine to your IDE (free)

How to use
writeBody
method
in
org.eclipse.persistence.internal.codegen.CodeDefinition

Best Java code snippets using org.eclipse.persistence.internal.codegen.CodeDefinition.writeBody (Showing top 3 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Write the code out to the generator's stream.
 */
public void write(CodeGenerator generator) {
  if (getComment().length() > 0) {
    generator.writeln("/**");
    String comment = getComment();
    String cr = org.eclipse.persistence.internal.helper.Helper.cr();
    int lastLineIndex = 0;
    int nextLineIndex = comment.indexOf(cr);
    while (nextLineIndex != -1) {
      generator.write(" * ");
      generator.write(comment.substring(lastLineIndex, nextLineIndex + cr.length()));
      lastLineIndex = nextLineIndex + cr.length();
      nextLineIndex = comment.indexOf(cr, lastLineIndex);
    }
    generator.write(" * ");
    generator.writeln(comment.substring(lastLineIndex, comment.length()));
    generator.writeln(" */");
    generator.cr();
  }
  getAccessLevel().write(generator);
  generator.write(" ");
  writeBody(generator);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Write the code out to the generator's stream.
 */
public void write(CodeGenerator generator) {
  if (getComment().length() > 0) {
    generator.writeln("/**");
    String comment = getComment();
    String cr = org.eclipse.persistence.internal.helper.Helper.cr();
    int lastLineIndex = 0;
    int nextLineIndex = comment.indexOf(cr);
    while (nextLineIndex != -1) {
      generator.write(" * ");
      generator.write(comment.substring(lastLineIndex, nextLineIndex + cr.length()));
      lastLineIndex = nextLineIndex + cr.length();
      nextLineIndex = comment.indexOf(cr, lastLineIndex);
    }
    generator.write(" * ");
    generator.writeln(comment.substring(lastLineIndex, comment.length()));
    generator.writeln(" */");
    generator.cr();
  }
  getAccessLevel().write(generator);
  generator.write(" ");
  writeBody(generator);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Write the code out to the generator's stream.
 */
public void write(CodeGenerator generator) {
  if (getComment().length() > 0) {
    generator.writeln("/**");
    String comment = getComment();
    String cr = org.eclipse.persistence.internal.helper.Helper.cr();
    int lastLineIndex = 0;
    int nextLineIndex = comment.indexOf(cr);
    while (nextLineIndex != -1) {
      generator.write(" * ");
      generator.write(comment.substring(lastLineIndex, nextLineIndex + cr.length()));
      lastLineIndex = nextLineIndex + cr.length();
      nextLineIndex = comment.indexOf(cr, lastLineIndex);
    }
    generator.write(" * ");
    generator.writeln(comment.substring(lastLineIndex, comment.length()));
    generator.writeln(" */");
    generator.cr();
  }
  getAccessLevel().write(generator);
  generator.write(" ");
  writeBody(generator);
}
org.eclipse.persistence.internal.codegenCodeDefinitionwriteBody

Javadoc

Write the code out to the generator's stream.

Popular methods of CodeDefinition

  • adjustmentNeededForType
  • getAccessLevel
  • getComment
  • packageName
  • parseForTypeNamesInPackage
  • putTypeNameInMap
    Used for calculating imports. @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculat
  • shortName
    Removes the package name, if there is one. Also removes any trailing brackets. Assumes that typeName
  • write
    Write the code out to the generator's stream.

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JTable (javax.swing)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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