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

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

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

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

/**
 * Compares the typeName to those stored in the typeNameMap.
 * If the short name of the typeName is unambiguous (only one package for
 * that short name in the Map), removes the package name and returns the
 * short name, else returns the whole thing.
 *
 * Assumes that typeName contains only a package name (optional) and a short name,
 * potentially with subtended brackets.
 *
 * (e.g. int -> int, java.util.Vector -> Vector, java.lang.Boolean[] -> Boolean[], etc.)
 */
protected static String adjustTypeName(String typeName, Map typeNameMap) {
  if (adjustmentNeededForType(typeName, typeNameMap)) {
    putTypeNameInMap(typeName, typeNameMap);
    return typeName.substring(packageName(typeName).length() + 1);
  } else {
    return typeName;
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Compares the typeName to those stored in the typeNameMap.
 * If the short name of the typeName is unambiguous (only one package for
 * that short name in the Map), removes the package name and returns the
 * short name, else returns the whole thing.
 *
 * Assumes that typeName contains only a package name (optional) and a short name,
 * potentially with subtended brackets.
 *
 * (e.g. int -> int, java.util.Vector -> Vector, java.lang.Boolean[] -> Boolean[], etc.)
 */
protected static String adjustTypeName(String typeName, Map typeNameMap) {
  if (adjustmentNeededForType(typeName, typeNameMap)) {
    putTypeNameInMap(typeName, typeNameMap);
    return typeName.substring(packageName(typeName).length() + 1);
  } else {
    return typeName;
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Compares the typeName to those stored in the typeNameMap.
 * If the short name of the typeName is unambiguous (only one package for
 * that short name in the Map), removes the package name and returns the
 * short name, else returns the whole thing.
 *
 * Assumes that typeName contains only a package name (optional) and a short name,
 * potentially with subtended brackets.
 *
 * (e.g. int -> int, java.util.Vector -> Vector, java.lang.Boolean[] -> Boolean[], etc.)
 */
protected static String adjustTypeName(String typeName, Map typeNameMap) {
  if (adjustmentNeededForType(typeName, typeNameMap)) {
    putTypeNameInMap(typeName, typeNameMap);
    return typeName.substring(packageName(typeName).length() + 1);
  } else {
    return typeName;
  }
}
org.eclipse.persistence.internal.codegenCodeDefinitionadjustmentNeededForType

Popular methods of CodeDefinition

  • 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.
  • writeBody
    Write the code out to the generator's stream.

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top 25 Plugins for Webstorm
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