congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ClassDefinition.adjustTypeNames
Code IndexAdd Tabnine to your IDE (free)

How to use
adjustTypeNames
method
in
org.eclipse.persistence.internal.codegen.ClassDefinition

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

origin: com.haulmont.thirdparty/eclipselink

/**
 * Parses the class definition, pulls out fully qualified class names,
 * adds imports for them, and un-fully qualifies the class names.
 * - Assumes that no imports have been previously added.
 * - Assumes that all types have been fully qualified to start.
 * - Will not unqualify ambiguous classes (java.util.Date and java.sql.Date).
 * - Will not add imports for java.lang.*
 * - Will not add imports for classes in the same package.
 * - Will not parse method bodies, but will unqualify types it finds.
 *
 * ?? - Should unqualification occur during writing?  That way, reflective definitions could take advantage.
 *
 */
public void calculateImports() {
  // Calculate type name map for class definition.  
  // Key - short type name, Value - Set of package names for that type name
  HashMap typeNameMap = new HashMap();
  addTypeNamesToMap(typeNameMap);
  // Go back through class def, pulling out imports and removing package names from 
  // non-repeated short type names.
  adjustTypeNames(typeNameMap);
  // Finally, add the imports
  addImports(typeNameMap);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Parses the class definition, pulls out fully qualified class names,
 * adds imports for them, and un-fully qualifies the class names.
 * - Assumes that no imports have been previously added.
 * - Assumes that all types have been fully qualified to start.
 * - Will not unqualify ambiguous classes (java.util.Date and java.sql.Date).
 * - Will not add imports for java.lang.*
 * - Will not add imports for classes in the same package.
 * - Will not parse method bodies, but will unqualify types it finds.
 *
 * ?? - Should unqualification occur during writing?  That way, reflective definitions could take advantage.
 *
 */
public void calculateImports() {
  // Calculate type name map for class definition.
  // Key - short type name, Value - Set of package names for that type name
  HashMap typeNameMap = new HashMap();
  addTypeNamesToMap(typeNameMap);
  // Go back through class def, pulling out imports and removing package names from
  // non-repeated short type names.
  adjustTypeNames(typeNameMap);
  // Finally, add the imports
  addImports(typeNameMap);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Parses the class definition, pulls out fully qualified class names,
 * adds imports for them, and un-fully qualifies the class names.
 * - Assumes that no imports have been previously added.
 * - Assumes that all types have been fully qualified to start.
 * - Will not unqualify ambiguous classes (java.util.Date and java.sql.Date).
 * - Will not add imports for java.lang.*
 * - Will not add imports for classes in the same package.
 * - Will not parse method bodies, but will unqualify types it finds.
 *
 * ?? - Should unqualification occur during writing?  That way, reflective definitions could take advantage.
 *
 */
public void calculateImports() {
  // Calculate type name map for class definition.  
  // Key - short type name, Value - Set of package names for that type name
  HashMap typeNameMap = new HashMap();
  addTypeNamesToMap(typeNameMap);
  // Go back through class def, pulling out imports and removing package names from 
  // non-repeated short type names.
  adjustTypeNames(typeNameMap);
  // Finally, add the imports
  addImports(typeNameMap);
}
org.eclipse.persistence.internal.codegenClassDefinitionadjustTypeNames

Popular methods of ClassDefinition

  • <init>
  • addImport
    The importStatement should be of the form "{packageName}.{shortName or '*'}"
  • addImports
  • addMethod
  • addTypeNamesToMap
  • adjustTypeName
  • getAttributes
  • getImports
  • getInnerClasses
  • getInterfaces
  • getMethods
  • getName
  • getMethods,
  • getName,
  • getPackageName,
  • getSuperClass,
  • getType,
  • isInterface,
  • putTypeNameInMap,
  • replaceInterface,
  • setComment

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Path (java.nio.file)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Github Copilot alternatives
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