/** * Add an interface to those declared by this class. */ public void declareInterface(String name) { Integer index = Numbers.valueOf(getPool().findClassEntry(_project. getNameCache().getInternalForm(name, false), true)); List interfaces = _state.getInterfacesHolder(); if (!interfaces.contains(index)) interfaces.add(index); }
/** * Add a field to this class. * * @return the added field */ public BCField declareField(String name, String type) { BCField field = new BCField(this); _state.getFieldsHolder().add(field); field.initialize(name, _project.getNameCache().getInternalForm(type, true)); return field; }
/** * Add an interface to those declared by this class. */ public void declareInterface(String name) { Integer index = Numbers.valueOf(getPool().findClassEntry(_project. getNameCache().getInternalForm(name, false), true)); List interfaces = _state.getInterfacesHolder(); if (!interfaces.contains(index)) interfaces.add(index); }
/** * Add a field to this class. * * @return the added field */ public BCField declareField(String name, String type) { BCField field = new BCField(this); _state.getFieldsHolder().add(field); field.initialize(name, _project.getNameCache().getInternalForm(type, true)); return field; }
/** * Add an exception type to those thrown by this method. */ public void addException(String type) { int index = getPool().findClassEntry(getProject().getNameCache(). getInternalForm(type, false), true); _indexes.add(Numbers.valueOf(index)); }
/** * Set the class value of this property. */ private void setClassNameValue(Value val, String o) { o = getProject().getNameCache().getInternalForm(o, true); val.index = getPool().findUTF8Entry(o, true); val.index2 = -1; val.value = null; val.type = Class.class; }
public TypedInstruction setType(String type) { if (type == null) _index = 0; else { type = getProject().getNameCache().getInternalForm(type, false); _index = getPool().findClassEntry(type, true); } return this; }
/** * 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); }
/** * This annotation's type. */ public void setType(String type) { type = getProject().getNameCache().getInternalForm(type, true); _typeIndex = getPool().findUTF8Entry(type, true); }
/** * Set the class value of this property. */ private void setClassNameValue(Value val, String o) { o = getProject().getNameCache().getInternalForm(o, true); val.index = getPool().findUTF8Entry(o, true); val.index2 = -1; val.value = null; val.type = Class.class; }
/** * This annotation's type. */ public void setType(String type) { type = getProject().getNameCache().getInternalForm(type, true); _typeIndex = getPool().findUTF8Entry(type, true); }
/** * Set the type of this local. */ public void setType(String type) { if (type == null) setTypeIndex(0); else { type = getProject().getNameCache().getInternalForm(type, true); setTypeIndex(getPool().findUTF8Entry(type, true)); } }
/** * Set the type of this inner class. */ public void setType(String type) { if (type == null) setTypeIndex(0); else { type = getProject().getNameCache().getInternalForm(type, false); setTypeIndex(getPool().findClassEntry(type, true)); } }
/** * Set the type of this declaring class. */ public void setDeclarer(String type) { if (type == null) setDeclarerIndex(0); else { type = getProject().getNameCache().getInternalForm(type, false); setDeclarerIndex(getPool().findClassEntry(type, true)); } }
/** * Set the type of this local. */ public void setType(String type) { if (type == null) setTypeIndex(0); else { type = getProject().getNameCache().getInternalForm(type, true); setTypeIndex(getPool().findUTF8Entry(type, true)); } }
/** * Set the type of this declaring class. */ public void setDeclarer(String type) { if (type == null) setDeclarerIndex(0); else { type = getProject().getNameCache().getInternalForm(type, false); setDeclarerIndex(getPool().findClassEntry(type, true)); } }
/** * Set the type of this inner class. */ public void setType(String type) { if (type == null) setTypeIndex(0); else { type = getProject().getNameCache().getInternalForm(type, false); setTypeIndex(getPool().findClassEntry(type, true)); } }
/** * Set the descriptor of this member. */ public void setDescriptor(String desc) { String origDesc = getDescriptor(); // reset the desc desc = getProject().getNameCache().getInternalForm(desc, true); _descriptorIndex = getPool().findUTF8Entry(desc, true); // change all the references in the owning class setEntry(getName(), origDesc); }
/** * Set the descriptor of this member. */ public void setDescriptor(String desc) { String origDesc = getDescriptor(); // reset the desc desc = getProject().getNameCache().getInternalForm(desc, true); _descriptorIndex = getPool().findUTF8Entry(desc, true); // change all the references in the owning class setEntry(getName(), origDesc); }