protected void replaceException(String oldExceptionName, String newExceptionName) { int index = getExceptions().indexOf(oldExceptionName); getExceptions().remove(oldExceptionName); getExceptions().insertElementAt(newExceptionName, index); }
protected void replaceException(String oldExceptionName, String newExceptionName) { int index = getExceptions().indexOf(oldExceptionName); getExceptions().remove(oldExceptionName); getExceptions().insertElementAt(newExceptionName, index); }
protected void replaceException(String oldExceptionName, String newExceptionName) { int index = getExceptions().indexOf(oldExceptionName); getExceptions().remove(oldExceptionName); getExceptions().insertElementAt(newExceptionName, index); }
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; }
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; }
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; }
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); } } }
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); } } }
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); } } }
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; }
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; }
/** * 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); } }
/** * 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); } }
/** * 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); } }
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; }