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

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

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

origin: com.haulmont.thirdparty/eclipselink

protected void replaceException(String oldExceptionName, String newExceptionName) {
  int index = getExceptions().indexOf(oldExceptionName);
  getExceptions().remove(oldExceptionName);
  getExceptions().insertElementAt(newExceptionName, index);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected void replaceException(String oldExceptionName, String newExceptionName) {
  int index = getExceptions().indexOf(oldExceptionName);
  getExceptions().remove(oldExceptionName);
  getExceptions().insertElementAt(newExceptionName, index);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected void replaceException(String oldExceptionName, String newExceptionName) {
  int index = getExceptions().indexOf(oldExceptionName);
  getExceptions().remove(oldExceptionName);
  getExceptions().insertElementAt(newExceptionName, index);
}
origin: com.haulmont.thirdparty/eclipselink

protected boolean exceptionsEqual(MethodDefinition methodDefinition) {
  Object[] exceptions1 = this.getExceptions().toArray();
  Object[] exceptions2 = methodDefinition.getExceptions().toArray();
  if (exceptions1.length == exceptions2.length) {
    for (int i = 0; i < exceptions1.length; i++) {
      if (((exceptions1[i] == null) && (exceptions1[i] != exceptions2[i])) || (!exceptions1[i].equals(exceptions2[i]))) {
        return false;
      }
    }
    return true;
  }
  return false;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected boolean exceptionsEqual(MethodDefinition methodDefinition) {
  Object[] exceptions1 = this.getExceptions().toArray();
  Object[] exceptions2 = methodDefinition.getExceptions().toArray();
  if (exceptions1.length == exceptions2.length) {
    for (int i = 0; i < exceptions1.length; i++) {
      if (((exceptions1[i] == null) && (exceptions1[i] != exceptions2[i])) || (!exceptions1[i].equals(exceptions2[i]))) {
        return false;
      }
    }
    return true;
  }
  return false;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected boolean exceptionsEqual(MethodDefinition methodDefinition) {
  Object[] exceptions1 = this.getExceptions().toArray();
  Object[] exceptions2 = methodDefinition.getExceptions().toArray();
  if (exceptions1.length == exceptions2.length) {
    for (int i = 0; i < exceptions1.length; i++) {
      if (((exceptions1[i] == null) && (exceptions1[i] != exceptions2[i])) || (!exceptions1[i].equals(exceptions2[i]))) {
        return false;
      }
    }
    return true;
  }
  return false;
}
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/com.springsource.org.eclipse.persistence

public int hashCode() {
  int hash = this.accessLevel.hashCode();
  hash ^= this.returnType.hashCode();
  hash ^= this.getArgumentTypes().hashCode();
  if (this.name != null) {
    hash ^= this.name.hashCode();
  }
  if (this.name != null) {
    hash ^= this.name.hashCode();
  }
  hash ^= this.getExceptions().hashCode();
  return hash;
}
origin: com.haulmont.thirdparty/eclipselink

public int hashCode() {
  int hash = this.accessLevel.hashCode();
  hash ^= this.returnType.hashCode();
  hash ^= this.getArgumentTypes().hashCode();
  if (this.name != null) {
    hash ^= this.name.hashCode();
  }
  if (this.name != null) {
    hash ^= this.name.hashCode();
  }
  hash ^= this.getExceptions().hashCode();
  return hash;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Used for calculating imports.  @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports()
 */
protected void putTypeNamesInMap(Map typeNameMap) {
  putTypeNameInMap(getReturnType(), typeNameMap);
  for (Iterator i = getExceptions().iterator(); i.hasNext();) {
    putTypeNameInMap((String)i.next(), typeNameMap);
  }
  for (Iterator i = getArgumentTypeNames().iterator(); i.hasNext();) {
    putTypeNameInMap((String)i.next(), typeNameMap);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Used for calculating imports.  @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports()
 */
protected void putTypeNamesInMap(Map typeNameMap) {
  putTypeNameInMap(getReturnType(), typeNameMap);
  for (Iterator i = getExceptions().iterator(); i.hasNext();) {
    putTypeNameInMap((String)i.next(), typeNameMap);
  }
  for (Iterator i = getArgumentTypeNames().iterator(); i.hasNext();) {
    putTypeNameInMap((String)i.next(), typeNameMap);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Used for calculating imports.  @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports()
 */
protected void putTypeNamesInMap(Map typeNameMap) {
  putTypeNameInMap(getReturnType(), typeNameMap);
  for (Iterator i = getExceptions().iterator(); i.hasNext();) {
    putTypeNameInMap((String)i.next(), typeNameMap);
  }
  for (Iterator i = getArgumentTypeNames().iterator(); i.hasNext();) {
    putTypeNameInMap((String)i.next(), typeNameMap);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public int hashCode() {
  int hash = this.accessLevel.hashCode();
  hash ^= this.returnType.hashCode();
  hash ^= this.getArgumentTypes().hashCode();
  if (this.name != null) {
    hash ^= this.name.hashCode();
  }
  if (this.name != null) {
    hash ^= this.name.hashCode();
  }
  hash ^= this.getExceptions().hashCode();
  return hash;
}
org.eclipse.persistence.internal.codegenMethodDefinitiongetExceptions

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
  • adjustTypeName
  • adjustTypeNames
  • argumentsEqual
  • exceptionsEqual
  • getAccessLevel
  • getArgumentNames
  • getArgumentTypeNames
  • getArgumentTypes
  • getArgumentTypeNames,
  • getArgumentTypes,
  • getLines,
  • getName,
  • getReturnType,
  • isAbstract,
  • isConstructor,
  • parseForTypeNames,
  • putTypeNameInMap

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Table (org.hibernate.mapping)
    A relational table
  • Top PhpStorm 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