/** * Return the name of the class only, without package. */ public String getClassName() { String name = _project.getNameCache().getExternalForm(getName(), true); return name.substring(name.lastIndexOf('.') + 1); }
/** * Return the name of the class only, without package. */ public String getClassName() { String name = _project.getNameCache().getExternalForm(getName(), true); return name.substring(name.lastIndexOf('.') + 1); }
/** * Return the package name only, without class, or null if none. */ public String getPackageName() { String name = _project.getNameCache().getExternalForm(getName(), true); int index = name.lastIndexOf('.'); if (index == -1) return null; return name.substring(0, index); }
/** * Return the package name only, without class, or null if none. */ public String getPackageName() { String name = _project.getNameCache().getExternalForm(getName(), true); int index = name.lastIndexOf('.'); if (index == -1) return null; return name.substring(0, index); }
public TypedInstruction setType(String type) { type = getProject().getNameCache().getExternalForm(type, false); return setWide(long.class.getName().equals(type) || double.class.getName().equals(type)); }
public TypedInstruction setType(String type) { type = getProject().getNameCache().getExternalForm(type, false); return setWide(long.class.getName().equals(type) || double.class.getName().equals(type)); }
public String getSuperclassName() { if (_superclassIndex == 0) return null; return _names.getExternalForm(((ClassEntry) _pool.getEntry (_superclassIndex)).getNameEntry().getValue(), false); }
/** * Return the name of the type of this field. The name will be given in * a form suitable for a {@link Class#forName} call. * * @see BCMember#getDescriptor */ public String getTypeName() { return getProject().getNameCache().getExternalForm (getDescriptor(), false); }
/** * Return the name of the type of this field. The name will be given in * a form suitable for a {@link Class#forName} call. * * @see BCMember#getDescriptor */ public String getTypeName() { return getProject().getNameCache().getExternalForm (getDescriptor(), false); }
public String getName() { if (_index == 0) return null; return _names.getExternalForm(((ClassEntry) _pool.getEntry(_index)). getNameEntry().getValue(), false); }
/** * Set the type of class being loaded. * * @return the first Instruction of the block added by setting the type * @throws IllegalStateException if type has already been set */ public Instruction setClass(String name) { name = _class.getProject().getNameCache().getExternalForm(name, false); setClassName(name, getWrapperClass(name)); return _ins; }
/** * The name of this annotation's type. */ public String getTypeName() { String desc = ((UTF8Entry) getPool().getEntry(_typeIndex)).getValue(); return getProject().getNameCache().getExternalForm(desc, false); }
public String getTypeName() { if (_index == 0) return null; ClassEntry entry = (ClassEntry) getPool().getEntry(_index); return getProject().getNameCache().getExternalForm(entry. getNameEntry().getValue(), false); }
public String getTypeName() { if (_index == 0) return null; ClassEntry entry = (ClassEntry) getPool().getEntry(_index); 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); }
/** * 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 type returned by this method. The name * will be given in a form suitable for a {@link Class#forName} call. * * @see BCMember#getDescriptor */ public String getReturnName() { return getProject().getNameCache().getExternalForm(getProject(). getNameCache().getDescriptorReturnName(getDescriptor()), false); }
/** * Return the full name of the local's type, or null if unset. */ public String getTypeName() { if (getTypeIndex() == 0) return null; UTF8Entry entry = (UTF8Entry) getPool().getEntry(getTypeIndex()); return getProject().getNameCache().getExternalForm(entry.getValue(), false); }
/** * Return the full name of the inner class, or null if unset. */ public String getTypeName() { if (getTypeIndex() == 0) return null; ClassEntry entry = (ClassEntry) getPool().getEntry(getTypeIndex()); return getProject().getNameCache().getExternalForm(entry.getNameEntry(). getValue(), false); }
/** * Return the full name of the declaring class, or null if unset/not a * member. */ public String getDeclarerName() { if (getDeclarerIndex() == 0) return null; ClassEntry entry = (ClassEntry) getPool().getEntry(getDeclarerIndex()); return getProject().getNameCache().getExternalForm(entry.getNameEntry(). getValue(), false); }