/** * Return the bytecode of the exception type; returns null for * catch-all clauses used to implement finally blocks. */ public BCClass getCatchBC() { String name = getCatchName(); if (name == null) return null; return getProject().loadClass(name, getClassLoader()); }
/** * Return the bytecode of the exception type; returns null for * catch-all clauses used to implement finally blocks. */ public BCClass getCatchBC() { String name = getCatchName(); if (name == null) return null; return getProject().loadClass(name, getClassLoader()); }
/** * Set the class of the exception type, or null for catch-all clauses used * with finally blocks. */ public void setCatch(String name) { if (name == null) _catchIndex = 0; else _catchIndex = getPool().findClassEntry(getProject().getNameCache(). getInternalForm(name, false), true); }
/** * Set the class of the exception type, or null for catch-all clauses used * with finally blocks. */ public void setCatch(String name) { if (name == null) _catchIndex = 0; else _catchIndex = getPool().findClassEntry(getProject().getNameCache(). getInternalForm(name, false), true); }
/** * Return the name of the exception type; returns null for catch-all * clauses used to implement finally blocks. The name will be returned * in a forum suitable for a {@link Class#forName} call. */ public String getCatchName() { if (_catchIndex == 0) return null; ClassEntry entry = (ClassEntry) getPool().getEntry(_catchIndex); return getProject().getNameCache().getExternalForm(entry.getNameEntry(). getValue(), false); }
/** * Return the name of the exception type; returns null for catch-all * clauses used to implement finally blocks. The name will be returned * in a forum suitable for a {@link Class#forName} call. */ public String getCatchName() { if (_catchIndex == 0) return null; ClassEntry entry = (ClassEntry) getPool().getEntry(_catchIndex); return getProject().getNameCache().getExternalForm(entry.getNameEntry(). getValue(), false); }