Tabnine Logo
MethodDefinition.adjustTypeName
Code IndexAdd Tabnine to your IDE (free)

How to use
adjustTypeName
method
in
org.eclipse.persistence.internal.codegen.MethodDefinition

Best Java code snippets using org.eclipse.persistence.internal.codegen.MethodDefinition.adjustTypeName (Showing top 9 results out of 315)

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

private void adjustExceptions(Map typeNameMap) {
  for (Iterator i = new Vector(getExceptions()).iterator(); i.hasNext();) {
    String exceptionName = (String)i.next();
    String adjustedExceptionName = adjustTypeName(exceptionName, typeNameMap);
    if (!exceptionName.equals(adjustedExceptionName)) {
      replaceException(exceptionName, adjustedExceptionName);
    }
  }
}
origin: com.haulmont.thirdparty/eclipselink

private void adjustExceptions(Map typeNameMap) {
  for (Iterator i = new Vector(getExceptions()).iterator(); i.hasNext();) {
    String exceptionName = (String)i.next();
    String adjustedExceptionName = adjustTypeName(exceptionName, typeNameMap);
    if (!exceptionName.equals(adjustedExceptionName)) {
      replaceException(exceptionName, adjustedExceptionName);
    }
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

private void adjustExceptions(Map typeNameMap) {
  for (Iterator i = new Vector(getExceptions()).iterator(); i.hasNext();) {
    String exceptionName = (String)i.next();
    String adjustedExceptionName = adjustTypeName(exceptionName, typeNameMap);
    if (!exceptionName.equals(adjustedExceptionName)) {
      replaceException(exceptionName, adjustedExceptionName);
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Parses the line, removing the package name for each type
 * (and adding the appropriate import) if the type is
 * unambiguous.
 */
private void adjustLine(String line, Map typeNameMap) {
  StringBuffer lineInProgress = new StringBuffer(line);
  Set typeNames = parseForTypeNames(lineInProgress.toString());
  for (Iterator i = typeNames.iterator(); i.hasNext();) {
    String typeName = (String)i.next();
    String adjustedTypeName = adjustTypeName(typeName, typeNameMap);
    if (!typeName.equals(adjustedTypeName)) {
      int typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      while (typeNameStartIndex != -1) {
        lineInProgress.replace(typeNameStartIndex, typeNameStartIndex + typeName.length(), adjustedTypeName);
        typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      }
    }
  }
  replaceLine(line, lineInProgress.toString());
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Parses the line, removing the package name for each type
 * (and adding the appropriate import) if the type is
 * unambiguous.
 */
private void adjustLine(String line, Map typeNameMap) {
  StringBuffer lineInProgress = new StringBuffer(line);
  Set typeNames = parseForTypeNames(lineInProgress.toString());
  for (Iterator i = typeNames.iterator(); i.hasNext();) {
    String typeName = (String)i.next();
    String adjustedTypeName = adjustTypeName(typeName, typeNameMap);
    if (!typeName.equals(adjustedTypeName)) {
      int typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      while (typeNameStartIndex != -1) {
        lineInProgress.replace(typeNameStartIndex, typeNameStartIndex + typeName.length(), adjustedTypeName);
        typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      }
    }
  }
  replaceLine(line, lineInProgress.toString());
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Parses the line, removing the package name for each type
 * (and adding the appropriate import) if the type is
 * unambiguous.
 */
private void adjustLine(String line, Map typeNameMap) {
  StringBuffer lineInProgress = new StringBuffer(line);
  Set typeNames = parseForTypeNames(lineInProgress.toString());
  for (Iterator i = typeNames.iterator(); i.hasNext();) {
    String typeName = (String)i.next();
    String adjustedTypeName = adjustTypeName(typeName, typeNameMap);
    if (!typeName.equals(adjustedTypeName)) {
      int typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      while (typeNameStartIndex != -1) {
        lineInProgress.replace(typeNameStartIndex, typeNameStartIndex + typeName.length(), adjustedTypeName);
        typeNameStartIndex = lineInProgress.toString().indexOf(typeName);
      }
    }
  }
  replaceLine(line, lineInProgress.toString());
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

private void adjustReturnType(Map typeNameMap) {
  String adjustedReturnType = adjustTypeName(getReturnType(), typeNameMap);
  if (!getReturnType().equals(adjustedReturnType)) {
    setReturnType(adjustedReturnType);
  }
}
origin: com.haulmont.thirdparty/eclipselink

private void adjustReturnType(Map typeNameMap) {
  String adjustedReturnType = adjustTypeName(getReturnType(), typeNameMap);
  if (!getReturnType().equals(adjustedReturnType)) {
    setReturnType(adjustedReturnType);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

private void adjustReturnType(Map typeNameMap) {
  String adjustedReturnType = adjustTypeName(getReturnType(), typeNameMap);
  if (!getReturnType().equals(adjustedReturnType)) {
    setReturnType(adjustedReturnType);
  }
}
org.eclipse.persistence.internal.codegenMethodDefinitionadjustTypeName

Popular methods of MethodDefinition

  • adjustExceptions
  • adjustLine
    Parses the line, removing the package name for each type (and adding the appropriate import) if the
  • adjustLines
  • adjustReturnType
  • adjustTypeNames
  • argumentsEqual
  • exceptionsEqual
  • getAccessLevel
  • getArgumentNames
  • getArgumentTypeNames
  • getArgumentTypes
  • getExceptions
  • getArgumentTypes,
  • getExceptions,
  • getLines,
  • getName,
  • getReturnType,
  • isAbstract,
  • isConstructor,
  • parseForTypeNames,
  • putTypeNameInMap

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JLabel (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Sublime Text 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