Tabnine Logo
CodeGenerator.getCurrentClass
Code IndexAdd Tabnine to your IDE (free)

How to use
getCurrentClass
method
in
org.eclipse.persistence.internal.codegen.CodeGenerator

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

origin: com.haulmont.thirdparty/eclipselink

  /**
   * Write the type checking if its package is required.
   */
  public void writeType(String typeName) {
    String localTypeName = typeName;
    if (getCurrentClass() != null) {
      int index = typeName.lastIndexOf('.');
      if (index != -1) {
        String packageName = typeName.substring(index);
        if (getCurrentClass().getImports().contains(packageName)) {
          localTypeName = typeName.substring(index, typeName.length());
        }
      }
    }
    write(localTypeName);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  /**
   * Write the type checking if its package is required.
   */
  public void writeType(String typeName) {
    String localTypeName = typeName;
    if (getCurrentClass() != null) {
      int index = typeName.lastIndexOf('.');
      if (index != -1) {
        String packageName = typeName.substring(index);
        if (getCurrentClass().getImports().contains(packageName)) {
          localTypeName = typeName.substring(index, typeName.length());
        }
      }
    }
    write(localTypeName);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  /**
   * Write the type checking if its package is required.
   */
  public void writeType(String typeName) {
    String localTypeName = typeName;
    if (getCurrentClass() != null) {
      int index = typeName.lastIndexOf('.');
      if (index != -1) {
        String packageName = typeName.substring(index);
        if (getCurrentClass().getImports().contains(packageName)) {
          localTypeName = typeName.substring(index, typeName.length());
        }
      }
    }
    write(localTypeName);
  }
}
org.eclipse.persistence.internal.codegenCodeGeneratorgetCurrentClass

Popular methods of CodeGenerator

  • <init>
  • cr
  • getOutput
  • setOutput
  • tab
  • toString
  • write
  • writeType
    Write the type checking if its package is required.
  • writeln

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Join (org.hibernate.mapping)
  • From CI to AI: The AI layer in your organization
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