Tabnine Logo
ClassDefinition.addTypeNamesToMap
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.persistence.internal.codegen.ClassDefinition.addTypeNamesToMap (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.codegenClassDefinitionaddTypeNamesToMap

Popular methods of ClassDefinition

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

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JOptionPane (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Vim plugins
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